I checked in the ActionTag changes I discussed last week. Now you do
this:

<webwork:action name="testAction" id="testAction"> <!-- id is required
now, it gets the default namespace of "" -->
  <webwork:param name="foo">123</webwork:param>
</webwork:action> <!-- the action is executed here -->

Now you can access the Action in the ActionContext context map using the
id you supplied:

<webwork:property value="#testAction.foo"/>

Or

<webwork:push value="#testAction">
  <webwork:property value="foo"/>
</webwork:push>

The action is also set into the PageContext using the id, so you can use
JSTL, or whatever you want.

I've also fixed the example web app to work with the new ActionTag.

Speaking of the example app, I noticed that the ui tags are breaking in
Tomcat 4.1. Here's the stack trace:

org.apache.jasper.JasperException: /tags.jsp(5,0) Unable to find setter
method for attribute: name
        at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand
ler.java:94)
        at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java
:417)
        at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java
:186)
        at
org.apache.jasper.compiler.Generator$GenerateVisitor.generateSetters(Gen
erator.java:1681)
        ...

I think the problem here is Matt's change to make the name in
AbstractUITag be a java.lang.Object and have the getName() method return
an Object rather than a String. The problem is that when you have the
getter and setter with different types, the javabeans framework gets
confused about the type of the property you're trying to set. I'm not
sure of the intention behind this, so I'm going to leave this one for
you, Matt :-)

Jason

--
Jason Carreira
Technical Architect, Notiva Corp.
phone:  585.240.2793
  fax:  585.272.8118
email:  [EMAIL PROTECTED]
---
Notiva - optimizing trade relationships (tm)
 


-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to