Re: struts s:property

2013-07-10 Thread john lee
thanks, it works the format is  From: Dave Newton To: Struts Users Mailing List Sent: Wednesday, July 10, 2013 10:17 PM Subject: Re: struts s:property Escape it. Check out the tag Docs. On Jul 10, 2013 11:16 PM, "john lee" wrote: > > > > > in my ap

Re: struts s:property

2013-07-10 Thread Dave Newton
Escape it. Check out the tag Docs. On Jul 10, 2013 11:16 PM, "john lee" wrote: > > > > > in my application, the following newline charactor never happen. > > > > > > how to let above take effect? > > thanks > > john

struts s:property

2013-07-10 Thread john lee
in my application, the following newline charactor never happen.   how to let above take effect? thanks john

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" wrote: > Forwarding to another action means you want to do chaining: > http://struts.apache.org/release/2.3.x/docs/action-chaining.html > > > autenticar > > > > On Wed, Jul 10, 2013 at 10:

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 autenticar On Wed, Jul 10, 2013 at 10:00 AM, Antonio Sánchez wrote: > Can't forward even without using global results: > > http://localhost:8084/mycontext/autentic

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 /autenticar http://localhost:8084/mycontext/forward => 404 ERROR - /mycontext/autenticar not available Which is the right way to forward to a

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 ca

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: /autenticar http://localhost:8084/mycontext/admin/protected => 404 ERROR - /mycontext/autenticar not available H

Re: Global Validation

2013-07-10 Thread Lukasz Lenart
2013/7/10 Alireza Fattahi : > 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/

Global Validation

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

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 h

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" wrote: > Use Case: request some protected resource -> redirect action for > authentication -> access protected resource. > > I'm using a custom interceptor that redirects (redirectActi

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 i

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 (com.opensymphony.xwork2.interceptor.ParametersIntercept

Re: Possible client side validation bug in Struts 2.3.15

2013-07-10 Thread Lukasz Lenart
2013/7/10 Lukasz Lenart : > 2013/7/5 Bruno Klava : >> 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 compatibili

Re: Possible client side validation bug in Struts 2.3.15

2013-07-10 Thread Lukasz Lenart
2013/7/5 Bruno Klava : > 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 -- Łukasz + 48 606 32

Re: REST Plugin with convention plugin

2013-07-10 Thread Lukasz Lenart
2013/7/10 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 ! Check this [1] out [1]

Re: Using Two Parent Pakages!!

2013-07-10 Thread Lukasz Lenart
2013/7/10 Alireza Fattahi : > Hi, > > So I define some thing like > > namespace="/"> > > > > > Is it possible that I say the struts that this the default package for all > packages ?! There is nothing like that - a default package - you can re-use your package in xml or with annotation: @P

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 Alireza Fattahi
Hi, So I define some thing like     Is it possible that I say the struts that this the default package for all packages ?! ~Regards, ~~Alireza Fattahi From: Lukasz Lenart To: Struts Users Mailing List ; Alireza Fattahi Sent: Wednesday, 10 July 2013