Re: Session help

2010-01-19 Thread emil thushanga
Hi Thanks for the solutions. i prefer to do it in interceptors way. if any resources available for me to grab the thing please let me know. any way thanks a lot. Emil On Wed, Jan 20, 2010 at 1:25 PM, Dale Newfield wrote: > emil thushanga wrote: > >> if namespace is 'Barbados' >> session =

Re: Session help

2010-01-19 Thread Dale Newfield
emil thushanga wrote: if namespace is 'Barbados' session ='Barbados' if namespace is 'Antigua' session ='Antigua' One simple way to do this would be to write an interceptor that takes the namespace from the action mapping and sets the appropriate value in session scope. -Dale

Re: Session help

2010-01-19 Thread Saeed Iqbal
sorry should not be a problem On Wed, Jan 20, 2010 at 12:13 PM, emil thushanga 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 >

Re: Session help

2010-01-19 Thread Saeed Iqbal
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 wrote: > Hi > > If user created a book mark and accessing a page then

Re: Session help

2010-01-19 Thread emil thushanga
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 ='Anti

Re: Session help

2010-01-19 Thread Saeed Iqbal
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 wrote: > Hi, > > this may be helpful. > > > > >/jsp/ukbarbado

Re: Session help

2010-01-19 Thread emil thushanga
Hi, this may be helpful. /jsp/ukbarbados/index.jsp barbados /jsp/ukbarbados/list_hotels.jsp /jsp/commonjsps/hotel.jsp

Re: Session help

2010-01-19 Thread Saeed Iqbal
This is strange. What kind of a setup do you have? On Wed, Jan 20, 2010 at 11:20 AM, emil thushanga 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 Barb

Session help

2010-01-19 Thread emil thushanga
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'.

validation in struts2

2010-01-19 Thread Shasha
Hi All, I am not able to get the validation errors from Login-validation.xml when i am using Modeldriven . Login-validation.xml 1. http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";> 4. 5. 6. 7. 8. 9. 10.

Re: s:iterator did not return result?

2010-01-19 Thread Emi Lu
I have a problem of running the example: http://www.vaannila.com/struts-2/struts-2-example/struts-2-iterator-tag-example1.html JSP is: Title Genre true">oddeven"> View sources, only see: Title Genre Codes under itera

s:iterator did not return result?

2010-01-19 Thread Emi Lu
Good morning, I have a problem of running the example: http://www.vaannila.com/struts-2/struts-2-example/struts-2-iterator-tag-example1.html JSP is: Title Genre true">oddeven"> View sources, only see: Title Genre Codes u