aspose file tools*
The moose likes Struts and the fly likes hwo to hide or display struts layout's datagrid tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "hwo to hide or display struts layout Watch "hwo to hide or display struts layout New topic
Author

hwo to hide or display struts layout's datagrid tag

Bushra Binte
Ranch Hand

Joined: Nov 07, 2006
Posts: 60
hi,In the jsp i use struts layout's datagrid tag.



On page load,i want to hide this table and when the user selects this checkbox



the above table should be visible and when the user deselects the checkbox the datagrid table should be hidden.

could someone have an idea on this
thanks
Dawn Charangat
Ranch Hand

Joined: Apr 26, 2007
Posts: 249
How about placing the entire datagrid inside a <div> tag, and setting the "visibility=hide" attribute for it at page load ? You can change it to "show" at the click/ selection of checkbox.
Bushra Binte
Ranch Hand

Joined: Nov 07, 2006
Posts: 60
dawn,that works perfectly fine with plain html tags and not with struts layout tag <layout:datagrid>.Need to find another way out to hide and display struts layout tags.thanks
 
 
subject: hwo to hide or display struts layout's datagrid tag