protected Map getKeyMethodMap() { Map map = new HashMap(); map.put("label.catalogue.find", "doFind"); map.put("label.catalogue.addtoCart", "doAddToCart"); map.put("label.paging", "doPaging");
return map; }
I display my paging details using <a Href's> for eg.
<a href="/myWebApp/myLookupDispatchAction.do?action=paging&pager.offset=8">2</a>
This all worked fine for me... but i then need to change my href to submit the form as i page to the next page (I want to pick up client changes as they page...
redirecting to the next view doesn't work as you'd expect)
.
So i changed my paging href's to the following:
<a href="#" onClick="dopaging(8)">2</a>
I have the following javascript method defined in the same jsp file:
function dopaging(offset) {
document.forms[0].submit.value = "/myLookupDispatchAction.do?action=paging&pager.offset=" + offset;
document.forms[0].submit();
}
I then get the following error:
ERROR BaseAction::execute unexpected exception
javax.servlet.ServletException: Request[/myLookupDispatchAction] does not contain handler parameter named
action
at org.apache.struts.actions.LookupDispatchAction.execute(LookupDispatchAction.java:200)
Any ideas guys... is there a better way to do this???
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]