FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Java Servlet Help needed





rjraaz
Hi Frihoster,

i am trying a web application using java. i want that my application can be loaded through browser using localhost:8080 instead of localhost:8080/may_app_name.

i know it is possible but not getting the right configuration for that
Please help me.
Fire Boar
What server are you using? And what operating system? I'm assuming a standard Tomcat/Catalina/Linux. In which case, the default app is ROOT (case-sensitive). Renaming your app file to ROOT.war (if you're using a war archive) or app folder to ROOT will do the trick. You might prefer to use a symbolic link and have the webapp somewhere else.

Alternatively, you can add a Context tag to your server.xml file.

Code:
<Context path="" docBase="/path/to/app" reloadable="true"></Context>


Here the path attribute is the base URL path, and docBase is where your application is located on disk. With path set to an empty string, the application occupies the top level.
Related topics
Big Help needed .
Java Servlet IDE and development Environmnet
Help needed for making a server in java....
Does anypne help me about JAVA on UNIX?
jsp and java servlet
[Java] Wanna help me figure out this error?
Installing GreenStone Digital library on Linux, Help Please
Help needed for Windows Mobile 6 programming
No icons on backend??
Help Needed Regarding CGI And Php
Help needed to choose appropriate server.
Help needed from Noobie and other graphic artists.
Java experts help us who know nothing
Wordpess help needed.
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.