Hi all,
 I am having some troubles maintaining the changes of my bean done before a
response.sendRedirect(). What happens is this:
I have an if statement where I change a few parameters of my session bean
i.e. mybean.setMyProperty("newValue") bean and then I sendRedirect() to the
page I want. It apparently works fine because I get the page I request with
the redirection, but my bean has lost the change in the property so if I do
a .getMyProperty() I get "oldValue" and not what I expected ("newValue").

Is this 'normal' or there is something that I am missing?
please help me in undestanding what happens.


TIA, mauro

the sample code in my JSP page

<jsp:useBean id="ureg" class="com.emsuk.UserRegistration" scope="session" />

<%
        if (ureg.create()) {
                ureg.setFormCurrent("");
                response.sendRedirect("Succesful.html");
        else {

                ...
        }
%>

===========================================================================
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