aspose file tools
The moose likes JSP and the fly likes Access jsp file under WEB-INF directly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Access jsp file under WEB-INF directly" Watch "Access jsp file under WEB-INF directly" New topic
Author

Access jsp file under WEB-INF directly

Prakash Mani - Attur
Ranch Hand

Joined: Oct 08, 2009
Posts: 100
Can any one please tell me how to access jsp file which is under WEB-INF. I should not use struts action.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You don't. That's the point of putting them under WEB-INF--to disallow direct access.
Prakash Mani - Attur
Ranch Hand

Joined: Oct 08, 2009
Posts: 100
No David.. In my team they did it by using simpleurlhandler and viewresolver... I dont know spring.. so i could not tell you even the class name correctly...
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

That's not accessing a JSP directly.
Prakash Mani - Attur
Ranch Hand

Joined: Oct 08, 2009
Posts: 100
oh.. thank you.. I thought since we have not used any action to view the jsp its mean direct access... Can you please say how can we tell that..
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Access jsp file under WEB-INF directly