This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Struts and the fly likes Menu based application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Menu based application" Watch "Menu based application" New topic
Author

Menu based application

Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 233
Hi all,

I am new in struts application.
Can somebody tell me the standard way to go to a jsp page when clicked in a menu of the application.

I want to use the .do extension in URL to avoid showing the full path of jsp page.


Do I need to declare forward for all the links in the menu(a static page) or there is a way around there.

Thanks in Advance,
Kousik
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9307
    
  17

I want to use the .do extension in URL to avoid showing the full path of jsp page.


Struts requests go through an action to reach JSP. So the client will never know the location of the JSP. If you want the JSPs to not be accessible directly, you can put them in the WEB-INF directory...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
Consider Paul's rocket mass heater.
 
subject: Menu based application