Hi,

In long time back..., it was requried to use those attributes of the html:form tag.. but i you dont need them now for sure.., i think you book may be some bit old.

for your second question.., the one you defined in the struts-config.xml.., that lookuForm name will be used by the framwork to keep the instance of the ch03.LookupForm in the request, for instance.., and in your action class its just a variable name that will used inside the action class itself..

hope this would help U.

Regards,

Nuwan


----- Original Message ----- From: "maya" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Tuesday, November 28, 2006 5:12 PM
Subject: struts-html question.... puzzling problem...


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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to