留言板
Jsp variable to url?
Hey guys,
does somebody know how i could give the value of an variable to a url?
for example my variable ist:
<%
String userid = givenName;
out.println(userid);
%>
// I get the right echo from this so that works fine but no i need to get the "userid" into a url like this:
http://www.xxx.xx/xx/xx_"userid"
so when i change the userid that the url cahnges????
does somebody know how i could give the value of an variable to a url?
for example my variable ist:
<%
String userid = givenName;
out.println(userid);
%>
// I get the right echo from this so that works fine but no i need to get the "userid" into a url like this:
http://www.xxx.xx/xx/xx_"userid"
so when i change the userid that the url cahnges????
http://www.xxx.xx/xx/xx_<%= userid %>
Hi Hitoshi,
Could you explain more on this part.
Thanks in advance
Could you explain more on this part.
Thanks in advance
http://www.xxx.com?userId=<%=userId%>