How to you exactly append a value on a URL and restrieve the value afterwards?
I tried this but...
JSP Page 1: User clicks the URL to link to next page.
LinkIs there anything wrong with the above, because I really don't have any knowledge of appending values on URL. Do I need to declare the n or something?
After User clicks... Servlet of the next JSP page is invoke...
Servlet:
String value = request.getParameter ( "n" );
Testing abc = new Testing abc ( ); // abc class is a set and get class for String.
abc.setValue(value);
request.getSession ( ).setAttribute ( "abc", abc );
request.getRequestDispatcher ( "/WEB-INF/Product/NextPage.JSP" ).forward ( request, response );
Okay so next it shall display on the next JSP page...
//I already set and import the beans property, won't go indepth on that.
<% out.println (abc.getValue);
%>
However it prints noun? whats wrong with it? Or anyone has any source code samples? I realli need it, my project is due next week.. and damn teacher never taught us anything about this... never taught us database... never taught us nothing!!!!