Found the issue. I had missed adding
<%@ page contentType="text/html; charset=UTF-8" session="false"
pageEncoding="UTF-8"%>
in the JSP page ( by default session is true ). Now no session is created (
and so no JSESSIONID cookie is set )
Thanks!
Jeromy Evans - Blue Sky Minds wrote:
>
> rakeshxp wrote:
>> But this does not seem to work. When I hit any restful URL, then there is
>> a
>> JSESSIONID cookie being set. Could someone point out what is wrong with
>> the
>> above config ?
>>
>> Thanks!
>>
>>
>
> CodeBehind is responsible for setting up the packages.
>
> I don't know the history, but codebehind uses a separate property the
> specify the default package. Try setting both properties:
>
> <constant name="struts.configuration.classpath.defaultParentPackage"
> value="mydefault" />
>
> <constant name="struts.codebehind.defaultPackage" value="mydefault" />
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Struts-2-Rest-%2B-Prevent-Session-creation-tp19183756p19196465.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]