File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes div tag in struts 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply 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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: div tag in struts 2
 
Similar Threads
Div Tag Width Changing si Undesireable
Any idea what could cause new <br> tags to get added to the rendered code?
struts tag vs html tag
how to hide and show contents with struts2 div tag
Showing Hiding <s:div> tag in Struts2