Re: struts 2 validation if use with spring

2013-03-07 Thread Lukasz Lenart
2013/3/8 john lee : > As specified in the docs [1][2], validation file name must match schema: class-name-validation.xml -> LoginAction-signin-validation.xml [1] http://struts.apache.org/development/2.x/docs/validation.html#Validation-DefiningValidationRules [2] http://struts

struts 2 validation if use with spring

2013-03-07 Thread john lee
Problem   I use struts2/spring 3 as integration, and need to use struts2 validation.xml as well, Basically, the action name in the login.jsp/struts.xml  is pseudo class name, but is implemented in the applicationContext.xml In order to let validation.xml works, I defined  all the possible XX

RE: iframes with struts2

2013-03-07 Thread Denise
Found the problem. No need to create mini struts2 app. Would have posted this sooner but got a bit busy. I had JSPs referenced in the frameset. I changed it to actions instead, created the Actions and mapped the JSPs and Actions in the struts xml. Example before: Example af

Re: How to make struts 2 to pass the correct parameter value even if it has ampersand in between?

2013-03-07 Thread Lukasz Lenart
Try to encode it or manually replace & => %26 http://www.w3schools.com/tags/ref_urlencode.asp Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/3/7 Mohit Gupta : > i have struts 2 action which has following method > > public String viewCustomer() { > return "ViewCustomer"

Re: Truncate namespace while forwarding the request to legacy action from struts 2?

2013-03-07 Thread Mohit Gupta
Thanks lukasz On Tue, Mar 5, 2013 at 1:38 AM, Lukasz Lenart wrote: > 2013/3/4 Mohit Gupta : > > But incase of redirect all request parameters needs to be passed manually > > or struts 2 has some built in support for this > > There is struts.url.includeParams option but this is per application > c

Re: Multiple Window and Struts2 token issue.

2013-03-07 Thread Sreekanth S. Nair
I found it myself that itself is the problem. token should always accompany with a unique name, struts2 always uses the default name for token field ie *struts.token*. As a conclusion to avoid the below mentioned problem, we have to add token tag like . So now my first form having and second one