Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Change application directory

 
Ranch Hand
Posts: 2596
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
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • 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: 2596
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.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic