jsp:forward and bean jsp:setProperties
Posted on 2004-04-16
I am trying to set all properties to the bean on one page, where they are entered then forward it to another page, which confirms set data and then make a link to a servlet which will save them to the database.
Can someone help me and let me know if there is a special way to do it?
The form is redirected to itself, but where do I add the forward tag?
<jsp:useBean id="customer" class="business.Customer" scope="session" />
<jsp:setProperty name="customer" property="*"/>
Can I use something like:
if ( request.getParameter("button name") != null )
<jsp:forward page="/application/Confirmation.jsp" />