• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

proxy url name

 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i had developed a application in servlet whose name is loginpage.java. but when i have to see same application in my browser with different name say http://localhost:8080/different page. How can i do this?
i save my application in some name and i have to view that same application in my browser with different name for security purpose. How can i achieve this ?
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

shyamkumar bopannachengalaiah wrote:i had developed a application in servlet whose name is loginpage.java.


Do you want to say, I build a servlet, named loginpage.java ?

shyamkumar bopannachengalaiah wrote:
but when i have to see same application in my browser with different name say http://localhost:8080/different page. How can i do this?
i save my application in some name and i have to view that same application in my browser with different name for security purpose. How can i achieve this ?


You can map this servlet to the diffrent name(relative path) in Deployment Desciptor(web.xml), as


And please use meaningful subject line.


 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
webxml file should look like this



<servlet>
<servlet-name>name</servlet-name>
<servlet-class>loginpage</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>name</servlet-name>
<url-pattern>/different</url-pattern>
</servlet-mapping>
 
Well THAT's new! Comfort me, reliable tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic