I have J2EE application where presentation is done in jsps. I need to give user ability to add/delete new fields (check and entry boxes, calls to validaton JavaScript) to the jsp on demand with preservaton of some original design. Besides handeling it thru javabean with bunch of "if" statements, is there another solution that I can use?
Originally posted by Irene Loos: I have J2EE application where presentation is done in jsps. I need to give user ability to add/delete new fields (check and entry boxes, calls to validaton JavaScript) to the jsp on demand with preservaton of some original design. Besides handeling it thru javabean with bunch of "if" statements, is there another solution that I can use?
Thank you, Irene
Try with Dynamic JavaScript, it might be a solution for your peoblem
by company architecture we are not allowed to use havy JavaScript. The page could be modified on demand and settings are stored for future use in DB2.
For example page had id check box and entry box (for numeric id), now customer wants to ad also "name" check box and entry box character name with maximum entry length of 20. This will be saved in db and in the future could be used as an entry on the page.
JSF has (ValueChangeListener) which is a listener that is notified of value changes of radio buttons, check boxes, select item,etc... Anyway that's JSF, according to JSP, I'm thinking of a way.. I'll get back to you in case of updates..
Note: if you know JSF or want to use this way I can provide you with a snippet.