Hello, I think you messed up with 2 examples. Look into hello1 example - there is no forward page at all.
Change the index.jsp of hello1 such that @include will contain your middle.jsp: <%...@include file="middle.jsp" %> Now from middle.jsp invoke response.jsp (I also included "passion" string in middle.jsp: <h2><font color="blue">Passion!</font></h2> <%...@include file="response.jsp" %> Regards, Moria. -----Original Message----- From: java-ee-j2ee-programming-with-passion@googlegroups.com [mailto:java-ee-j2ee-programming-with-pass...@googlegroups.com] On Behalf Of Adaptive Jaat Sent: Tuesday, September 29, 2009 9:23 PM To: Java EE (J2EE) Programming with Passion! Subject: [java ee programming] Re: problen in homework3..... please help me: i have used <jsp forward page ...>tag in this homework but it displays an blank screen..can anyone help me in this.. however this code works well if i use <%...@include page="middle.jsp">...but i want to know the significance of forward page...!!please help me out my index.jsp page is:-----> <html> <head><title>Hello</title></head> <body bgcolor="white"> <img src="duke.waving.gif"> <h2>Hello, my name is Duke and my hobby is cricket and yours What's yours?</h2> <form method="get" <input type="text" name="username" size="25"> <input type="text" name="hobby" size="35"> <h3>what is your birth place</h3> <input type="text" name="bplace" size="35"> <h3>what is your nationality</h3> <input type="text" name="nat" size="35"> <p></p> <input type="submit" value="Submit"> <input type="reset" value="Reset"> </form> <jsp:forward page="middle.jsp"> <jsp:param name="mypara" value="Passion" ></ jsp:param> </jsp:forward> </body> </html> ============================================================ my middle.jsp is: <html> <body> <% String username = request.getParameter("username"); if ( username != null && username.length() > 0 ) { %> <%...@include file="response.jsp" %> <% } %> </body> </html> ======================================== my response.jsp is:----------- <h2><font color="black">Hello, ${param.username}!</font></h2> <h2><font color="black">Your hobby is ${param.hobby}!</font></h2> <h2><font color="black">Your were born in ${param.bplace}!</font></ h2> <h2><font color="black">Your belongs to ${param.nat}!</font></h2> <h1><font color="red">${param.mypara}!</font></h1> ============================================== On Sep 29, 3:07 pm, suraj dangol <surajdan...@hotmail.com> wrote: > Hi, > > You can pass parameter just like username, hobby and you just have to > include response.jsp in middle.jsp. You can set it as hidden text if you > want. > > Hope that helps. > > On 9/29/2009 2:09 PM, Genious wrote: > > > > > > > how can i forward parameters along with acceoted data to middle.jsp.. > > however i have done this using include method..but what do author mean > > by forwarding ?? > > is there any other method by which i can post the data from index.jsp > > to middle.jsp and then furthur to response .jsp.. > > plzz help me for the same > > > No virus found in this incoming message. > > Checked by AVG -www.avg.com > > Version: 8.5.409 / Virus Database: 270.13.114/2401 - Release Date: 09/28/09 > > 17:53:00 > > _________________________________________________________________ > Insert movie times and more without leaving > Hotmail®.http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM...- > Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---