dcsimg
<jsp: include> is not working
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   deepti_agrawal
Posted On:   Thursday, January 3, 2002 10:53 PM

Include Page i m trying to include a jsp file using jsp include..but its not working th code for jsp is <% out.println("Name :" +request.getParameter("name") +" "); out.println("Name :" +request.getParameter("desg") +" "); %> code of included file is this is for the include directive this is the header page can u please help me out regaring the problem    More>>
Include Page

i m trying to include a jsp file using jsp include..but its not working

th code for jsp is














<% out.println("Name :" +request.getParameter("name") +"
");
out.println("Name :" +request.getParameter("desg") +"
");
%>


code of included file is



this is for the include directive


this is the header page





can u please help me out regaring the problem    <<Less

Copy these code

Posted By:   Anonymous  
Posted On:   Saturday, January 5, 2002 05:09 AM

Hi Deepti,

Check that Syntax.You have n't closed that.You have to close that by a "/" or you can use.With this you will find the included page but still it will not solve your problem as Name and Desg will be null.So, follow the code below which is going to solve your problem.


Include.jsp










Included.jsp



The following contents are from included Page

<%
out.println(request.getParameter("Name"));
out.println(request.getParameter("City"));
%>



Enjoy...
Saroj.

Re: &lt;jsp: include&gt; is not working

Posted By:   Nilesh_Shrestha  
Posted On:   Friday, January 4, 2002 02:29 AM

What are you trying to do ?
request.getParameter() gets value from forms fields. Use include directive.
About | Sitemap | Contact