my dog learned polymorphism
The moose likes Struts and the fly likes Unspecified method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Unspecified method" Watch "Unspecified method" New topic

Unspecified method

Gran Roguismo
Ranch Hand

Joined: Mar 10, 2005
Posts: 77
I don't know how many people are doing struts here, but I am having problems with an action using LookupDispatchAction

LookupDispatchAction requires that you have a map of values which will delegate the action out to a different method based on a string value passed in (in this case called method as well)

I would then have a method:

that's all working fine, but for the initial page I'm not going to it via a form and I don't wish to specify method in the url:

so I've included a unspecified parameter:

where view is set in the struts-config

that works, but only halfway. Now I can say

but I want it to be

every time I just put that in I get

javax.servlet.ServletException: Request[/V3] does not contain handler parameter named method

help is very much appreciated

I agree. Here's the link:
subject: Unspecified method
It's not a secret anymore!