A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
JSP
Author
encode the url
joseph prabhu
Ranch Hand
Joined: Feb 26, 2008
Posts: 162
posted
May 21, 2008 06:00:00
0
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
I like...
posted
May 21, 2008 06:21:00
0
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
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: encode the url
Similar Threads
virtual host
domain name for Intranet project
url details in javascript
ipaddress Vs localhost
domain name for Intranet project
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter