Re: Using Two Parent Pakages!!

2013-07-10 Thread Alireza Fattahi
Hi, So I define some thing like package name=myPackage extends=json-default,rest-default    namespace=/   /package   Is it possible that I say the struts that this the default package for all packages ?! ~Regards, ~~Alireza Fattahi From: Lukasz Lenart

REST Plugin with convention plugin

2013-07-10 Thread Alireza Fattahi
Hi, I am trying to use REST Plugin with convention plugin . For all REST actions I should extend RestActionMapper, After I extend RestActionMapper instead of ActionSuppor, the convention plugin those not find the action any more !   ~Regards, ~~Alireza Fattahi

Re: Using Two Parent Pakages!!

2013-07-10 Thread Lukasz Lenart
2013/7/10 Alireza Fattahi afatt...@yahoo.com: Hi, So I define some thing like package name=myPackage extends=json-default,rest-default namespace=/ /package Is it possible that I say the struts that this the default package for all packages ?! There is nothing like that - a

Re: REST Plugin with convention plugin

2013-07-10 Thread Lukasz Lenart
2013/7/10 Alireza Fattahi afatt...@yahoo.com: Hi, I am trying to use REST Plugin with convention plugin . For all REST actions I should extend RestActionMapper, After I extend RestActionMapper instead of ActionSuppor, the convention plugin those not find the action any more ! Check this

Re: Possible client side validation bug in Struts 2.3.15

2013-07-10 Thread Lukasz Lenart
2013/7/5 Bruno Klava bkl...@gmail.com: As far as I can tell, this difference is due to changes made in org.apache.struts2.components.Form.getValidators(String name) I would say that now is ok and previously it was a bug ;-) But you are right, that breaks backward compatibility Regards --

Re: Possible client side validation bug in Struts 2.3.15

2013-07-10 Thread Lukasz Lenart
2013/7/10 Lukasz Lenart lukaszlen...@apache.org: 2013/7/5 Bruno Klava bkl...@gmail.com: As far as I can tell, this difference is due to changes made in org.apache.struts2.components.Form.getValidators(String name) I would say that now is ok and previously it was a bug ;-) But you are right,

Re: Possible client side validation bug in Struts 2.3.15

2013-07-10 Thread Alireza Fattahi
Hi, I get these two warnings: 2013-07-10 16:42:45,683  WARN (com.opensymphony.xwork2.interceptor.ParametersInterceptor:56) - Parameter [struts.enableJSONValidation] is on the excludeParams list of patterns! 2013-07-10 16:42:45,683  WARN

S2 custom authentication: remembering original request

2013-07-10 Thread Antonio Sánchez
Use Case: request some protected resource - redirect action for authentication - access protected resource. I'm using a custom interceptor that redirects (redirectAction) to a global result if no user object is found in session. The final action result then redirects to a login page. The

Re: S2 custom authentication: remembering original request

2013-07-10 Thread Dave Newton
Second question: because it's a redirect, hence a new request. Dave On Jul 10, 2013 7:28 AM, Antonio Sánchez juntandolin...@gmail.com wrote: Use Case: request some protected resource - redirect action for authentication - access protected resource. I'm using a custom interceptor that

Re: S2 custom authentication: remembering original request

2013-07-10 Thread CRANFORD, CHRIS
It should definitely be possible because what you described is out of the box functionality in Spring Security where their concept of intercepters is a filter. I would recommend that if you need a complete authentication and permissions checking functionality to look into Spring Security. We

Global Validation

2013-07-10 Thread Alireza Fattahi
Hi, Are there Global Validation  in struts 2 ?!   ~Regards, ~~Alireza Fattahi

Re: Global Validation

2013-07-10 Thread Lukasz Lenart
2013/7/10 Alireza Fattahi afatt...@yahoo.com: Hi, Are there Global Validation in struts 2 ?! What you mean by that? Validations which affects each and every action? If so, no. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

Re: S2 custom authentication: remembering original request

2013-07-10 Thread Antonio Sánchez
Second question: because it's a redirect, hence a new request. http://localhost:8084/mycontext/autenticar = login.jsp - OK Returned by interceptor: global-results result name=AUTENTICAR/autenticar/result /global-results

Re: S2 custom authentication: remembering original request

2013-07-10 Thread Antonio Sánchez
El Miércoles, 10 de julio de 2013 13:00:44 CRANFORD, CHRIS escribió: It should definitely be possible because what you described is out of the box functionality in Spring Security where their concept of intercepters is a filter. How can I remember the original request? Piece by piece? I can

Re: S2 custom authentication: remembering original request

2013-07-10 Thread Antonio Sánchez
Can't forward even without using global results: http://localhost:8084/mycontext/autenticar = login.jsp - OK action name=forward result/autenticar/result /action http://localhost:8084/mycontext/forward = 404 ERROR - /mycontext/autenticar not available

Re: S2 custom authentication: remembering original request

2013-07-10 Thread Paul Benedict
Forwarding to another action means you want to do chaining: http://struts.apache.org/release/2.3.x/docs/action-chaining.html result type=chain param name=actionNameautenticar/param /result On Wed, Jul 10, 2013 at 10:00 AM, Antonio Sánchez juntandolin...@gmail.comwrote: Can't forward even

Re: S2 custom authentication: remembering original request

2013-07-10 Thread Dave Newton
Or configure the server to run forwards through the filter. On Jul 10, 2013 10:08 AM, Paul Benedict pbened...@apache.org wrote: Forwarding to another action means you want to do chaining: http://struts.apache.org/release/2.3.x/docs/action-chaining.html result type=chain param

struts s:property br

2013-07-10 Thread john lee
in my application, the following br newline charactor never happen. s:property value=Out of Stock BRAvg:2-5 days/   how to let above BR take effect? thanks john

Re: struts s:property br

2013-07-10 Thread Dave Newton
Escape it. Check out the tag Docs. On Jul 10, 2013 11:16 PM, john lee sh_thorn_b...@yahoo.com wrote: in my application, the following br newline charactor never happen. s:property value=Out of Stock BRAvg:2-5 days/ how to let above BR take effect? thanks john

Re: struts s:property br

2013-07-10 Thread john lee
thanks, it works the format is  s:property value=Out of Stock BRAvg:2-5 days escape=false/ From: Dave Newton davelnew...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, July 10, 2013 10:17 PM Subject: Re: struts s:property