File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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