struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chappell, Simon P" <Simon.Chapp...@landsend.com>
Subject RE: Same JSP for view and edit
Date Wed, 01 Oct 2003 02:07:26 GMT
Don't do it. It seems like a good idea, but it gets very messy, very quickly.

Simon

>-----Original Message-----
>From: Coppack Alun [mailto:Alun.Coppack@nrm.qld.gov.au]
>Sent: Tuesday, September 30, 2003 9:05 PM
>To: struts-user@jakarta.apache.org
>Subject: Same JSP for view and edit
>
>
>I want to use a single JSP for view and edit functionality.
>
>I have no problems using the one page for edit and add 
>functionality (and a single action as well) as these both 
>require input fields. The issue with view is that I don't want 
>input fields, I only want labels/text but I want to display 
>the same information that would be displayed on an edit page.
>
>It seems that I have a lot of duplication having one jsp with 
>bean:write fields for the view and another with the same 
>fields but inside html:form and html:input tags for the edit 
>functionality.
>
>I thought maybe it would be possible using a custom tag 
>library that can dynamically modify the jsp based on a request 
>parameter.
>
>Any other thoughts?
>
>Thanks,
>
>Alun
>
>
>
>
>***************************************************************
>*********
>The information in this e-mail together with any attachments is
>intended only for the person or entity to which it is addressed
>and may contain confidential and/or privileged material.
>Any form of review, disclosure, modification, distribution
>and/or publication of this e-mail message is prohibited.  
>If you have received this message in error, you are asked to
>inform the sender as quickly as possible and delete this message
>and any copies of this message from your computer and/or your
>computer system network.  
>***************************************************************
>*********
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message