|
I think you would either create the bean again within your servlet using the parameters you saved in the hidden fields (assuming they provide the information you need to do that), or put the bean in the session so it persists between requests. Dan Feather -----Original Message----- From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of OKogan@xxxxxxxxxxxxxxxxxx Sent: Friday, August 19, 2005 3:26 PM To: JAVA400-L@xxxxxxxxxxxx Subject: RE: Forward request from JSP to a servlet on button click. I believe it takes care of parameters. But what if you have bean set up as an attribute? from: "Dan Feather" <DFeather@xxxxxxxxxxxxx> If you put hidden form fields in your JSP and have the JSP populate them with the values from the request when it loads, you could put your button in a form containing those hidden fields so you could submit the values to the servlet when they click the button. You should end up with the behavior I think you are probably looking for. from: OKogan@xxxxxxxxxxxxxxxxxx Is there a way to forward (<jsp:forward....../> ) request from JSP to a servlet on Button click or at list set all attributes and parameters of the old request? Oleg Kogan, Senior Programmer/Analyst Capital Factos LLC 1799 W. Oakland Park Blvd. Ft Lauderdale, FL 33311 Phone: (954) 660-7419 Email: okogan@xxxxxxxxxxxxxxxxxx ------------------------------------------------------------------------ ------ The information transmitted by the following E-Mail is intended only for the addressee and may contain confidential and/or privileged material. Any interception, review, retransmission, dissemination, or other use, or taking any action upon this information by persons or entities other than the intended recipient is prohibited by law and may subject them to criminal or civil liability. If you received this communication in error, please contact us immediately at 954-660-7400 and delete the communication from any computer or network system. ======================================================================== ======
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.