I don't want to take any credit where it's not due.  I believe Matthias Bauer
wrote the workflow extension.  

Good to know you're thinkin' of me Ted! ;)

Matt

--- "Ditlinger, Steve" <[EMAIL PROTECTED]> wrote:
> 
> The SSL extension from my JavaWorld article of Feb 15 uses the "action"
> tag's "parameter" attribute.  That has since been modified so that the
> version available at http://struts.ditlinger.com uses the "set-property"
> tag.  This was done to avoid the exact limitation you are finding with the
> "parameter" attribute.
> 
> Cheers,
> Steve
> 
> -----Original Message-----
> From: Ted Husted [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 05, 2002 12:43 PM
> To: Struts Users Mailing List
> Subject: Re: "parameter" attribute in the action-mapping... what is it?
> 
> 
> You can use a deliminated list of items, and then use the String
> tokenizer to pull them out. 
> 
>         StringTokenizer helperClasses =
>             new StringTokenizer(mapping.getParameter(),";");
>         int i = -1;
>         Object[] helpers = new Object[helperClasses.countTokens()];
>         while (helperClasses.hasMoreTokens()) {
>             String helperClass = helperClasses.nextToken().trim();
>             if ((helperClass==null) || (helperClass.length()==0))
> continue;
>               // ...
>         }
> 
> You can also extend ActionMappings and use the digester <set-property>
> feature to set your own properties. Matt Raible does this with his
> workflow extension. 
> 
> http://www.livinglogic.de/Struts/
> 
> After that, you're into modifying how the ActionServlet parses the
> config.
> 
> -- Ted Husted, Husted dot Com, Fairport NY US
> -- Developing Java Web Applications with Struts
> -- Tel: +1 585 737-3463
> -- Web: http://husted.com/about/services
> 
> 
> Steve Earl wrote:
> > 
> > Does anyone know if you can specify more than a single parameter on the
> > actionMapping definition within the struts-config.xml file?
> > 
> > The reason for the question is that I'd like to do something similar to
> > what's specified below - have an action which processes several related
> > tasks using a parameter to distinguish them. However, I'm also using Steve
> > Ditlinger's ssl tag extension and that requires a parameter on the
> > actionMapping of "secure".
> > 
> > All advice appreciated.
> > 
> > regards,
> > steve
> > 
> > __________________________________
> > Steve Earl
> > 
> > -----Original Message-----
> > From: Donald Miller [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, March 05, 2002 3:33 PM
> > To: Struts Users Mailing List
> > Subject: Re: "parameter" attribute in the action-mapping... what is it?
> > 
> > It's a general purpose attribute you can use to pass any desired
> > information into the action from the struts-config.xml file.  You can
> > access the parameter's value within the action class via the
> > mapping.getParameter() method.  For actions requiring multiple steps, the
> > parameter is often used to indicate which step the mapping is associated
> > with.  For example:
> > 
> > <action path="\CreateSomething\Step1"
> >                type="myactions.CreateSomethingAction"
> >                ...
> >                parameter="step1">...
> > 
> > <action path="\CreateSomething\Step2"
> >                type="myactions.CreateSomethingAction"
> >                ...
> >                parameter="step2">...
> > 
> > <action path="\CreateSomething\Complete"
> >                type="myactions.CreateSomethingAction"
> >                ...
> >                parameter="complete">...
> > 
> > I hope this helps.  Take care.
> > 
> > Don
> > 
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > 
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

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

Reply via email to