Meaningless Drivel is fun!*
The moose likes Struts and the fly likes In Struts2 how to hide textfield dinamically. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "In Struts2 how to hide textfield dinamically." Watch "In Struts2 how to hide textfield dinamically." New topic
Author

In Struts2 how to hide textfield dinamically.

Arun varma
Greenhorn

Joined: Mar 21, 2004
Posts: 9
In Struts2

I want to know how can i hide and show <s:textfield> dynamically. Just say i have boolean flag in action class, based on the flag value,if flag is true i want to show textfield or if false i want to hide textfield.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You wrap it in an <s:if...> or <c:if...>?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: In Struts2 how to hide textfield dinamically.