Hi,
I've been trying to create a button/link that would forward to a new page with a few objects that I would like to pass along.
I have tried this:
<INPUT TYPE="IMG" SRC="next.gif" ONCLICK="session.setAttribute(\"attr1\",attr1); session.setAttribute(\"attr2\",attr2);<jsp:forward page='nextpage.jsp'>">
I manage to get the the next page, the nextpage.jsp being displayed in the browser addressbar, but I keep getting a NullPointer thrown back by Sun Applcation Server 8.
I have even tried using <%! %> to declare a method within the jsp to setAttributes, and tried using <FORM> tags with the action "submitform()" to no avail.
I need this done, as the intention is to have a column of buttons for a table, where a list is displayed. Upon clicking the button, the user will be provided with the details of the specific item.
Please help.