This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts tag problem ?

 
Ravinder Rana
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys,
I got an exception like...

SEVERE: ServletException in '/WEB-INF/tiles/AddEmployee.jsp': /WEB-INF/tiles/AddEmployee.jsp(213,0) The end tag "</html:form" is unbalanced
org.apache.jasper.JasperException: /WEB-INF/tiles/AddEmployee.jsp(213,0) The end tag "</html:form" is unbalanced

============
My jsp code
============


And please tell me my <himl:select> is ok,please correct me if i am wrong.

Thanks in advance.
 
Jan Groth
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dont put the form outside of the body...

cheers,
jan
 
Ravinder Rana
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jan thanks for reply, But i am still got the same error.
Please tell me the solution.I am a bit cofused
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You must change the JSP so both the beginning and ending html:form tag are inside the beginning and ending body tag like this:

<body>
<html:form action="/forms/addemp.do">
... the rest of the page
</html:form>
</body>

Did you do that?
 
Ravinder Rana
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanksalot Merrill Higginson,I got it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic