• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unknown tag html:form

 
Benjamin Pope
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 344
Java Linux Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A good start would be to show us the code of the page that is not working.
 
Benjamin Pope
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the code for the jsp page:

 
Koen Aerts
Ranch Hand
Posts: 344
Java Linux Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic