my dog learned polymorphism*
The moose likes Struts and the fly likes unknown tag html:form 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 "unknown tag html:form" Watch "unknown tag html:form" New topic
Author

unknown tag html:form

Benjamin Pope
Greenhorn

Joined: Sep 05, 2011
Posts: 10
I'm trying to use the html:form tag to create a form in a web project and get this warning. Then when I go look at the deployed page in a browser all the content is gone. The content reappears when i remove the html:form tag. The weird thing about this is that in another jsp page, the taglib declaration at the top of the page is exactly as in this page, but when the tag <html:errors/> is used there is no warning.
Koen Aerts
Ranch Hand

Joined: Feb 07, 2012
Posts: 344

A good start would be to show us the code of the page that is not working.
Benjamin Pope
Greenhorn

Joined: Sep 05, 2011
Posts: 10
Here is the code for the jsp page:

Koen Aerts
Ranch Hand

Joined: Feb 07, 2012
Posts: 344

Not sure if that is causing the problem, but I notice the table tags aren't nested correctly inside the form:

instead of

Benjamin Pope
Greenhorn

Joined: Sep 05, 2011
Posts: 10
My error I believe was in the configuration of the action in struts-config.xml. I did not declare the form-bean. Once I did that, I got it working. The reason I was getting the warning because the struts jar was not in web-inf until I built the project, so I am able to ignore the warning and it all works fine. Thanks for the help anyway.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: unknown tag html:form
 
Similar Threads
Struts 1.2 Cannot find bean org.apache.struts.taglib.html.BEAN
TagLib in Struts
Warning: Page Expired problem when I hit browser back button
How can I use form elements in a struts frame
Exception Report