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
${getText("validate.required")}
10
${getText("validate.int.min")}
the following sample is from Struts2/Jquery plugin sample, and works perfect
in JSP,
in Action
private Map accordion; public String execute() throws Exception
{ accordion = new HashMap(); accordion.put("Section 1", "sample
1"); accordion.put("Section 2", "sample 2"); accordion.put("Section
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), con
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 F
AFAIC, chaining interceptor is included in the default stack.
Anyway I have added it and still same result.
I'll try Rahul comments and will let you know.
El Viernes, 12 de julio de 2013 13:05:10 Antonios Gkogkakis escribi
Have you added the Chaining interceptor ?
Antonios
On 12 July 2013 12:41, Antonio Sánchez wrote:
> El Viernes, 12 de julio de 2013 12:33:43 Antonios Gkogkakis escribió:
> > try
> > request.setAttribute("url",invocation.getInvocationContext().getName())
> in
> > your interceptor.
>
> Same re
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án
try
request.setAttribute("url",invocation.getInvocationContext().getName()) in
your interceptor.
Antonios
On 12 July 2013 12:03, Antonio Sánchez wrote:
> I'm having problems with chaining. I have tried several ways but none
> works. For instance:
>
> 1. http://localhost/mycontext/secure/pro
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: [//authenticate!authenti
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 action
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.
> >>
> > > /autenticar
> > >
> > >
> > > http://localhost:8084/mycontext/forward => 404 ERROR -
> >
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" wrote:
>
> > Forwarding to another action means you want to do chaining:
> > http://struts.apac
12 matches
Mail list logo