struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Lindholm <greg.lindh...@gmail.com>
Subject Re: redirect action in s:submit
Date Mon, 22 Jun 2009 15:04:23 GMT
>From looking at the source it doesn't look like it should be adding the
.action extension so I would suggest you run it in the debugger and break in
DefaultActionMapper and see where the .action is coming from.

On Mon, Jun 22, 2009 at 10:44 AM, Bhaarat Sharma <bhaarat.s@gmail.com>wrote:

> my Struts version is 2.0.6
> @Greg...I tried what you suggested..it works but not quite.
>
> "redirect:MyAction.action?param1=value1&param2=value2"
>
> turns into the following url
> MyAction.action?PageSize=50&pageIndex=3.action
>
> problem is that it adds '.action' to the end...
>
> On Mon, Jun 22, 2009 at 10:04 AM, Martin Gainty <mgainty@hotmail.com>
> wrote:
>
>
> > > Yes it works and it's part of the DefaultActionMapper.  I don't think
> you
> > > will be able to add parameters using the "redirect-action:" prefix. I
> > > haven't try it but you should be able to use the "redirect:" prefix and
> > > construct the url with parameters like this
> > > "redirect:MyAction.action?param1=value1&param2=value2".
> >

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message