I'm a novice at using jsp and web design in general and have been trying to pass parameters between pages for a good few hours now but to no avail...
Furthermore my classification of the problem may be inaccurate, please understand that I've only been using jsp pages for about a month now.
In short, I'm trying to obtain input from a user via a textbox, then pass that value to another jsp page and my code goes something like this:
I try and retrieve the value entered by the user as follows:
out.println("<tr>"); out.println("<td>   Please enter your surname</td>"); out.println("<td><input type='textarea' name='sSurname' ></td>"); out.println("</tr>");
I try and call the new link with the parameters as follows:
out.println("<a href = 'newuser.account.created.jsp?sName='+sName.value+''> Create Account man</a>");
When using request.getParameter(sName) on the next page no value is returned unless I physically hardcode the value of sName in the code snippet above.
Any advice would be appreciated,