This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am writing a small html and a JSP page. The jsp page is trying to find out if the referer page is numLimit.html. HTML page (numLimit.html) <html> <head> </head> <body> <form method="GET" action="test.jsp" name="form1"> <input type="submit" value="Submit" name="sButton"> <input type="hidden" name="previousPage" value="9"> </form> </body> </html> ============ JSP page (test.jsp) <html> <head></head> <body> <% if (request.getParameter("previousPage" == "9")%> got it!!! <% else %> nope! </body> </html> However, the JSP page always prints out "nope" even though I am expecting "got it!" Do anybody know why? Thanks.
hi roger, problem is not with html,problem is with your jsp code. /**************just make following changes in jsp ****/ or cut it from here and paste it your jsp and try. /********CODE STARTS************/ <html> <head></head> <body> <% Stringtest = request.getParameter("previousPage");