You can define another result for redirecting with the type redirect of name anything you want. That should be a problem. Return the same string from method as the redirect name.
On Wed, Jan 20, 2010 at 12:13 PM, emil thushanga <thusha...@gmail.com>wrote: > Hi > > If user created a book mark and accessing a page then how can push him to > index action. based on the user accessing namespace i want to set a session > variable with the corresponding region. > > Ex > > if namespace is 'Barbados' > session ='Barbados' > > if namespace is 'Antigua' > session ='Antigua' > > > If this is you saying please provide me additional info. since i am very > basic in S2. > > Lots of thanks > Emil > > ==================================================================== > > On Wed, Jan 20, 2010 at 12:51 PM, Saeed Iqbal <saee...@gmail.com> wrote: > > > You should be able to do index and land on that jsp. Also maybe put a > > method > > property inside action tag > > > > On Wed, Jan 20, 2010 at 11:48 AM, emil thushanga <thusha...@gmail.com > > >wrote: > > > > > Hi, > > > > > > this may be helpful. > > > > > > ==================================================================== > > > <package namespace="/barbados" name="myPackage1" > > extends="struts-default"> > > > <action name="index" class="IndexAction"> > > > <result>/jsp/ukbarbados/index.jsp</result> > > > </action> > > > <action name="listHotels" class="StarPageAction"> > > > <param name="country">barbados</param> > > > <result>/jsp/ukbarbados/list_hotels.jsp</result> > > > </action> > > > <action name="hotel" class="Hotel"> > > > <result >/jsp/commonjsps/hotel.jsp</result> > > > </action> > > > </package> > > > > > > > > > <package namespace="/antigua" name="myPackage2" > extends="struts-default"> > > > <action name="index" class="IndexAction"> > > > <result>/jsp/ukantigua/index.jsp</result> > > > </action> > > > </package> > > > > ======================================================================== > > > > > > thanks > > > Emil > > > > > > > > > On Wed, Jan 20, 2010 at 12:22 PM, Saeed Iqbal <saee...@gmail.com> > wrote: > > > > > > > This is strange. What kind of a setup do you have? > > > > > > > > On Wed, Jan 20, 2010 at 11:20 AM, emil thushanga < > thusha...@gmail.com > > > > >wrote: > > > > > > > > > Dear all, > > > > > > > > > > I have an S2 web application. No login procedure and any page can > be > > > > > accessed. Basically it’s an Open session. > > > > > > > > > > It’s a hotel website. As an example when user access Barbados web > > pages > > > > > > > > > > , regardless of any URL patter session should be created and token > > > should > > > > > be > > > > > save as region='Barbados'. > > > > > > > > > > If user accessing any of Antigua URLs session should be filled with > > > > > region='Antigua' > > > > > > > > > > We have separated regions by using different namespaces in > > struts.xml. > > > > > > > > > > > > > > > > > > > > Example URL pattern, > > > > > > > > > > http://localhost:8084/subsites/barbados/listHotels.html?starRate=3 > > > > > > > > > > Please provide a help on this. > > > > > > > > > > Thanks > > > > > > > > > > Emil > > > > > > > > > > > > > > > > > > > > > -- > > > > Saeed Iqbal > > > > Independant Consultant > > > > J2EE - Application Architect / Developer > > > > > > > > > > > > > > > > -- > > > Emil Thushanga > > > > > > > > > > > -- > > Saeed Iqbal > > Independant Consultant > > J2EE - Application Architect / Developer > > > > > > -- > Emil Thushanga > -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer