Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SQL query with JSP and WML-parameters

843835Feb 15 2002 — edited Feb 16 2002
Hey,

Could you help me?
I'm trying to do the following. WML deck card 1 send parameter to same WML deck's card help. I try to read the parameter with JSP in card help by putting the parameter to SQL query, but it doesn't work. I can read the parameter with WML in card help. I can also print the value of the parameter with JSP if I generate WML with JSP.

/*parameter sending from card 1 to card help*/
out.println("<go href='#helpcard'>");
out.println("<setvar name='valittukurssi' value='$(valittukurssi)'/>");

/*parameter read with WML in card help */
<p>Valitse kurssi.
$valittukurssi</p>

/'parameter read with JSP by generating WML with JSP*/
out.println("<p>$valittukurssi</p>");

/* SQL query with JSP */
ResultSet uudettulokset = uusilause.executeQuery("select * from kurssi where lyhenne='$valittukurssi'");


Thanks,
Rampe
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 16 2002
Added on Feb 15 2002
4 comments
266 views