DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23104>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23104

ConditionalForwardAction





------- Additional Comments From [EMAIL PROTECTED]  2003-09-11 14:33 -------
A new ActionConfig would be awesome.  I'd love to be able to do something like:

<action path="/search/national/page"
        type="com.sa.go.web.struts.ConditionalForwardAction"
     unknown="false">
  <conditionals>
    <if>
      <type>el</type>
      <test>${empty sessionScope.buyandsave_advancedSearchResults}</test>
      <then>search</then>
    </if>
    <elseif>
      <type>el</type>
      <test>...</test>
      <then>...</then>
    </elseif>
    <else>paging</else>
  </conditionals>
  <forward name="search" path="/search" redirect="true" />
  <forward name="paging" path="stad.buyandsave.nationalSearchResults" />
</action>

I did a quick review of some of the Struts classes and it looks like 
ActionConfigs are intimately tied with ModuleConfigs.  Is there anyway that I 
can configure Struts to say "whenever you see action X, use this mapping?"  Do 
I need to subclass ModuleConfig?

Thanks!
James

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to