Considering Ted's initiative to create more different implementations of venerable MailReader and his invitation of non-committeres to participate, I converted MailReader from standard Struts using Struts Dialogs.
Here it is: http://www.superinterface.com/mailreader The tour doc file still needs updates and fixes, but the app itself works. The structure of MailReader was slightly changed since I didn't see the point to display and update user info on the same page where subscription list is displayed. There are four web resources (or actions, or components, whatever you call them): Home, Login, Subscriptions and Registration. Each component displays pages appropriate to this component and to application state, and handles input from a user. Beloved by many pre- and post- actions are combined now into dispatch-like two-phase actions that do both. Logon action is basically the same as sample Login component from Struts Dialogs. Registration and Subscriptions actions are mosty standard CRUDAction actions. Subscriptions action is interesting in that it handles both list and individual items just like "CRUDAction (all-in-one web island)" sample from this page: http://www.superinterface.com/strutsdialog/index.htm What to check out: ------------------ * Refresh works without resubmit [of course :-) ] * Action name in the address bar always corresponds to the page you see * You can jump to any url you like, it will show relevant page appropriate in that applicaiton state * Open app in a new window, change language. If you use MSIE or Firefox, you will not get a new page, that is, Back button will not be enabled. * Log in using "user"/"pass" credentials. You will get to welcome/main page with different content. Now click Back button: instead of login screen you will see current user info. Why? Because pages reflect current application state. * Subscription list uses bits of DisplayTag CSS, and sports pageable item list. Play around, application is not 100% free of bugs yet, but pretty solid. Source code, JAR and javadocs are to be updated. Michael Jouravlev ---- Struts Dialogs: struts.sourceforge.net/strutsdialogs --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]