Struts2-jquery-grid-show on jboss as 6.0.final

2013-09-12 Thread ngarigarius
Hello everyone, I was able to deploy and run struts2-jquery-grid-showcase 3.6.1 on tomcat application server out of box. However, I am unable to run it on jboss-as-6.0.final. I believe that jboss is expecting all the actions to be configured explicitly on the struts.xml. This is how I configu

Re: Value not persisting in domain object

2013-09-12 Thread Srineel Mazumdar
Hi Umesh, Paul and Martin, Thanks a lot for you help. Finally using session aware I could save and retrieve the shopping cart across pages. PFB the code : To save : Use implements SessionAware public void setSession(Map sessionMap) { map = sessionMap; map.put("ShoppingCart", getCart()); To ret

Re: Redirecting to legacy action from struts 2 action ?

2013-09-12 Thread Lukasz Lenart
2013/9/12 Mohit Gupta : > Yes i am sure value is "/customerhome.do?custIdId=200". > > Also do you mean that result mapping should be > @Result(name = "redirectTo", location = " ${#parameters.redirectLocation} ", > type = "redirect") }) > > instead of > > @Result(name = "redirectTo", location = "#

Re: Redirecting to legacy action from struts 2 action ?

2013-09-12 Thread Mohit Gupta
Yes i am sure value is "/customerhome.do?custIdId=200". Also do you mean that result mapping should be @Result(name = "redirectTo", location = " ${#parameters.redirectLocation} ", type = "redirect") }) instead of @Result(name = "redirectTo", location = "#parameters.redirectLocation", type = "r

Re: Redirecting to legacy action from struts 2 action ?

2013-09-12 Thread Lukasz Lenart
2013/9/12 Mohit Gupta : > Lukasz, is there any workaround so that i can get rid of namespace? > > As i mentioned if i hard code the url under location attribute, it works > fine and does not add any namespace > > @Result(name = ComposeMessageCrudAction.REDIRECT_TO, location = > "/customerhome.do?cu

Re: Redirecting to legacy action from struts 2 action ?

2013-09-12 Thread Mohit Gupta
Lukasz, is there any workaround so that i can get rid of namespace? As i mentioned if i hard code the url under location attribute, it works fine and does not add any namespace @Result(name = ComposeMessageCrudAction.REDIRECT_TO, location = "/customerhome.do?custIdId=200", type = "redirect") })

Re: question regarding dynamic number of form fields

2013-09-12 Thread Lukasz Lenart
It's because of restrictions in ParametersInterceptor - it doesn't allow keys with spaces as this can be potential malicious code. Check docs [1] and source [2] [1] http://struts.apache.org/development/2.x/docs/parameters-interceptor.html [2] https://svn.apache.org/repos/asf/struts/struts2/trunk/

question regarding dynamic number of form fields

2013-09-12 Thread Christoph Nenning
Dear List, we have some forms in our applications which contain a dynamic number of fields. Therefore we have a map as action member and generate HTTP parameter names like this: https://github.com/wolpi/struts2-samples/tree/master/mapparaspaces Could you please have a look at this? Regard

Re: Redirecting to legacy action from struts 2 action ?

2013-09-12 Thread Lukasz Lenart
2013/9/11 Christoph Nenning : > it should work when you add namespace "/" to paramters: > > @Result( > name = "redirectTo", > location = "#parameters.redirectLocation", > type = "redirect", > params={"namespace", "/"} > ) > > > see this wiki page: > http://struts.apa