• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hwo to hide or display struts layout's datagrid tag

 
Bushra Binte
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 249
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic