This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tag attributes shortcut

 
Phil Chuang
Ranch Hand
Posts: 251
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to do some kind of shortcut attribute passing? Let me give you an HTML example:

So if I wanted to pass along a boolean value in this way, is it possible?
Instead of

could I do

?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64982
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No.
JSP custom tags must follow strict XML rules. That means no "shortcuts".
In fact, in xhtml your td tag would need to be written as <td nowrap="true">. I code this way for completeness even when coding the page as HTML4.
bear
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic