File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generalizing servlet URL

 
Mahajan Bhupendra
Ranch Hand
Posts: 118
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i have done a project in servlet...
in that i have to give the url of servlet like..
http://computerName:8080/servlet/packageName.servletName
now my problem is if i want to give my project to
someone else the URl is going to change on his comp
now i want to generalize my url so that if i copy
it anywhere it should work
what should i do???
Tankx in advance
Bhupendra
[This message has been edited by Mahajan Bhupendra (edited August 27, 2001).]
[This message has been edited by Mahajan Bhupendra (edited August 27, 2001).]
 
Marcos Maia
Ranch Hand
Posts: 977
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn�t understand exactly what you mean but you coul�d use the init parameter from the web.xml file to pass a parameter without need to change the code.
<init-param>
<param-name>xxxxxxx</param-name>
<param-value>xxxxxxxxxx</param-value>
</init-param>
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic