1. Do we have need of tags like these? <html:js src="/script/util.js" /> <html:css src="/css/style.css" />
Currently we are suppose to use html:rewrite tag or some crud method. <script language="javascript" src="<html:rewrite src="/script/util.js" />"></script> CSS is bit neat because of @import but JS is still making code look nasty. 2. Do we have need of tag attribute like this? <html:form mode="edit"> ... </html:form> <html:form mode="confirm"> ... </html:form> <html:form mode="show"> ... </html:form> Setting the mode attribute to 'confirm' will convert all form-field into a hidden field and will replace all editable area with a label showing current values. Similarly setting mode attribute to 'show' will simply replace all editable area with a label showing current values. The show mode can be very well used for followings * Same JSP code can be used to show details and edit details. * Confirm filled values before finally submitting. * Form can be made read-only or editable based on user's credentials. This can be further improved to control field level rendering and security. -- Cheers, Sudhaker Raj http://thej2ee.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
