H
Hemaraj
Dear Java group
I have a JSP page which has some hyperlinks that contain values such as
http://www.mydomain.com#Something1
http://www.mydomain.com#Something2
When I click on them, they should be passed as value of query string to a
servlet. When the servlet is run, I can see in url field of the browser that
the correct value was passed ; for example I see:
http://localhost:8080/MyWebSite/ShowDetails?SelectedItem=http://www.mydomain.com#Something2
Where ShowDetails is the name of the servlet that is getting this selected
item through
String Selected1 = request.getParameter("SelectedItem");
However, when I want to display this field using
out.println("<p>Value " + Selected1 + "</p>");
I only see http://www.mydomain.com - what I want to see is :
http://www.mydomain.com#Something2 - meaning, the part #something1 is not
there anymore.
How to solve this problem?
Thank you
I have a JSP page which has some hyperlinks that contain values such as
http://www.mydomain.com#Something1
http://www.mydomain.com#Something2
When I click on them, they should be passed as value of query string to a
servlet. When the servlet is run, I can see in url field of the browser that
the correct value was passed ; for example I see:
http://localhost:8080/MyWebSite/ShowDetails?SelectedItem=http://www.mydomain.com#Something2
Where ShowDetails is the name of the servlet that is getting this selected
item through
String Selected1 = request.getParameter("SelectedItem");
However, when I want to display this field using
out.println("<p>Value " + Selected1 + "</p>");
I only see http://www.mydomain.com - what I want to see is :
http://www.mydomain.com#Something2 - meaning, the part #something1 is not
there anymore.
How to solve this problem?
Thank you