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.
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.