Solved, please check with the latest build ... hm ... ale the build are gone :\
https://builds.apache.org/view/S-Z/view/Struts/
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
2013/7/11 Bruno Klava bkl...@gmail.com:
Issue created: https://issues.apache.org/jira/browse/WW-4139
El Miércoles, 10 de julio de 2013 10:14:55 Dave Newton escribió:
Or configure the server to run forwards through the filter.
Sorry, I don't understand.
On Jul 10, 2013 10:08 AM, Paul Benedict pbened...@apache.org wrote:
Forwarding to another action means you want to do chaining:
That doesn't do what you want because by not specifying the result type,
the dispatcher result is used and it's trying to serve
the /authenticar resource, which doesn't exist.
action name=forward
result/autenticar/result
/action
Hi
Here is the way you can achieve this.
You need to design login action to have the url 'redirectto' parameter
which will holds the redirectaction. Upon login interception you will first
check the login is done and then check for this parameter if there any
value then simply forward to that
I'm having problems with chaining. I have tried several ways but none works.
For instance:
1. http://localhost/mycontext/secure/protected = Login.jsp (${#request.url} is
readable in jsp).
2. Login.jsp = submit (correct user/pwd) = ERROR: Infinite recursion
detected:
try
request.setAttribute(url,invocation.getInvocationContext().getName()) in
your interceptor.
Antonios
On 12 July 2013 12:03, Antonio Sánchez juntandolin...@gmail.com wrote:
I'm having problems with chaining. I have tried several ways but none
works. For instance:
1.
El Viernes, 12 de julio de 2013 12:33:43 Antonios Gkogkakis escribió:
try
request.setAttribute(url,invocation.getInvocationContext().getName()) in
your interceptor.
Same result. Even using invocation.getProxy().getNamespace().
Antonios
On 12 July 2013 12:03, Antonio Sánchez
Have you added the Chaining interceptor ?
Antonios
On 12 July 2013 12:41, Antonio Sánchez juntandolin...@gmail.com wrote:
El Viernes, 12 de julio de 2013 12:33:43 Antonios Gkogkakis escribió:
try
request.setAttribute(url,invocation.getInvocationContext().getName())
in
your
AFAIC, chaining interceptor is included in the default stack.
Anyway I have added it and still same result.
interceptor-ref name=chain/ !--- HERE --
interceptor-ref name=securityInteceptor /
interceptor-ref name=chain/
Hi,
The plugin page link : https://cwiki.apache.org/S2PLUGINS/home.html in struts
site is broken:
Not Found
The requested URL /S2PLUGINS/home.html was not found on this server.
Apache/2.2.22 (Ubuntu) Server at cwiki.apache.org Port 80
~Regards,
~~Alireza
If I use redirections I will lose the original request(parameters, uploading
binary data ...). But I am unable to make it work using forwards (chaining
actions).
I give up. I can't do his with S2. I guess this use case requires some external
approach: servlet filter (as Dave pointed out),
the following sample is from Struts2/Jquery plugin sample, and works perfect
in JSP,
sj:accordion id=accordionlist list=accordion/
in Action
private MapString, String accordion; public String execute() throws Exception
{ accordion = new HashMapString, String(); accordion.put(Section 1,
Hi,
I want to validate the amount filed to be an integer with minimum value of 1
I describe the field type as Integer (not int )
Add below validation rule
field name=amount
field-validator type=required
message ${getText(validate.required)}/message
13 matches
Mail list logo