Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

div tag in struts 2

 
Ritesh Badwaik
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I want to hide some components using div tag . I tried as follows
<s:div id="divFromHour" style="display:none">
some component
</s:div>
but it is not working.

please help !


Thanks
Ritesh



 
Roberto Hernandez
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't use the style attribute when using struts tags. You must use cssStyle or cssClass. Please be sure to read the struts2 tags documentation before posting stuff like this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic