This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

table, tr, td, th in JSP  RSS feed

 
Jane Somerfield
Ranch Hand
Posts: 193
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm new to JSP and HTML.
I saw many <tr>, <td>, <th> tags are not embeded in
<table> tag in JSP. Is it legal in HTML? Can
we use it in JSP? Why? Thanks.
[ November 18, 2002: Message edited by: Jane Smith ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65830
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No and no.
Firstly, the table row, table data and other table construction tags are not "legal" outside of the table tag (whether some browsers are lenient about it or not is another question).
With regards to JSP, remember that the sole purpose of JSP is to format text to send to the browser, so if you are using your JSP to create HTML, then whatever gets generated IS HTML and must follow the same rules.
hth,
bear
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!