•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 427,202 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,235 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 2037 | Replies: 4 | Solved
•
•
Join Date: Apr 2008
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
Hi all,
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:
I try and call the new link with the parameters as follows:
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,
Thanks alot.
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,
Thanks alot.
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the JSP Forum
- Previous Thread: json loop in a jsp page
- Next Thread: Cookies and JSP website



Threaded Mode