I used a xml file to map the View with Action object.
via the xml file u can specified a view object that send his request to a specified
Action object
by default ,the action object's default method will be invoked.
but, u can specified the Action object's method for this response.
then the action object will invoke a view object(can be the one before or others) to
present the result to client.
>You can also try HyperQbs framework (www.hyperqbs.org). It is a
>component
>based system which allows event-driven programming model. All URLs are
>generated dynamicaly and after their activation the event is delivered
>to appropriate component which is responsible for event processing.
>
>It uses templates also for seperating responsibility of Java programmers
>(component developers) and webdesigners. Any template engine is
>possible to use as a parser (plugin to HyperQbs engine). The
>distribution contains FreeMarker parser and it is possible to use JSP as
>parser also.
>
>For example the JSP template for the form component "RegistrationForm"
>looks:
>
><@ taglib uri="/WEB-INF/hqbs.tld" prefix="hqbs" >
><FORM ACTION="<hqbs:url/>" METHOD="post">
>
> <INPUT TYPE="text" NAME="firstName">
>
> ...
>
></FORM>
>
>You can see that in the template doesn't exist exact URLs - but it is
>used the JSP element <hqbs:url/> instead it. The HyperQbs engine then
>generates appropriate URL for generating the event.
>
>When you want to include mentioned component (RegistrationForm) into
>HTML page you can use
>following template:
>
><@ taglib uri="/WEB-INF/hqbs.tld" prefix="hqbs" >
><HTML>
><BODY>
>
><hqbs:template qbname="Header"/>
>
><hqbs:template qbname="RegistrationForm"/>
>
><hqbs:template qbname="Footer"/>
>
></BODY>
></HTML>
>
>Rene
>
>> Sands Fish wrote:
>>
>> Hello all,
>> I've been reviewing how different people structure web-fired
>> events in their servlets and how they use these events in their webapp
>> architecture to handle the resulting view, integrating with JSP views,
>> etc. What does everybody think? Anybody have any code to share so
>> the rest of us can share in better event modelling? I think everyone
>> could benefit from that. I did look in the archives (i say this since
>> everyone seems to flame at the drop of a hat on this list) but didn't
>> really find myself satisfied. So, anybody? anybody? bueller?
>>
>> - sands fish
>> - eCommerce
>> - telecomNOW
>> - [EMAIL PROTECTED]
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
�{.n�+���zw^�����b����ڽ�.��&jwb��nu觶��ܨ~�^��,j�� �}�ER�L�SL
܆+m��ڭ�b��#j���w(���r�z��z��zا���m�T^���q�!���6�j˧r������l�ǫ�W���mz�ږ�����z�m�R�I4�EQޖ�m����
%���r�����j[?�ǫ���f