C
Christine Mayer
I want to dynamically output the hosts url - e.g. "http:/
www.myurl.com/" using a JSTL tag.
I tried several things, but didn't get it to work. I read the J2EE API
and found request.getRemoteHost() which might be what I need (not
sure, because on my local pc it returns 127.0.0.1 istead of
"localhost"), however,
<c
ut value="${remoteHost}"/>
did not work.
Any idea what's wrong?
More info:
Hi, I want to create a link to send the current url by email. However,
I am also using urlrewrite, so I cannot take the real url. Therefore I
have a parameter "currentUrl" that gives me the current url - however
I don't want to statically include the host's adress, I would like to
add it dynamically, so it must be something like:
<c
ut value="${remoteHost}"/><c
ut value="${currentUrl}"/>
Thanks in advance,
Christine
www.myurl.com/" using a JSTL tag.
I tried several things, but didn't get it to work. I read the J2EE API
and found request.getRemoteHost() which might be what I need (not
sure, because on my local pc it returns 127.0.0.1 istead of
"localhost"), however,
<c
did not work.
Any idea what's wrong?
More info:
Hi, I want to create a link to send the current url by email. However,
I am also using urlrewrite, so I cannot take the real url. Therefore I
have a parameter "currentUrl" that gives me the current url - however
I don't want to statically include the host's adress, I would like to
add it dynamically, so it must be something like:
<c
Thanks in advance,
Christine