Results 1 to 7 of 7
  1. #1
    arun9683 is offline Member
    Join Date
    Jun 2010
    Location
    Bangalore,India
    Posts
    70
    Rep Power
    0

    Unhappy how to have two url for the same application ?

    I have my application "myapp".

    I deployed it in the tomcat server.

    when i am accessing it with the url "http://localhost:8080/myapp/" the application works fine.

    Now i have a requirement that if i give "http://localhost:8080/test.myapp/" then also it should point to my application.

    How can i achieve the same.. ?
    Arun K R,Bangalore,India
    :)

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

  3. #3
    arun9683 is offline Member
    Join Date
    Jun 2010
    Location
    Bangalore,India
    Posts
    70
    Rep Power
    0

    Default

    where do i need to configure that .. ?
    Arun K R,Bangalore,India
    :)

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    How you build you application, means what's the technology you use? JSP, ASP.Net.... You should provide more information.

  5. #5
    arun9683 is offline Member
    Join Date
    Jun 2010
    Location
    Bangalore,India
    Posts
    70
    Rep Power
    0

    Default

    Jsp,servlets.. and java beans for the business logic
    Arun K R,Bangalore,India
    :)

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

  7. #7
    arun9683 is offline Member
    Join Date
    Jun 2010
    Location
    Bangalore,India
    Posts
    70
    Rep Power
    0

    Default

    No it wont work..

    Reoponse.sendRedirec() this will redirect to a page with the same context path. (Ex: "http://localhost:8080/myapp") and will not work for different context path unless and until the second url also pointing to the application.

    My problem is how to make it point?

    In other words

    how to have 2 different context path for the same application. ?
    Arun K R,Bangalore,India
    :)

Similar Threads

  1. web application
    By sunilappu in forum New To Java
    Replies: 6
    Last Post: 01-21-2010, 11:54 AM
  2. Replies: 3
    Last Post: 12-04-2009, 12:10 PM
  3. Replies: 0
    Last Post: 04-22-2009, 01:30 PM
  4. Replies: 0
    Last Post: 02-16-2008, 09:31 PM
  5. Replies: 0
    Last Post: 02-16-2008, 09:29 PM

Posting Permissions

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