• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

struts 1.3.5 tags-html attributes syntax error

 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is index.jsp where I am getting error

/index.jsp(14,0) Attribute name invalid for tag form according to TLD

<html>
<head>
</head>
<body>
<html:form action="Lookup" name="lookupForm" type="examples.LookupForm">
Enter Symbol:
<html:text property="lookupForm.symbol"/>
<html:submit/>
</html:form>
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Again, the problem is that you're using tutorials that were written for Struts 1.1. The name and type attributes of the <html:form> tag are no longer valid. Since you've already defined which form Name and form type are associated with the action path in the struts-config.xml file, there's no need to redefine them in the JSP. Just specify the action attribute of an <html:form> tag and Struts will find the rest in the config file.
 
vijay kumarg
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Merrill again.
I like your approach of " learn by example "
I want to look into the struts-examples.war as you said.But I am not able to find the said war file in the installation directory of struts-1.3.5-all

Thanks,
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The full name of the file is struts-examples-1.3.5.war and it's in the /apps directory.
 
Always! Wait. Never. Shut up. Look at this tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic