• Post Reply Bookmark Topic Watch Topic
  • New Topic

getContextPath()

 
Anthony Smith
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am tryign to find something that I can use in a jsp page inorder to not hardcode my application name in tomcat. If I got 127.0.0.1/myapp I want a function in a jsp page that returns myapp?
Can someone help?
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Rene
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!