This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Struts and the fly likes div tag in struts 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "div tag in struts 2" Watch "div tag in struts 2" New topic
Author

div tag in struts 2

Ritesh Badwaik
Greenhorn

Joined: Feb 23, 2009
Posts: 16
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

Joined: Apr 29, 2009
Posts: 33
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.
 
Have you checked out Aspose?
 
subject: div tag in struts 2
 
It's not a secret anymore!