File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to render a disabled control in struts 2.0

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

Thanks.
 
Brent Sterling
Ranch Hand
Posts: 948
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic