• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts 1.3.5 tags-html attributes syntax error

 
vijay kumarg
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • 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>
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic