This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes I am not sure how to change the view of url for struts 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "I am not sure how to change the view of url for struts 2" Watch "I am not sure how to change the view of url for struts 2" New topic
Author

I am not sure how to change the view of url for struts 2

yizhang yin
Greenhorn

Joined: Oct 30, 2006
Posts: 2


for example

I had :

1. a struts2 web application called Home , which contains a "/index.jsp"

2. My domain name : http://www.mydomain.com,

I deploy Home struts2 application under this domain name.

if i want to view the page "Home/index.jsp", I have to browse "http://www.mydomain.com/Home/index.jsp" .

I wonder if there any way can change the view of url from("http://www.mydomain.com/Home/index.jsp") to ("http://www.mydomain.com") and
still can go to same page (Home/index.jsp).
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You'd need a welcome page that redirects to the page in question.

That said, accessing JSP pages directly is generally recommended.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I am not sure how to change the view of url for struts 2
 
Similar Threads
Struts2
mapping default page to domain name in tomcat without port number.in Ubuntu
migration to Struts2
Struts2 config error
Struts2/JQuery