Hi Rick,

I can't speak for Eduardo but think that I know what he meant, as I was
also in the chat and I've implemented this approach.
In my case, it means that the controller is a servlet which is
configured at startup time through an XML file. In this XMl file you
specify which actions have to performed and/or to which JSP page the
control has to be forwarded, depending on the URL of the coming request.

So, for example, a piece of the configuration like that:
...
<OPERATIONSET>
        <SUFFIX VALUE="myapp" />
        <OPERATION
                NAME = "SearchBranch"
                CLASSNAME = "es.uib.tablon.RetrieveBranch"
                UI_PATH = "/ShowSearchForm.jsp"
                >
...
means that and URL of the form ".../SearchBranch.myapp" should execute
an instance of the Action class "es.uib.tablon.RetrieveBranch" and then
forward control to the JSP page "/ShowSearchForm.jsp" to buil the user
interface.

This allows for a pretty flexible and configurable system, as you are
able to reuse Action classes and/or JSP pages just changing the XML
configuration file, you just have to write the controller code once...

The XML configuration and the controller code can get more complicated,
for example I have also introduced security and application wide events,
but that's the basic idea.

I'm not sure it that's what Eduardo meant, but I hope it helps anyway :)
Regards,
Dan
-------------------------------------------
Daniel Lopez Janariz ([EMAIL PROTECTED])
Web Services
Computer Center
Balearic Islands University
-------------------------------------------

Rich Holladay wrote:
>
> Eduardo,
>
> In today's chat you said:
>
> "I like very much the model that I described before: request hits a
> servlet that
> is driven by an XML description.  Maybe there are some actions that are
> done
> there, maybe they are all done in the JSP via custom tags - that is more
>
> debatable - but I think the conversation control is done by that
> servlet."
>
> Could you give an example of what you mean by "driven by an XML
> description"?  The concept is a new one to me.
>
> Thanks,
> Rich

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to