hi,
I'm following chapter 3 of Wrox Struts book ("Professional Jakarta
Struts") to the letter.. using struts 1.3.5, Tomcat 5.5/1.4... get
TLD-related error on index.jsp (entire zipped-up webapp (small,
virus-free...:) here... www.mayacove.com/java/strutsWrox.zip)
did index.jsp, and the classes, all following instructions in the book,
the classes (LookupForm and LookupAction) compile fine.. put all
packages (.jar's) from Jakarta Struts download where they belong
(WEB-INF/lib..)
in index.jsp is this tag:
<html:form action="Lookup" name="lookupForm" type="ch03.LookupForm">
I looked in struts-html.tld itself, one thing I note is that under
"form" tag there are no attributes defined for either "name" or "type",
only for "action" (which can also be seen here,
http://struts.apache.org/1.3.5/struts-taglib/tlddoc/html/tld-summary.html)
so am a bit puzzled here....
one thing I also noted is that JSP servlet for index.jsp is non-existent
(when look in tomcat/work/.... don't see either index_jsp.java or
index_jsp.class..) i.e., JSP for some reason is not even being read by
container..)
I have in struts-config.xml:
<form-beans>
<form-bean name="lookupForm" type="ch03.LookupForm" />
</form-beans>
<action path="/Lookup" type="ch03.LookupAction"
name="lookupForm">....</action>
in LookupAction.java:
LookupForm lookupForm = (LookupForm)form;
(this is confusing: so lookupForm is name of form but also an
instantiation of the other class in the package...(??)
would much appreciate some help.. thank you..
(posted a question on Wrox's website relevant forum about two days
ago but have gotten no response..)
thank you very much.........
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]