Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

context root /

 
Esteban Puertas
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!,
I hope this is the right place to post this question.
I would like to know if using a context root / for an war module is a good or bad practice....

Thank you
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64629
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You question is very vague. Please elaborate.
 
Esteban Puertas
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have developed one war module and now we have to deploy it but I was thinking if using a context root / is a good idea. What are the pros and cons of using a context root / for a web module ?
 
karthikeyan Chockalingam
Ranch Hand
Posts: 259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let us assume you have this web application deployed at www.abcsomeweburl12.com with context root /. In future if you change the context root as xyz [which can be done in a single place] for some reason, the access should be www.abcsomeweburl12.com/xyz.

The impact is any existing links [in discussion forums, blogs] etc to your application will be broken.
[ May 19, 2008: Message edited by: karthi keyan ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the links are formed correctly they will not be broken when the context path name changes.

See:
http://faq.javaranch.com/java/ResourceUrlProblems
 
karthikeyan Chockalingam
Ranch Hand
Posts: 259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the links are formed correctly they will not be broken when the context path name changes.


I apologize for lack of clarity in my previous comment. It should have been


The impact is any existing external links [in external discussion forums, blogs etc that are not under our control] referring to the application will be broken. For example the bookmarks [or favorites] in the browser [of a visitor] will become invalid
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic