Using session variables would be the better choice.  I have just finished a
project where we used session variables to send the user to different pages
depending on different session values (i.e., how they came to the page, what
client site they came from, the type of transaction they wanted,...).  With
JSP 1.0, the HttpSession is already defined, so you need only refer to
"session.putValue(keyGoesHere)" and "session.getValue(keyGoesHere)."

Connie Berg

-----Original Message-----
From: Oliver Enseling [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 09, 2000 12:30 PM
To: [EMAIL PROTECTED]
Subject: Re: passing hidden form variables

just a guess ...

Maybe you could use JSP Session Variables instead of hidden variables.
This would get around a lot of your issues with hidden variables.

Oliver Enseling.
Java Software Architect
BORN

-----Original Message-----
From: Craig Reichenbach [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 08, 2000 9:39 PM
To: [EMAIL PROTECTED]
Subject: passing hidden form variables


Hi,
  Here's my scenario:  I have a form on one JSP page that passes the info to
another JSP page that processes this info (by calling a stateless session
bean). This processing page does not display, so once the the processing is
done I pass the client back to the first JSP page.  My question is, how can
I pass the user back to the first page using hidden variables? I currently
use a form with an automatic javascript "submit()" function. It's OK, but
I'd like a better solution.  Can someone enlighten me as to how to
automatically submit a form so that I can seamlessly pass the user back to a
page with the proper hidden variables???

Thanks, Craig

NOTES:
I love the response.sendRedirect(), but you must pass your parameters in
the URL.  Same with <jsp:forward>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to