In my dynamic web project I'm having 2 jsp page.
1st jsp page(NewFile.jsp) is passing the request to 2nd jsp page(NewFile2.jsp) and 2nd jsp page is passing the request to servlet and servlet is rendering html code
which is sent back to client as http response.
Now my doubt is if i am using <url-pattern>/reqServlet</url-pattern> then it is working normally.
But if I use <url-pattern>/*</url-pattern> then even the first jsp page(NewFile.jsp) is coming as blank web page.....
If I use <url-pattern>/test/*</url-pattern>then even the first jsp page(NewFile.jsp) then in browser after test if i write anything like /test/a or /test/b then blank web page is coming..
Most probably your servlet does not have any thing to display.
May be you don't have any println statements in servlet thats why you getting blank.
Can you please show us how your servlet code looks like?
Also, explain what do you mean by "works fine" ? Are you seeing "Hi dis is jsp" on browser or client
Joined: Oct 24, 2013
Yes I'm getting: hi dis is jsp.
In the form I have used method="post" so http post is request is made and it is working fine
when mapping is /reqServlet but results in blank web page when mapping is /*.
<form action="<%=request.getContextPath()%>/NewFile2.jsp?name=roopam" method="post" >
enter text here<input type="text" name="text"/><br>
<center><input type="submit" value="submit"></center><br>