Hi,

rdr wrote:
<jsp:include page="/publishers.html?method=viewActivitySummary"/>

or

<jsp:include page="/publishers.html">
     <jsp:param name="method" value="viewActivitySummary"/>
</jsp:include>

Where publishers.html is mapped to a multiaction controller and
viewActivitySummary is not the default method.

For some reason, the default method gets invoked instead of the one
specified (viewActivitySummary) when the page is rendered for the first
time. The parameter "method" does not even exist in the request. Any other
action (refresh) corrects the problem.
Isn't "method" reserved for things like "post" and "get"? In the boilerplate code generated for xxAction classes by the AppFuse Struts 2 variant, the "prepare" method starts with:

if (getRequest().getMethod().equalsIgnoreCase("post")) ..

Now, I realise that request.getMethod() isn't necessarily checking for a URL- or post-parameter named "method", but I wonder if using that parameter name is part of your problem. I note that in struts.xml the action tags include an attribute named "method" but maybe this is actually used in some way other than as a URL-parameter or post-parameter.

HTH,
Rob Hills
Waikiki, Western Australia

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to