Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes JSP and the fly likes url rules Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "url rules" Watch "url rules" New topic

url rules

Ashwin Sharma

Joined: Nov 03, 2006
Posts: 28
Can some one tell me how to set url path starting from home directory. I have home/html and home/WEB-INF/jsp but I have to give the url with reference to the last page that was called. But I want all url in my pages to start from home. I tried searching it on net, and some body told me to set my context path but still its not working.
K Aditi
Ranch Hand

Joined: Mar 17, 2008
Posts: 89
You can check this FAQ to clear your confusion about building URLs in JSPs.
Also you may want to refer to this post.

I agree. Here's the link:
subject: url rules
It's not a secret anymore!