You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Don Brown <mr...@twdata.org> on 2003/06/08 09:01:14 UTC
[ANN] Wildcard-Matched Actions
This project allows wildcards to be used in Struts 1.1+ action mappings. The
wildcard-matched values can then be substituted in the values of various
Struts action mapping and action forward attributes. It uses the wildcard
matching class from Apache Cocoon which is the default matching class used to
match XML transformation pipelines.
The bottom line of this project is you can write generic actions that can be
used to match multiple actions. Even the "type" attribute which specifies the
Action class can have wildcard-matched values substituted to match multiple
Action classes for one action mapping. It also works great for Struts
applications that use DispatchActions or other generic Actions.
For example:
<action path="/edit*"
type="org.twdata.struts.ScriptAction"
attribute="{1}Form"
scope="request"
validate="false"
parameter="/WEB-INF/scripts/Edit{1}.bsh">
<forward name="failure" path="/mainMenu.jsp"/>
<forward name="success" path="/{1}.jsp"/>
</action>
Project page: http://www.twdata.org/struts-wildcard/
Comments and suggestions always welcome.
Don
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Struts-resume app & session facade
Posted by Martin Naskovski <mn...@san.rr.com>.
Hi, I was looking at Matt Raible's Struts-Resume application and
it seems he's using Hibernate to do his persistence. One thing I'm not
100% clear on is - which part of his application represents the
Session Facade pattern? Is it the *Manager.java classes or is this
pattern non-existent in this app? If EJB's were to be added to the
application, wouldn't there need to be a Session Facade at that point,
and which would that be? Obviously, the Manager classes are called
BD's, which are a separate pattern from Session Facade.... So I just
wasn't sure about the delination of these two.
Has anyone looked at this closely and what's their opinion on the
division of these two layers/pattern within struts-resume?
Thanks.
martin
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org