The Artima Developer Community
Sponsored Link

Java Answers Forum
JSP Struts

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Rajeev Mutalik

Posts: 57
Nickname: rajmutalik
Registered: Sep, 2002

JSP Struts Posted: Aug 12, 2009 12:59 AM
Reply to this message Reply
Advertisement
Hi,
I have a reqt wherein I need to display 2 or 3 cols in a table depending on condition. I m using struts2. Here is my sample code:
<s:if test="a == b">
<td width="50%"> <!-- It means I need only two cols hence I m setting it as 50%-->
</s:if>
<s:else>
<td width="33%"> <!-- It means I need only 3 cols hence I m setting it as 33%-->
</s:else>
print some data
</td>

I m getting error in this code snippet.
Any help is very much appreciated.

Regards,
Rajeev

Topic: GC - Thread safe Previous Topic   Next Topic Topic: Generics & Inheritance

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use