Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to render a disabled control in struts 2.0

 
Venkata Rajesh
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone pls reply to this?

Thanks.
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic