Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
yizhang yin
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'd need a welcome page that redirects to the page in question.

That said, accessing JSP pages directly is generally recommended.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic