Re: workflow example explaination.

2002-06-14 Thread Matthias Bauer

The values are checked before the code of your actions you derive from 
GenericAction is executed, thus preventing the user from executing an action he 
is not allowed to execute right now.

If you are looking for the exact locations, where the values are used, you can 
always do a grep on all the source files of the Workflow Extension.

--- Matthias


Anjali Jain wrote:
> Hi,
> 
> I was looking at the getter setters in ApplicationMapping.java
> where will the values of these variable(nextState, etc) be used...??
> how is the value assignment to these affect the flow of pages...??
> 
> -anjali
> 
> 
> -Original Message-
> From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 3:15 PM
> To: [EMAIL PROTECTED]
> Subject: RE: workflow example explaination.
> 
> 
> 
> Struts 1.1b1 give us a chance to customize an ActionMapping in a per action 
> basis rather than doing it for the whole app in web.xml. Just place in your 
> action definition in struts-config something like:
> 
>type=".."
>   name=""
> ..
> className="com.mapfre.general.upload.YourNewActionMapping"/>
> 
> Adolfo
> 
> 
>>From: Anjali Jain <[EMAIL PROTECTED]>
>>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>>Subject: RE: workflow example explaination.
>>Date: Thu, 13 Jun 2002 14:35:48 +0530
>>
>>thanx a lot Matthias.
>>I will now try to implement it.
>>
>>-Original Message-
>>From: Matthias Bauer [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, June 13, 2002 1:31 PM
>>To: Struts Users Mailing List
>>Subject: Re: workflow example explaination.
>>
>>
>>
>>>But when I serached for the methods like setPrimaryWorkflow,
>>
>>setNewState(),
>>
>>>and setNextState() in SuccessAction class or GenericAction class,
>>>I couldn't.
>>>where are these methods & data members defined.
>>
>>It is the class ApplicationMapping, these methods are defined in. You also
>>need
>>to tell the Struts Servlet to use this mapping instead of the standard
>>action
>>mapping by this entry in web.xml (see the test application that is provided
>>with
>>the workflow extension package):
>>
>> 
>>   mapping
>>   com.livinglogic.struts.workflow.ApplicationMapping
>>  
>> 
>>
>>Please note: this works for Struts 1.0.x only, because the action mappings
>>are
>>defined differently in Struts 1.1.
>>
>>
>>>I'm not able to map actually.
>>>
>>>In the struts-config.xml,
>>>
>>> 
>>> 
>>> 
>>>
>>>what does value "1" signify for property "newState"...?
>>>does it efine some kind of sequence...??
>>
>>What it says is:
>>
>>- newState: when this action is executed set the state of the "login"
>>workflow
>>to "1" and
>>- nextState: any action that is following must belong to the workflow
>>"login"
>>and must set this workflow's state to 2 (otherwise a control flow exception
>>is
>>encountered)
>>
>>
>>>Please explain comprehensively with the progression of screens..
>>
>>Please look at the test application and work through it thoroughly. This
>>should
>>demonstrate the ideas behind the workflow package pretty well.
>>
>>--- Matthias
>>
>>
>>--
>>To unsubscribe, e-mail:
>><mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail:
>><mailto:[EMAIL PROTECTED]>
>>
>>Power your enterprise with custom solutions in eLearning and Knowledge
>>Management from NIIT - Knowledge Solutions. For details visit our website
>>http://www.ksb.niit.com
>>
>>___NOTICE
>>This electronic mail transmission contains confidential information 
>>intended
>>only for the person(s) named.  Any use, distribution, copying or disclosure
>>by any other person is strictly prohibited. If you received this
>>transmission in error, please notify the sender by reply e-mail and then
>>destroy the message.  Opinions, conclusions, and other information in this
>>message that do not relate to the official business of NIIT shall be
>>understood to be neither given nor endorsed by NIIT When addressed to NIIT
>>clie

RE: workflow example explaination.

2002-06-13 Thread Anjali Jain

Hi,

I was looking at the getter setters in ApplicationMapping.java
where will the values of these variable(nextState, etc) be used...??
how is the value assignment to these affect the flow of pages...??

-anjali


-Original Message-
From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 3:15 PM
To: [EMAIL PROTECTED]
Subject: RE: workflow example explaination.



Struts 1.1b1 give us a chance to customize an ActionMapping in a per action 
basis rather than doing it for the whole app in web.xml. Just place in your 
action definition in struts-config something like:



Adolfo

>From: Anjali Jain <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: RE: workflow example explaination.
>Date: Thu, 13 Jun 2002 14:35:48 +0530
>
>thanx a lot Matthias.
>I will now try to implement it.
>
>-Original Message-
>From: Matthias Bauer [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, June 13, 2002 1:31 PM
>To: Struts Users Mailing List
>Subject: Re: workflow example explaination.
>
>
> > But when I serached for the methods like setPrimaryWorkflow,
>setNewState(),
> > and setNextState() in SuccessAction class or GenericAction class,
> > I couldn't.
> > where are these methods & data members defined.
>
>It is the class ApplicationMapping, these methods are defined in. You also
>need
>to tell the Struts Servlet to use this mapping instead of the standard
>action
>mapping by this entry in web.xml (see the test application that is provided
>with
>the workflow extension package):
>
>  
>mapping
>com.livinglogic.struts.workflow.ApplicationMapping
>   
>  
>
>Please note: this works for Struts 1.0.x only, because the action mappings
>are
>defined differently in Struts 1.1.
>
> > I'm not able to map actually.
> >
> > In the struts-config.xml,
> > 
> >  
> >  
> >  
> >
> > what does value "1" signify for property "newState"...?
> > does it efine some kind of sequence...??
>
>What it says is:
>
>- newState: when this action is executed set the state of the "login"
>workflow
>to "1" and
>- nextState: any action that is following must belong to the workflow
>"login"
>and must set this workflow's state to 2 (otherwise a control flow exception
>is
>encountered)
>
> > Please explain comprehensively with the progression of screens..
>
>Please look at the test application and work through it thoroughly. This
>should
>demonstrate the ideas behind the workflow package pretty well.
>
>--- Matthias
>
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>Power your enterprise with custom solutions in eLearning and Knowledge
>Management from NIIT - Knowledge Solutions. For details visit our website
>http://www.ksb.niit.com
>
>___NOTICE
>This electronic mail transmission contains confidential information 
>intended
>only for the person(s) named.  Any use, distribution, copying or disclosure
>by any other person is strictly prohibited. If you received this
>transmission in error, please notify the sender by reply e-mail and then
>destroy the message.  Opinions, conclusions, and other information in this
>message that do not relate to the official business of NIIT shall be
>understood to be neither given nor endorsed by NIIT When addressed to NIIT
>clients, any information contained in this e-mail is subject to the terms
>and conditions in the governing client contract.
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>





  
 Adolfo's signature
  
  
 Adolfo Rodriguez Miguelez

  
  





_
Join the world's largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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

Power your enterprise with custom solutions in eLearning and Knowledge
Management from NIIT - Knowledge Solutions. For details visit our website
http://www.ksb.niit.com 

___NOTICE 
This electronic mail transmission contains confidential information intended
only for the person(s) named.  Any use, distribution, copying or disclosure
by any other person is strictly prohibited. If you r

Re: workflow example explaination.

2002-06-13 Thread Matthias Bauer

Your are right. This is exactly the place where the setters are located.

Andre Beskrowni wrote:
> i thought that the usage of set-property below required the 
> *ActionMapping*, not the Action, to have the appropriate setters.  
> certainly it works if you specify an ActionMapping that has the 
> necessary mutator methods, and that would seem to be the cleaner way of 
> doing things since it doesn't require your Action instance to store any 
> local values.
> 
> ab
> 
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 12, 2002 12:07 PM
> To: Struts Users Mailing List
> Subject: Re: workflow example explaination.
> 
> The  tag is a general way to set JavaBeans properties on 
> an underlying implementation class, even though the property name is not
> defined as a valid element in the DTD.
> 
>>   
>>   >   type="com.livinglogic.struts.workflow.SuccessAction">
>> 
>> 
>> 
>> 
>>   
>>
> 
> This logic assumes that the SuccessAction class has public setter 
> methods setPrimaryWorkflow(), setNewState(), and setNextState() -- you 
> can still configure them in struts-config.xml even though these property 
> names are not allowed on the  element itself.
> 
> Many of the Struts elements allow  tags to be nested 
> inside -- check out the Struts DTD for more information.
> 
> Craig
> 
> 
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
> 
> 
> -- 
> 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]>




RE: workflow example explaination.

2002-06-13 Thread Adolfo Miguelez


Struts 1.1b1 give us a chance to customize an ActionMapping in a per action 
basis rather than doing it for the whole app in web.xml. Just place in your 
action definition in struts-config something like:



Adolfo

>From: Anjali Jain <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: RE: workflow example explaination.
>Date: Thu, 13 Jun 2002 14:35:48 +0530
>
>thanx a lot Matthias.
>I will now try to implement it.
>
>-Original Message-
>From: Matthias Bauer [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, June 13, 2002 1:31 PM
>To: Struts Users Mailing List
>Subject: Re: workflow example explaination.
>
>
> > But when I serached for the methods like setPrimaryWorkflow,
>setNewState(),
> > and setNextState() in SuccessAction class or GenericAction class,
> > I couldn't.
> > where are these methods & data members defined.
>
>It is the class ApplicationMapping, these methods are defined in. You also
>need
>to tell the Struts Servlet to use this mapping instead of the standard
>action
>mapping by this entry in web.xml (see the test application that is provided
>with
>the workflow extension package):
>
>  
>mapping
>com.livinglogic.struts.workflow.ApplicationMapping
>   
>  
>
>Please note: this works for Struts 1.0.x only, because the action mappings
>are
>defined differently in Struts 1.1.
>
> > I'm not able to map actually.
> >
> > In the struts-config.xml,
> > 
> >  
> >  
> >  
> >
> > what does value "1" signify for property "newState"...?
> > does it efine some kind of sequence...??
>
>What it says is:
>
>- newState: when this action is executed set the state of the "login"
>workflow
>to "1" and
>- nextState: any action that is following must belong to the workflow
>"login"
>and must set this workflow's state to 2 (otherwise a control flow exception
>is
>encountered)
>
> > Please explain comprehensively with the progression of screens..
>
>Please look at the test application and work through it thoroughly. This
>should
>demonstrate the ideas behind the workflow package pretty well.
>
>--- Matthias
>
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>Power your enterprise with custom solutions in eLearning and Knowledge
>Management from NIIT - Knowledge Solutions. For details visit our website
>http://www.ksb.niit.com
>
>___NOTICE
>This electronic mail transmission contains confidential information 
>intended
>only for the person(s) named.  Any use, distribution, copying or disclosure
>by any other person is strictly prohibited. If you received this
>transmission in error, please notify the sender by reply e-mail and then
>destroy the message.  Opinions, conclusions, and other information in this
>message that do not relate to the official business of NIIT shall be
>understood to be neither given nor endorsed by NIIT When addressed to NIIT
>clients, any information contained in this e-mail is subject to the terms
>and conditions in the governing client contract.
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>





  
 Adolfo's signature
  
  
 Adolfo Rodriguez Miguelez

  
  





_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




RE: workflow example explaination.

2002-06-13 Thread Anjali Jain

thanx a lot Matthias.
I will now try to implement it.

-Original Message-
From: Matthias Bauer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 1:31 PM
To: Struts Users Mailing List
Subject: Re: workflow example explaination.


> But when I serached for the methods like setPrimaryWorkflow,
setNewState(),
> and setNextState() in SuccessAction class or GenericAction class,
> I couldn't.
> where are these methods & data members defined.

It is the class ApplicationMapping, these methods are defined in. You also
need 
to tell the Struts Servlet to use this mapping instead of the standard
action 
mapping by this entry in web.xml (see the test application that is provided
with 
the workflow extension package):

 
   mapping
   com.livinglogic.struts.workflow.ApplicationMapping
  
 

Please note: this works for Struts 1.0.x only, because the action mappings
are 
defined differently in Struts 1.1.

> I'm not able to map actually.
> 
> In the struts-config.xml, 
> 
>  
>  
>  
> 
> what does value "1" signify for property "newState"...?
> does it efine some kind of sequence...??

What it says is:

- newState: when this action is executed set the state of the "login"
workflow 
to "1" and
- nextState: any action that is following must belong to the workflow
"login" 
and must set this workflow's state to 2 (otherwise a control flow exception
is 
encountered)

> Please explain comprehensively with the progression of screens..

Please look at the test application and work through it thoroughly. This
should 
demonstrate the ideas behind the workflow package pretty well.

--- Matthias


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

Power your enterprise with custom solutions in eLearning and Knowledge
Management from NIIT - Knowledge Solutions. For details visit our website
http://www.ksb.niit.com 

___NOTICE 
This electronic mail transmission contains confidential information intended
only for the person(s) named.  Any use, distribution, copying or disclosure
by any other person is strictly prohibited. If you received this
transmission in error, please notify the sender by reply e-mail and then
destroy the message.  Opinions, conclusions, and other information in this
message that do not relate to the official business of NIIT shall be
understood to be neither given nor endorsed by NIIT When addressed to NIIT
clients, any information contained in this e-mail is subject to the terms
and conditions in the governing client contract.

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




RE: workflow example explaination.

2002-06-13 Thread Andre Beskrowni

i thought that the usage of set-property below required the *ActionMapping*, 
not the Action, to have the appropriate setters.  certainly it works if you 
specify an ActionMapping that has the necessary mutator methods, and that 
would seem to be the cleaner way of doing things since it doesn't require 
your Action instance to store any local values.

ab

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 12:07 PM
To: Struts Users Mailing List
Subject: Re: workflow example explaination.

The  tag is a general way to set JavaBeans properties on an 
underlying implementation class, even though the property name is not
defined as a valid element in the DTD.

>   
>  type="com.livinglogic.struts.workflow.SuccessAction">
> 
> 
> 
> 
>   
>

This logic assumes that the SuccessAction class has public setter methods 
setPrimaryWorkflow(), setNewState(), and setNextState() -- you can still 
configure them in struts-config.xml even though these property names are not 
allowed on the  element itself.

Many of the Struts elements allow  tags to be nested inside -- 
check out the Struts DTD for more information.

Craig


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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




Re: workflow example explaination.

2002-06-13 Thread Matthias Bauer

> But when I serached for the methods like setPrimaryWorkflow, setNewState(),
> and setNextState() in SuccessAction class or GenericAction class,
> I couldn't.
> where are these methods & data members defined.

It is the class ApplicationMapping, these methods are defined in. You also need 
to tell the Struts Servlet to use this mapping instead of the standard action 
mapping by this entry in web.xml (see the test application that is provided with 
the workflow extension package):

 
   mapping
   com.livinglogic.struts.workflow.ApplicationMapping
  
 

Please note: this works for Struts 1.0.x only, because the action mappings are 
defined differently in Struts 1.1.

> I'm not able to map actually.
> 
> In the struts-config.xml, 
> 
>  
>  
>  
> 
> what does value "1" signify for property "newState"...?
> does it efine some kind of sequence...??

What it says is:

- newState: when this action is executed set the state of the "login" workflow 
to "1" and
- nextState: any action that is following must belong to the workflow "login" 
and must set this workflow's state to 2 (otherwise a control flow exception is 
encountered)

> Please explain comprehensively with the progression of screens..

Please look at the test application and work through it thoroughly. This should 
demonstrate the ideas behind the workflow package pretty well.

--- Matthias


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: workflow example explaination.

2002-06-12 Thread Anjali Jain

thanx a lot Craig,

But when I serached for the methods like setPrimaryWorkflow, setNewState(),
and setNextState() in SuccessAction class or GenericAction class,
I couldn't.
where are these methods & data members defined.
I'm not able to map actually.

In the struts-config.xml, 

 
 
 

what does value "1" signify for property "newState"...?
does it efine some kind of sequence...??
Please explain comprehensively with the progression of screens..

thanx a lot

---anjali




-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 9:37 PM
To: Struts Users Mailing List
Subject: Re: workflow example explaination.




On Wed, 12 Jun 2002, Anjali Jain wrote:

> Date: Wed, 12 Jun 2002 14:37:15 +0530
> From: Anjali Jain <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: workflow example explaination.
>
> Hi All,
>
> can anybody explain me the foll struts-config.xml...?? Especially
>  tag supposed to do ...??
> I've picked up this file from struts workflow example.
>

The  tag is a general way to set JavaBeans properties on an
underlying implementation class, even though the property name is not
defined as a valid element in the DTD.

>   
>  type="com.livinglogic.struts.workflow.SuccessAction">
> 
> 
> 
> 
>   
>

This logic assumes that the SuccessAction class has public setter methods
setPrimaryWorkflow(), setNewState(), and setNextState() -- you can still
configure them in struts-config.xml even though these property names are
not allowed on the  element itself.

Many of the Struts elements allow  tags to be nested inside
-- check out the Struts DTD for more information.

Craig



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

Power your enterprise with custom solutions in eLearning and Knowledge
Management from NIIT - Knowledge Solutions. For details visit our website
http://www.ksb.niit.com 

___NOTICE 
This electronic mail transmission contains confidential information intended
only for the person(s) named.  Any use, distribution, copying or disclosure
by any other person is strictly prohibited. If you received this
transmission in error, please notify the sender by reply e-mail and then
destroy the message.  Opinions, conclusions, and other information in this
message that do not relate to the official business of NIIT shall be
understood to be neither given nor endorsed by NIIT When addressed to NIIT
clients, any information contained in this e-mail is subject to the terms
and conditions in the governing client contract.

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




Re: workflow example explaination.

2002-06-12 Thread Craig R. McClanahan



On Wed, 12 Jun 2002, Anjali Jain wrote:

> Date: Wed, 12 Jun 2002 14:37:15 +0530
> From: Anjali Jain <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: workflow example explaination.
>
> Hi All,
>
> can anybody explain me the foll struts-config.xml...?? Especially
>  tag supposed to do ...??
> I've picked up this file from struts workflow example.
>

The  tag is a general way to set JavaBeans properties on an
underlying implementation class, even though the property name is not
defined as a valid element in the DTD.

>   
>  type="com.livinglogic.struts.workflow.SuccessAction">
> 
> 
> 
> 
>   
>

This logic assumes that the SuccessAction class has public setter methods
setPrimaryWorkflow(), setNewState(), and setNextState() -- you can still
configure them in struts-config.xml even though these property names are
not allowed on the  element itself.

Many of the Struts elements allow  tags to be nested inside
-- check out the Struts DTD for more information.

Craig



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




workflow example explaination.

2002-06-12 Thread Anjali Jain

Hi All,

can anybody explain me the foll struts-config.xml...?? Especially
 tag supposed to do ...??
I've picked up this file from struts workflow example.


struts-config.xml



http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
















  
  

  
  

  
  

  
  





  

  
  




  

  
  





  

  
  

  

  
  


  

  





  

  







  

  






  

  





  

  






  

  





  

  







  

  






  

  






  

  







  

  






  

  








  






anjali

Power your enterprise with custom solutions in eLearning and Knowledge
Management from NIIT - Knowledge Solutions. For details visit our website
http://www.ksb.niit.com 

___NOTICE 
This electronic mail transmission contains confidential information intended
only for the person(s) named.  Any use, distribution, copying or disclosure
by any other person is strictly prohibited. If you received this
transmission in error, please notify the sender by reply e-mail and then
destroy the message.  Opinions, conclusions, and other information in this
message that do not relate to the official business of NIIT shall be
understood to be neither given nor endorsed by NIIT When addressed to NIIT
clients, any information contained in this e-mail is subject to the terms
and conditions in the governing client contract.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: