File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes struts 1.3.5 tags-html  attributes syntax error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts 1.3.5 tags-html  attributes syntax error " Watch "struts 1.3.5 tags-html  attributes syntax error " New topic
Author

struts 1.3.5 tags-html attributes syntax error

vijay kumarg
Ranch Hand

Joined: Dec 14, 2006
Posts: 105
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

Joined: Feb 15, 2005
Posts: 4864
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.


Merrill
Consultant, Sima Solutions
vijay kumarg
Ranch Hand

Joined: Dec 14, 2006
Posts: 105
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

Joined: Feb 15, 2005
Posts: 4864
The full name of the file is struts-examples-1.3.5.war and it's in the /apps directory.
 
jQuery in Action, 2nd edition
 
subject: struts 1.3.5 tags-html attributes syntax error
 
Similar Threads
Exception creating bean of class...
Jsp refering to itself
Cannot find bean org. apache. struts. taglib. html. BEAN in any scope
weird error with html:form
What is wrong ?