> Everything works beautifully until you try and mess the query string
> for e.g  /edit.do?submit=initchanged&key=10
> there is no mapping for initx, hence there is no method name and null is
> passed into the
> return dispatchMethod(mapping, form, request, response, methodName)
> which finally calls getMethod(String name, Class[] parameterTypes)
> The end result is that application shuts down with VM error

This has been discussed before and I believe the general consensus is that
there's a bug in Resin.  If you try the same thing in Tomcat, you will only
get an exception.  

Still, I don't like the behavior of LookupDispatchAction so I override the
execute() method in which I examine the request parameters.  If the "action"
is present, I just call super.execute().  Otherwise I try to figure out what
would be appropriate (add?  edit?) before giving up and throwing an
exception.

I would like to add a "default" attribue to the tag in struts-config so you
can specify which method to call if the parameter isn't present in the
request.

In short, I don't think that VM Error is the fault of Struts.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management

Reply via email to