In my action mapping is a form definition optional or not? In this case I
have no need to define an ActionForm so I left it off the  action mapping in
the struts config file:

     <forward name="adminbillertestadd" path="/adminbillertestadd.do"/>
    ....
    <action    path="/adminbillertestadd"
               type="com.bellhowell.eroute.web.admin.AdminBillerAddAction"
               scope="request"
               input="/adminbillertestadd.jsp">
      <forward name="success" path="/adminbilleradd.jsp"/>
      <forward name="error" path="/error.jsp"/>
    </action>

In my JSP it looks like:
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<html:html>
<head>
<title>ADMIN BILLER TEST ADD PAGE</title>
</head>
<body bgcolor="white">
<html:form action="adminbillertestadd">
<html:submit property="submit" value="Submit"/>
</html:form>
</body>
</html:html>

But when I try it in the browser I get:
500 Internal Server Error
javax.servlet.jsp.JspException: Cannot retrieve definition for form bean
null
        at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:795)
        at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481)
        at
/adminbillertestadd.jsp._jspService(/adminbillertestadd.jsp.java:42) (JSP
page line 10)

And yes, in my web.xml I do have the tag libs declared.

What is wrong?

TIA!

Erich Kilmer
Bell+Howell
RTP, NC


Reply via email to