Making a JSP Form read only based on the form value present in DB
835902Mar 20 2011 — edited Mar 21 2011I need suggestions/examples as i am newbie into java stream.
I have two JSP pages 'Add Page' and 'Edit Page' .
Add Page -> In add Page,I have many text boxes,select drop-downs options. In one select drop-down I have values as Locked and open .I can save this page contents in DB by entering those form values.
Edit Page -> In eidtPage,once saved in DB, based on 'select drop-down- Locked and open' If it is locked i have to make all the fields (text boxes and select drop downs) as read only and if it is open i have to make it editable.
I am taking all the values from DB,setting to 'form bean' and then setting up the values in session and forwarding it to JSP page to populate there .I am using beehive net UI tages in JSP. Please help me out.