I just tested this (with 2.1.6) and it worked fine, no extra .action was appended.
@Sam, Maybe you should: 1) double check which version of struts you are using 2) post the full <s:submit> tag 3) do a view source and post the <input> tag that gets generated > What debugger can you suggest? Not sure how to answer this question in a manner that would be helpful. If you have never debugged a Struts 2 application then it's not like likely anything I say can help you. Better answer the 3 questions above and see if that reveals anything useful. On Mon, Jun 22, 2009 at 11:21 AM, Sam Wun <swun2...@gmail.com> wrote: > What debugger can you suggest? > I also wantn to debug struts in portal, but when there is problem in a > protlet, if there is no error msg in the protal log file, I can't see > anything wrong in the portal page, because the portal simply refresh > the portal page and show the first page. > > On Tue, Jun 23, 2009 at 1:04 AM, Greg Lindholm<greg.lindh...@gmail.com> > wrote: > > 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 <bhaara...@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¶m2=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 <mgai...@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¶m2=value2". > >> > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >