This is my firs time working with struts and I am working in an existing application. I need to expose a method in an Action and am getting a "does not contain specified method" exception. I suspect I have not configured the action correctly (do I need a form bean?). Also I have an extra parameter (page) that I am not sure how to map.
Below are my details.
Here is the Struts config
In an action, that extends DispatchAction, I have the following method (code reduced for brevity):
I'd first try correcting the URL:This has two question marks ("?") in it; the second one should be an ampersand ("&"). If I had to guess I'd say it's checking after the last question mark for the request parameters--but that's just a guess.
posted 11 years ago
Thanks Dave. The URL was indeed wrong, also it looks like I did need to add the pageIndex parameter to the form bean. I did find out the Action I was working in (and trying to map in the Struts config) is extended by another Action that is already configured. I was able to access my method through this class so I no longer needed the mapping I posted earlier.
I have an experienced struts person working with me now so everything is back on track.
Thanks for your reply.
Everybody! Do the Funky Monkey! Like this tiny ad!