Results 1 to 3 of 3
  1. #1
    rvasu_77 is offline Member
    Join Date
    Jul 2007
    Posts
    2
    Rep Power
    0

    Thumbs up Context Root change

    Hi,

    My requirement is as below;

    Instead of typing http://136.50.52.50:8080/jsp/en/index.jsp, if I type only http://136.50.52.50, it should go to the index page.

    Can anyone suggest me how to do this?

    Thanks in advance...:)
    Last edited by rvasu_77; 07-11-2007 at 12:16 PM. Reason: need to change my smiley

  2. #2
    Daniel is offline Member
    Join Date
    Jun 2007
    Posts
    91
    Rep Power
    0

    Default

    Hi, which ide and server are you working with?
    If the server is tomcat, search the following tag in web.xml file in the config directory where you have the tomcat installed
    Java Code:
    <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    In the same directory but in the sever xml, specifies the port, in this case 8080
    if you use eclipse as ide click with right button on project web-> properties --> tomcat --> context name this context name appears in directions bar of your browser, don't write nothing.

  3. #3
    rvasu_77 is offline Member
    Join Date
    Jul 2007
    Posts
    2
    Rep Power
    0

    Default

    Hi Daniel,

    I am using WSAD 5.1.2 and the server accompanied by that is Websphere v4.0 Test Environment server.

    Thanks.

Similar Threads

  1. Listing file system from root directory
    By Java Tip in forum Java Tip
    Replies: 1
    Last Post: 04-18-2009, 10:03 AM
  2. JSP/Servlet getting root directory
    By Java Tip in forum Java Tip
    Replies: 1
    Last Post: 01-06-2009, 08:51 AM
  3. Find nth root of a number
    By perito in forum New To Java
    Replies: 1
    Last Post: 03-03-2008, 06:51 AM
  4. Root Finder for polynomials
    By gibsonrocker800 in forum Advanced Java
    Replies: 11
    Last Post: 01-03-2008, 11:26 PM
  5. Application Context
    By bbq in forum Java Servlet
    Replies: 1
    Last Post: 07-05-2007, 03:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •