This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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!