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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hwo to hide or display struts layout's datagrid tag
 
Similar Threads
Upload file into layout:datagrid using struts
Struts-layouts
How to upload a file using layout:datagrid in jsp page
struts layout datacolumn
Reg: datagrid