Surya Kant, please do not assume anyone who posts in the JSP forum is using Struts unless they say so.
Trupti Mehta wrote:
I am not using structs, I just want to keep some files hidden from the user - user can't access directly. So wanted to keep in web-inf. an you help me how to I add url-pattern in the web.xml.
Again, it's WEB-INF, not web-inf. Be accurate or be ignored!
What's the point of hiding the JSPs in WEB-INF if you are just going to map URLs directly to them anyways? It's a completely useless exercise. What's the motivation for wasting your time doing this and just making it more complicated?
The reason that most people hide JSPs in WEB-INF is to
not allow direct access by
any URL and to force access only to be through their page controllers.
So why do you want to do this in the first place?