struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ciaran Hanley" <>
Subject Three JSPs in one
Date Thu, 08 Jan 2004 23:28:24 GMT
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
      show form on page to add user
I was thinking some sort of logic
<logic:present (view)>
  ..view details
<logic:present (add)>
  ..view details
<logic:present (edit)>
  ..view details
Anybody done this before?
Many Thanks

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message