First, check out this live demo:
http://www.superinterface.com/strutsdialog/embeddedmasterpage-tomcat.do

See the "Sign In" cell? It is JSP/Struts web component, built with
Struts Dialogs. This login component is rendered using a separate
included JSP. It is:
* independent. The only information needed is the URL where to
redirect to re-render the component, possibly along with other child
components.
* it processes input by itself (check the URL in the address bar, and
url of login form)
* it is stateful

It works with current JSP spec, but can be implemented easier if JSP
spec were modified a bit. I am trying to find a person who can help me
to fix the small issue with JSP spec.

Now, check the page URL. Try to log in. Use guest/guest as
username/password. After you logged in, you see... the same page, and
same URL. Notice, that you cannot go "back". After you logged in,
master page is updated, the prices are changed, and "Contact Us"
menuitem is shown.

I hope that this page will finally show you, what a cool thing Struts
Dialogs is, and what a web component is. I started discussion on web
controls/components about two weeks ago, but almost no one replied.
Does this mean that components are available to .NET developers only?
Or to JSF or portlet developers? No, you can create components in
Struts, if you render them using JSP.

Check out live demo, and see the source code. This is very simple, but
powerful concept,based on the same idea of two-phase input processing
(aka Post-Redirect-Get). Only instead of redirecting back to itself,
component redirects to master page, and it reloads itself. This is it.

Source code and runnable jars are at:
http://sourceforge.net/project/showfiles.php?group_id=49385&release_id=338164
Documentation is not available yet, and will be announced separately.

Michael.

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

Reply via email to