• Post Reply Bookmark Topic Watch Topic
  • New Topic

getting the context root

 
deep venu
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
can nebody suggest a method to get the context-root in my jsps and servlets.
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by deep venu:
hi,
can nebody suggest a method to get the context-root in my jsps and servlets.

What exactly are you referring to? Do you mean the root directory?
 
deep venu
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well, lemme explain in brief
i have an application called rol. I have created rol.ear which has rol.war and rolBeans.jar besides the applciation.xml
now my jsps are under a jsp folder and javascript files under js folder and so on ...
my question was if the context-root in applciation.xml is changed to say crol onstead of rol the path that i give in my jsp (for example for an image i wld give /rol/images/image_name)
would have changed too right??
now there is a method getCOntextPath(). and wanna know if this has got nething to do with the context-root.?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!