Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Change application directory

 
Manish Hatwalne
Ranch Hand
Posts: 2591
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This should be easy, but somehow I am little confused. I have done this for JSP/Sevlets, but I don't know what all things are requited to be changed if I need to change my application directory using struts from ROOT to another directory (I am using struts with velocity and not JSP). Will few changes in web.xml suffice or is more work required here?

As of now it gets serverd as -
http://wwww.mydomain.com/index.do
I want to make it -
http://wwww.mydomain.com/xyz/index.do

What all code changes will be required here?

- Manish
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add the context root to your .war file. I think that's it.
 
Manish Hatwalne
Ranch Hand
Posts: 2591
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Marc Peabody:
Add the context root to your .war file. I think that's it.


Mind elaborating more? I think I have tried what you're suggesting, but it doesn't seem to be as simple as that.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic