Two Laptop Bag*
The moose likes JSP and the fly likes encode the url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "encode the url" Watch "encode the url" New topic
Author

encode the url

joseph prabhu
Ranch Hand

Joined: Feb 26, 2008
Posts: 162
i am joe.

In my developed jsp project. all the jsp pages i navigate shows the

complete url. i used the method response.encodeUrl("king");

After this also it show the complete url as http://companyserver:7001/sales/deliver.jsp

how can do it
Thanks in advance
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Joe,
It sounds like you might not understand the purpose of the encodeURL method.
Here is a link to the API documentation.
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletResponse.html#encodeURL(java.lang.String)

Give that a read and see if it makes any more sense to you.
-Ben


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
Don't get me started about those stupid light bulbs.
 
subject: encode the url
 
Similar Threads
domain name for Intranet project
domain name for Intranet project
url details in javascript
ipaddress Vs localhost
virtual host