I'm in need of some guidance (and couldn't really find what I needed in the mail 
archives)-

I've been working on a struts application, and so far have a login page that validates 
the user and forwards to a "Organization List" page. This "Organization List" page is 
currently using DBTags to get a list of the organization from a database and display 
them in a table. From here, I need to user to be able to add, edit, or delete 
organizations. My thought was to simply generate a link around an image, or even text, 
to the effect of -

 "orgAction.do?MODE=EDIT&ORG=<orgid>"

that goes to an Action object created using struts. The action object would look at 
the MODE and either create a blank OrganizationForm bean, create and load and 
Organization Form bean, or forward to a delete confirmation page. 

If editing or adding, the action would forward to an OrgEdit.jsp that listing this one 
organizations information, and have a "save" button on it that goes back to a 
different (or the same?) action object above to perform the save. (?)

Any advice on this design? It seems complex to keep track of which mode and state 
we're in. Am I missing an easier way? This would seem like a common thing to want to 
do. (Table maintenance through a web app.)

Thanks,
Ryan


Reply via email to