I think the problem is in response.jsp, you are trying to use variable username but , middle.jsp and response.jsp do not know what is username.(when we forward the request the new page does not have access to variables defined in the source page unlike include) So you have to extract String username from request again either in middle.jsp or response.jsp.
I hope it works! Date: Fri, 20 Feb 2009 11:56:20 -0800 From: biljana_b...@yahoo.com Subject: [java ee programming] Help my with homework To: java-ee-j2ee-programming-with-passion@googlegroups.com I try to do my #3 homwork, I have problem: For those who knew: in index.jsp i added .... <% String myparameter = "Passion"; String username = request.getParameter("username"); if ( username != null && username.length() > 0 ) { %> <jsp:forward page="middle.jsp"/> <% .... then I write middle.jsp like this: <%...@include file="response.jsp" %> and response.jsp is ok, but after I click Submit in arise page, I have got this error: HTTP Status 500 - type Exception report message descriptionThe server encountered an internal error () that prevented it from fulfilling this request. exception 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:80: 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: Note: Recompile with -Xlint:unchecked for details. note The full stack traces of the exception and its root causes are available in the Sun GlassFish Enterprise Server v2.1 logs. Sun GlassFish Enterprise Server v2.1 What is my mistake? Please help me, Biljana _________________________________________________________________ It's simple! Sell your car for just $50 http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fsecure%2Dau%2Eimrworldwide%2Ecom%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801459%2Fpi%5F1004813%2Fai%5F859641&_t=762955845&_r=tig_OCT07&_m=EXT --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---