I am continuing work on an extremely simple (2 web pages) Struts application. In the first page (entryPage.jsp), you enter data into a form and click the submit button. This takes you to the second page (displayPage.jsp), which displays the data from the form; and clicking the submit button on this page takes you back to the first page--very simple.

The first page uses an form-bean named entryForm, which has a session scope and and two parameters, name and address. Similarly, the second page has an form-bean named displayForm.

Here's my question. While I'm processing the second page, I want to change a value in the entryForm JavaBean. Since it has a session scope, can I access it through the session variable--i.e. something like:

 HttpSession session = request.getSession();
 session.setAttribute("entryForm.name", "new-name-here");

But I can't seem to get this to work. I have searched over the Internet (which includes the archives of this mailing list) but haven't found anything. Any suggestions? Thanks.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to