[Opensource] No ActionForm found for key '" + formKey + "' in session error

Eddie Lewis ELewis at copyright.com.au
Mon Aug 5 00:19:51 PDT 2002


This exception occurs when calling the following method in the
ControllerResponse object
Method - 
    private DefaultForm getDefaultForm() throws ControllerException {
         String formKey = getRequest().getFormAttribute();
        if (StringUtil.notNull(formKey).equals("")) {
            throw new ControllerException("No ActionForm has been specified
for this Controller mapping,"
                + " unable to utilize form cache. Please set an action form
in the struts-config.xml file.");
        }
        DefaultForm myForm = (DefaultForm)
getRequest().getSession().getAttribute(formKey);
        if (myForm == null) {
            throw new ControllerException("No ActionForm found for key '" +
formKey + "' in session.");
        }
        return myForm;
    }
 
Any ideas why i get this exception.
This is being called from the autoInput method for a DBObject field.
 
Thanks
Ed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.jcorporate.com/pipermail/opensource/attachments/20020805/e7b56dce/attachment-0002.htm


More information about the Opensource mailing list