getUrl is a javascript function that makes an ajax call to my
actionclass. It uses Prototype. Here is the code:
function getUrl(url) {
var params = "";
var target = "main_span";
var postMethod = "POST";
params = Form.serialize($('theForm'));
new Ajax.Request(url,
{
method:postMethod,
parameters:params,
postBody:params,
onSuccess: function(transport){
var response = transport.responseText;
target.innerHTML = response;
},
onFailure: function() {
alert('Error encountered. Please contact support.')
}
});
}
What do you mean by 'where do I define MenuAction?' It is just my action
class.
What do you mean by logging turned up to eleven? I believe if you
implement the 'Preparable' it will look for a '"do${methodName}" thing'
http://struts.apache.org/2.0.9/docs/prepare-interceptor.html
> Date: Wed, 2 Jan 2008 17:00:12 -0800
> From: [EMAIL PROTECTED]
> Subject: Re: action call not calling action
> To: [email protected]
>
> --- Henry Park <[EMAIL PROTECTED]> wrote:
> > getUrl("MenuAction!list.action")
>
> What's "getUrl", a JavaScript function?
>
> > <action name="Menu" class="action.MenuAction" method="list">
>
> Where do you define "MenuAction"?
>
> > It enters my 'prepare()' method but does not enter my doList()
method.
>
> Is your logging turned up to eleven? Is it a default S2 thing that if
you
> provide a method it'll look for a "do${methodName}" thing?
>
> d.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>