aspose file tools*
The moose likes Struts and the fly likes How to render a disabled control in struts 2.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to render a disabled control in struts 2.0" Watch "How to render a disabled control in struts 2.0" New topic
Author

How to render a disabled control in struts 2.0

Venkata Rajesh
Greenhorn

Joined: May 03, 2005
Posts: 9
Can anyone please tell me how can we disable/enable the html controls in struts 2.0. The state of the control should not be hard coded in the jsps rather the state is determined by some business logic on the server side.

Thanks.
Venkata Rajesh
Greenhorn

Joined: May 03, 2005
Posts: 9
Can someone pls reply to this?

Thanks.
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
I don't know much about Struts 2.0, but you could add properties to your form/action and then jstl or logic tags in the jsp to control how each control is shown basic on the properties.

- Brent
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to render a disabled control in struts 2.0