Actually this is how I tried,
My web.xml file,
<
servlet>
<servlet-name>Concealedjsp</servlet-name>
<jsp-file>/WEB-INF/concealed.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>myServlet</servlet-name>
<servlet-class>myServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Concealedjsp </servlet-name>
<url-pattern>/jjj</url-pattern>
</servlet-mapping>
I have a file called concealed.jsp under web-inf directory. And below is what I do in my index.jsp,
<form action = "/WEB-INF/concealed.jsp">
<input type="Submit" value="Submit">
</form>
When I click the submit button, I'm able to see the contents in the concealed.jsp file. So anyone to comment on this??