• Post Reply Bookmark Topic Watch Topic
  • New Topic

proxy url name  RSS feed

 
shyamkumar bopannachengalaiah
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • 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 ?
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • 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.


 
Ankitt Gupta
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • 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>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!