aspose file tools*
The moose likes Struts and the fly likes encodeurl Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "encodeurl" Watch "encodeurl" New topic
Author

encodeurl

vik ar
Ranch Hand

Joined: Jul 31, 2009
Posts: 104
Hi. I am using sessions in my web app. Now I have to think about using encodeurl if cookies are turned off. Some of the links on my jsp map to an action which in turn maps immediately to a tile i.e. there is no java being executed in between. Hence my question is, is there anyway of appending the session id to the url aside from java. If not I will have to have a java class for every action where some of them are just encoding the url and doing nothing else. Would the following work:

<a href="Some.action";${pageContext.session.id}>Some Link </a>

I am using struts2 and apache tiles
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: encodeurl
 
Similar Threads
encodeURL() not working ??
Session not working on IE with high security
what if I replace the "html:form" by "form"?
Do I need to "add" encodeURL for "action" tag in this case ?
encodeURL necessary?