I've just come across something which may be a bug, or may just be accepted as a dumb way of doing things an not a worry.

Using tomcat and URL rewriting for sessions if you put;

<a href="<s:url value='/linkto'/>/<s:property value='myobject.id'/>"> Blah </a>

The link ends up as;

http://server/apppath/linkto;jessionid=2389712798321/objectId

So that when the user clicks on it the end up at http://server/apppath/linkto which is not where the developer originally inteneded

However, if I do;

<a href="<s:url value='/linkto/%{myobject.id}'/>"> Blah </a>

The link ends up as;

http://server/apppath/linkto/objectId;jessionid=2389712798321

which takes the user to the right place.

I couldn't find a note saying "Don't do this" anywhere, should the wiki be updated, or should I wear my "I am dumb" hat today?

Al.

--

* Written an Android App? - List it at http://andappstore.com/ *

======
Funky Android Limited is registered in England & Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to