Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

alias name for jsp file

 
eswar kumar
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can i create a alias name for my JSP file
insted of calling like http://localhost:7001/dir/subdir1/subdir2/hi.jsp,
i want to call like http://localhost:7001/hi.jsp
 
Anil Kumar
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) You can create the application where you map "/" to the root folder where your jsp page exists.
2) You can keep the jsp "hi.jsp" at the root which inturns calls the real "hi.jsp" at your current location. Anyways this will show in the address bar when the actual 'hi.jsp' is displayed'
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64824
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
eswar, you had already asked this question earlier. Please do not post the same question twice in either the same or multiple forums. It wastes people's time -- as it did mine -- creating redundant conversations.
thanks,
bear
JSP Forum Bartender
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic