This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

encodeurl

 
vik ar
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic