> Cheers,
>
> Danny

Um... Struts Dialogs does not deal with persistence (at least yet). It
can simplify your CRUD (Create, Update, Delete) operations, that is,
to display the list of products and to have Create/View/Edit/Delete
links or buttons for each product.

Please take a look at these links, do you have something like this in
mind, or something else?

(1) This is an item list. I used pushbuttons for CRUD operations, but
links can be used too if you like. Notice that whatever you do, the
address in the browser address bar stays the same. So it is impossible
to delete a row and then click Back and see it again from a stale
page. Try to reload this page or to use Back and Forward buttons.

http://www.superinterface.com/strutsdialog/crudactionlite.do

But if you do not want to have one address for item list and all
operations, you do not have to.

See source code in the dowload file. In samples-struts-config.xml see
either "/crudactionlite" which handles CRUD as one action, or pair of
actions "/cruditemlist" and "/crudaction", where there is one action
for item list, and another for View/Edit operations.

(2) Another version of this list can be seen in MailReader example:

http://www.superinterface.com/mailreader

Create a new account, then login and select "Manage Subscriptions"
link. The table is pageable, each page fits 4 rows. You can try to add
more subscriptions and see how you can flip pages. You can see
included source code for MailReader to see how Subscriptions are
managed. The list can be reimplemented with DisplayTag and JSP would
look cleaner.

(3) See description of CRUDAction class, which was used to create these tables:

http://struts.sourceforge.net/strutsdialogs/crudaction.html

It has predefined events; I think that it simplifies development of
CRUD applications.

Michael.

Please don't hesitate to ask if you have any further questions.

--
Struts Dialogs: code-behind for Struts
http://struts.sourceforge.net/strutsdialogs

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to