This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
 
subject: hwo to hide or display struts layout's datagrid tag
 
Similar Threads
Struts-layouts
Reg: datagrid
Upload file into layout:datagrid using struts
struts layout datacolumn
How to upload a file using layout:datagrid in jsp page