Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

In struts application using tiles warning in jsp page(Invalid location of tag (table).)

 
praveen talluri
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please help me
Invalid location of tag (table). -->this is the warning show in my jsp page
here is the jsp page


<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<table border="1" width="100%" height="100%" cellpadding="4">
<tr>
<td align="center" colspan="2"><tiles:insert attribute="header" />
</td>
</tr>
<tr>
<td width="20%"><tiles:insert attribute="menu" /></td>
</tr>
<tr>
<td width="80%"><tiles:insert attribute="body" /></td>
</tr>
<tr>
<td colspan="2"><tiles:insert attribute="footer" /></td>
</tr>
</table>
</html>

 
Yogesh Lonkar
Ranch Hand
Posts: 94
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suggestion when ever posting code please use code tags

and your are getting warning because you did not follow HTML structure
this is basic example


Your jsp should be like this
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic