I've done this before with tiles. You have a nested tile that displays the field. One for editing, one for viewing.
You have a base definition that uses the field display tile as an argument. You create definitions that extend the base definition passing the correct display display definition. see http://www.arc-mind.com/downloads.htm#TilesTutorial for more detail.... ;) Rick Hightower Developer Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm Struts/J2EE consulting -- http://www.arc-mind.com/consulting.htm#StrutsMentoring -----Original Message----- From: Ciaran Hanley [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 4:28 PM To: Struts User Mailing List Subject: Three JSPs in one Hi In my application I am currently performing add user, view user and edit user functions on separate JSPs. So I have: adduser.jsp to add users through a form viewuser.jsp to view a users details in plain text edituser.jsp to edit a users details in a populated form Instead of having three different pages I would like to perform these functions all on one page, the thing is I don't want to use any scriptlets on my page. Is there away of using the html-logic tags to test for which task I would like to perform, or some other method I can use to do this, I cant figure it out. Basically something that will do If(select view) { show details on page } else If(select edit) { show users details in a form for update } else { show form on page to add user } I was thinking some sort of logic <logic:present (view)> ..view details </logic:present> <logic:present (add)> ..view details </logic:present> <logic:present (edit)> ..view details </logic:present> Anybody done this before? Many Thanks Ciaran --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]