File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "encode the url" Watch "encode the url" New topic

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

Joined: Dec 11, 2004
Posts: 13410

It sounds like you might not understand the purpose of the encodeURL method.
Here is a link to the API documentation.

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

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: encode the url
It's not a secret anymore!