This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have a situation where a user selects one of the links at the start page, and depending upon the option selected the users are directed to the same page but with some of the fields are disabled. How would i do this dynamically so I have only one page and disables fields dependin upon the selected option
one way is to use c:if (JSTL) or logic:equals (struts-logic) for each of the fields (create 2 exact fields, 1 with the disabled attr set to true). otherwise, you'll have to use scriptlets to control the 'disabled' attribute. if you have multiple values that requires disabling, i'd use JSTL.
-/a<br />certified slacker...yes, my last name is 'do' - <a href="http://www.luckycouple.com" target="_blank" rel="nofollow">luckycouple.com</a>