cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Carroll <>
Subject Re: SQLProcessor and WML problem
Date Fri, 31 Mar 2000 10:30:55 GMT


To get the number first you need some sort of html form that gets submitted
cocoon and includes the user's number. You can then extract this number
within your xsp page and build it into your select statement ,something
like :

<?xml version="1.0" encoding="iso-8859-1"?>
<?cocoon-process type="xsp"?>
<?cocoon-process type="sql"?>
<?xml-stylesheet href="http://xx.xx.xx.xx/wap/res2.xsl"
<?cocoon-process type="xslt"?>
  <connection name="www_odbc">
    String number = request.getParameter("number");
 <query connection="www_odbc">
  select icc from icc_search where id='<xsp:expr>number</xsp:expr>'

Your first html page can be just a static html page that includes the form
for the user to use to login. This submitted html form then gets processed
by your
xml file using cocoon and the select statement will be based on the number
user entered.

Hope this helps,


View raw message