1.

How can we avoid direct access of JSP pages from client browser?

Answer»

"We know that anything inside WEB-INF DIRECTORY can’t be contacted DIRECTLY in web APPLICATION, so we can place our JSP pages in WEB-INF directory to avoid direct access to JSP page from client browser.  

Mock-up configuration is given below code snippet of web.xml FILE.


 TEST

 /WEB-INF/test.jsp

 

   test

   Test Value

 


 Test

 /Test.do

""

"



Discussion

No Comment Found

Related InterviewSolutions