struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rakeshxp <rakes...@gmail.com>
Subject Re: Struts 2 Rest + Prevent Session creation
Date Thu, 28 Aug 2008 08:36:53 GMT

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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message