Stefan, Http is stateless protocol. There is no way you can store objects in html and send it back to web server. Only thing you can do is find means to save attributes (either in hidden form fields or other form fields) which will help you create the original object in the same state, when the form is submitted to the servlet. The second option is use session to save the object and remove the object from the session when not required. Hope this helps. - Anil --- Stef�n_F._Stef�nsson <[EMAIL PROTECTED]> wrote: > Hello. > > Here's my problem: > > I have a servlet that initiates a bean. This bean > is put in the request > object as an attribute and then forwarded to a JSP > page. That JSP has a > form where the user selects one thing from a drop > down list. Then (when > he/she presses the submit button) it's directed to a > servlet that uses > the value of the selected item in the drop down > list. The problem is > that I have to have the bean as well. I don't want > to put it in the > session, I want to keep it in the request object > but, of course, the > bean disappears from the request object when the JSP > is called. > > So my question is: Is there any way (on a JSP) to > put a Java object > into the request object that is sent to the web > server? I've tried to > add an attribute to the request object but that > doesn't work since that > is the request coming IN but I have to add it to the > request going OUT. > > Can anyone help? > > Kind regards, Stefan Freyr. > > =========================================================================== > To unsubscribe: mailto [EMAIL PROTECTED] with > body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: > "set JSP-INTEREST DIGEST". > 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 __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". 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
