[struts2] 's method attribute doesn't work

2012-11-11 Thread Wu Ming
Hi, I'm using struts-2.3.4 and running apache tomcat 7. I have a form in search.jsp. There are two submit buttons: "Search" and "Add New" button. I had set each button with their own method attribute: In struts.xml: http://struts.apache.org/dtds/struts-2.3.dtd";>

Re: 回复:[struts2] 's method attribute doesn't work

2012-11-13 Thread Wu Ming
Hi, Never mind, I had found the solution: you have to set "struts.enable.DynamicMethodInvocation" to true. On Tue, Nov 13, 2012 at 7:52 PM, yang shoujun wrote: > Your form action shoud be employAction!doSearch.do > > Wu Ming 编写: > >>Hi, >> >>I'm u

Re: 回复:[struts2] 's method attribute doesn't work

2012-11-19 Thread Wu Ming
Nov 19, 2012 at 4:23 PM, Lukasz Lenart wrote: > 2012/11/13 Wu Ming : >> Hi, >> >> Never mind, I had found the solution: you have to set >> "struts.enable.DynamicMethodInvocation" to true. > > Did you try out that solution [1] ? > > [1] https://cwiki.a

Re: 回复:[struts2] 's method attribute doesn't work

2012-11-19 Thread Wu Ming
On Mon, Nov 19, 2012 at 5:49 PM, Wu Ming wrote: > > Clearly, the solution (using boolean property) in the example doesn't work > (I tried in v2.4). I think somebody has to update the tutorial page. > > Sorry, I got typo. I mean struts v2.3.4, not v.2.4.

Re: What is the effect of Params Interceptor?

2012-11-25 Thread Wu Ming
s interceptor is used in Injecting the Request Parameters into the > Action, either individually or (using the ParameterAware interface) all at > once. > (*Chris*) > > > On Sun, Nov 25, 2012 at 3:07 AM, Wu Ming wrote: > > > I read this tutorial< > > http:/

Re: What is the effect of Params Interceptor?

2012-11-25 Thread Wu Ming
kes those parameters and calls the corresponding mutators on > the Action. > (*Chris*) > > > On Sun, Nov 25, 2012 at 3:40 AM, Wu Ming wrote: > > > Hi, > > > > Is Request Parameters has same meaning with the Action's property field > > (the

Re: What is the effect of Params Interceptor?

2012-11-26 Thread Wu Ming
e struts-default > stack. > (*Chris*) > > > On Sun, Nov 25, 2012 at 11:01 PM, Wu Ming wrote: > > > So is that means struts 2 is using params interceptor implicitly? > > > > > > On Mon, Nov 26, 2012 at 10:12 AM, Chris Pratt > >wrote: > > > &g

Re: What is the effect of Params Interceptor?

2012-11-26 Thread Wu Ming
Thanks, that's enlightening. On Mon, Nov 26, 2012 at 3:41 PM, Maurizio Cucchiara wrote: > On 26 November 2012 09:25, Wu Ming wrote: > > > > Oh, so that means there is no point to define the params interceptor in > > Action mapping (as seen below) because it's i