Hello,
any help would be much appreciated.
I have put the following submit button in
jsp:
<TR>
<TD ALIGN=CENTER><INPUT TYPE="SUBMIT" NAME="next" VALUE="Next"></TD>
</TR>
I have then put the following
java code in:
<%
boolean next = (request.getParameter("next") != null);
session.setAttribute("next", next);
boolean previous = (request.getParameter("previous") != null);
session.setAttribute("previous", previous);
int row = 1;
session.setAttribute("row", row);
%>
now I expected when user hit next button and jsp was forwarded to another jsp that when I did the following:
//get session attributes for next/previous action from previous jsp
boolean next = (Boolean) session.getAttribute("next");
boolean previous = (Boolean) session.getAttribute("previous");
int row = (Integer) session.getAttribute("row");
that the boolean next would be set to true, but it is set to false and I do not understand why?
Can somebody help please?
Cheers Joe.