On Fri, 22 Mar 2002 10:09:14 -0600, Haseltine, Celeste

>I have not seen WebWork, but to answer your question, Struts is a very heavy
>framework in that the Jakarta tag libraries are very tightly integrated into
>the MVC architecture portion of Struts.  For those of us who use JSP tag
>libraries that either come with our Servlet containers, or choose to use
>other tag libraries than those bundled with Struts, then Struts is not a
>good option.  Since I prefer to use the tag libraries that come bundled with
>my JSP/Servlet container, I need a "stand alone" MVC architecture, that I
>can integrate my servlet containers tag libraries into.  If WebWork is such
>a "stand alone" MVC architecture, then it is one I would consider using over
>Struts.

I certainly think you'd be able to use MVC given the above. The main point of 
"integration" between the WebWork servlet dispatcher (if you choose the Model-2 mode 
that is) is the value stack that holds the objects that can be rendered in the view 
(e.g. JSP). You can access this stack from the request object directly, or bind the 
action that was executed to a request attribute by wrapping your code with the 
following:
<webwork:property value="." id="action">

.. your JSP code goes here. The attribute "action" holds the action object:
<%=((MyAction)request.getAttribute("action")).getFoo()%>

</webwork:property>

Is that good enough?

We certainly do recommend that you use the provided tag library to access the data, 
but if you want to use your own tags there's a multitude of ways to accomplish that, 
depending on your particular scenario.

/Rickard

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to