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
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
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
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]
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
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
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
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
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
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
Hi,
Are there Global Validation in struts 2 ?!
~Regards,
~~Alireza Fattahi
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/
> 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
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
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
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
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:
in my application, the following newline charactor never happen.
how to let above take effect?
thanks
john
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
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
20 matches
Mail list logo