The 2nd part of the instructions The index.jsp forwards the request to another JSP file called middle.jsp. Before forwarding, it should add another String type parameter called myparameter with value "Passion!" to the request object. The middle.jsp then includes the response.jsp. The response.jsp should display the value of the myparameter along with name and hobby.
In the index.jsp I have the following : name, hobby and birthplace. <form method="get"> <input type="text" name="username" size="25"> <input type="text" name="hobby" size="25"> <input type="text" name="birthcity" size="35"> <p></p> <input type="submit" value="Submit"> <input type="reset" value="Reset"> </form> <% String username = request.getParameter("username"); if ( username != null && username.length() > 0 ) { %> <%-- this is my forward statement--%> <jsp:forward page="middle.jsp"> <% Once I click submit on the page I get the follwing : exception HTTP STATUS 500 org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP PWC6197: An error occurred at line: 28 in the jsp file: /response.jsp PWC6199: Generated servlet error: string:///middle_jsp.java:72: cannot find symbol symbol : variable username location: class org.apache.jsp.middle_jsp PWC6199: Generated servlet error: Note: string:///middle_jsp.java from uses unchecked or unsafe operations. PWC6199: Generated servlet error: It looks as I have to pass the three parms to the middle.jsp is this correct? It works on the include but not on the forward --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en -~----------~----~----~----~------~----~------~--~---