• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Change application directory

 
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic