David,

I believe you're mistaken, these comments relate to the struts-config.xml
and not the web.xml and they work for me as described in Struts 1.2.4

 <global-forwards type="com.friedsoftware.struts.ActionForwardExample">
      <forward name="success" path="/index2.jsp">
           <set-property property="property" value="welcome"/>
      </forward>
</global-forwards>

Niall

----- Original Message ----- 
From: "David G. Friedman" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Sunday, September 19, 2004 6:56 AM
Subject: RE: ??? STRUTS 1.2.4 FEEDBACK ???


> Niall,
>
> While researching (out of curiosity) a recent help request on how to use
> custom ActionForwards with set-property, I actually read the
> struts_config_1_2.tld and the ActionServlet class (from CVS). I found that
> the tld describes how to set various init-params in web.xml for
> ActionServlet which don't seem to exist anymore.  There are no references
as
> the tld comments describe in the 1.2.4 userGuide\configuration.xml or the
> latest ActionServlet.java code. Maybe no one remembered it was an odd
> comment in the 1.2 (v 1.8) tld?  Below are the 3 comment sections
including
> their seemingly obsolete notes on init params:
>
> <!-- The "global-forwards" element describes a set of ActionForward
objects
>      [org.apache.struts.action.ActionForward] that are available to all
> Action
>      objects as a return value. The individual ActionForwards are
configured
>      through nested <forward> elements. An <action> element may override a
> global
>      forward by defining a local <forward> of the same name.
>
>      type            Fully qualified Java class to use when instantiating
>                      ActionForward objects.  If specified, the object must
> be a
>                      subclass of the default class type.
>
>                      WARNING:  For Struts 1.0, this value is ignored.  You
>                      can set the default implementation class name with
the
>                      "forward" initialization parameter to the Struts
>                      controller servlet.
> -->
>
> <!-- The "action-mappings" element describes a set of ActionMapping
objects
>      [org.apache.struts.action.ActionMapping] that are available to
process
>      requests matching the url-pattern our ActionServlet registered with
the
>      container. The individual ActionMappings are configured through
nested
>      <action> elements. The following attributes are defined:
>
>      type           Fully qualified Java class to use when instantiating
>                     ActionMapping objects. If specified, the object must
be
> a
>                     subclass of the default class type.
>
>                     WARNING:  For Struts 1.0, this value is ignored.  You
>                     can set the default implementation class name with the
>                     "mapping" initialization parameter to the Struts
>                     controller servlet.
> -->
>
> <!-- The "form-beans" element describes the set of form bean descriptors
for
> this
>      module. The following attributes are defined:
>
>      type            Fully qualified Java class to use when instantiating
>                      ActionFormBean objects. If specified, the object must
> be a
>                      subclass of the default class type.
>
>                      WARNING:  For Struts 1.0, this value is ignored.  You
>                      can set the default implementation class name with
the
>                      "formBean" initialization parameter to the Struts
>                      controller servlet.
> -->
>
> Regards,
> David
>
> -----Original Message-----
> From: Niall Pemberton [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 16, 2004 12:16 AM
> To: Struts Users Mailing List
> Subject: ??? STRUTS 1.2.4 FEEDBACK ???
>
>
> Has anyone tried out Struts 1.2.4?
>
> If so can you feedback - positive or negative.
>
> Niall
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



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

Reply via email to