aspose file tools*
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 Java 8 in Action this week in the Java 8 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: 227
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: 9280
    
  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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Menu based application
 
Similar Threads
what if browser is closed??
Struts Menu Question
Menu Display Problem in STRUTS ....
preventing directory listing in WAS
<html:link> with Struts