Re: ARRRGGGGHHHH!!! I'm being stupid again....

2004-09-03 Thread Bill Siggelkow
Jim -- if you create your own subclass of ActionMapping and use the 
set-property it *will be* per path.

Jim Barrows wrote:


Yeah, but I wanted this on a per path basis, not per class.  That way the web designer could configure the wizard any which way without geting into the Spring config.

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


RE: ARRRGGGGHHHH!!! I'm being stupid again....

2004-09-03 Thread Jim Barrows


> -Original Message-
> From: Bryce Fischer [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 03, 2004 1:14 PM
> To: Struts Users Mailing List
> Subject: Re: ARRRGGGGHHHH!!! I'm being stupid again
> 
> 
> Jim Barrows wrote:
> 
> >  
> >
> >>-Original Message-
> >>From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
> >>
> >>Jim, I know it seems like its unrelated but its really not 
> >>... when you 
> >>create an  element you are really defining an instance of 
> >>ActionMapping (which extends ActionConfig). One of the 
> >>"properties" of 
> >>the ActionMapping is the type of the Action. Another is the path, 
> >>whether to validate or not -- etc. If anything, the 
> confusion lies in 
> >>the name of the element -- it might be less confusing (but 
> >>more verbose) 
> >>it it were .
> >>
> >>
> >
> >WHat I was trying to do, was create a generic wizard action 
> class, and use the set-property to set the maximum number of 
> pages in the wizard, and be able to use that setup for 
> multiple different wizards.  Setting that value per action 
> would have been perfect.
> >  
> >
> 
> Have you considered using Spring?  Works well with Struts, and allows 
> you to inject values like that.

Yeah, but I wanted this on a per path basis, not per class.  That way the web designer 
could configure the wizard any which way without geting into the Spring config.


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



Re: ARRRGGGGHHHH!!! I'm being stupid again....

2004-09-03 Thread Bryce Fischer
Jim Barrows wrote:
 

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
Jim, I know it seems like its unrelated but its really not 
... when you 
create an  element you are really defining an instance of 
ActionMapping (which extends ActionConfig). One of the 
"properties" of 
the ActionMapping is the type of the Action. Another is the path, 
whether to validate or not -- etc. If anything, the confusion lies in 
the name of the element -- it might be less confusing (but 
more verbose) 
it it were .
   

WHat I was trying to do, was create a generic wizard action class, and use the set-property to set the maximum number of pages in the wizard, and be able to use that setup for multiple different wizards.  Setting that value per action would have been perfect.
 

Have you considered using Spring?  Works well with Struts, and allows 
you to inject values like that.

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


RE: ARRRGGGGHHHH!!! I'm being stupid again....

2004-09-03 Thread Jim Barrows


> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
> Sent: Friday, September 03, 2004 12:46 PM
> To: [EMAIL PROTECTED]
> Subject: Re: ARRRGGGGHHHH!!! I'm being stupid again
> 
> 
> Jim, I know it seems like its unrelated but its really not 
> ... when you 
> create an  element you are really defining an instance of 
> ActionMapping (which extends ActionConfig). One of the 
> "properties" of 
> the ActionMapping is the type of the Action. Another is the path, 
> whether to validate or not -- etc. If anything, the confusion lies in 
> the name of the element -- it might be less confusing (but 
> more verbose) 
> it it were .

WHat I was trying to do, was create a generic wizard action class, and use the 
set-property to set the maximum number of pages in the wizard, and be able to use that 
setup for multiple different wizards.  Setting that value per action would have been 
perfect.


> 
> Jim Barrows wrote:
> 
> > 
> >>-Original Message-
> >>From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
> >>Sent: Friday, September 03, 2004 11:42 AM
> >>To: [EMAIL PROTECTED]
> >>Subject: Re: ARRR!!! I'm being stupid again
> >>
> >>
> >>Hmmm ... don't know where I originally linked these synapses 
> >>but here's 
> >>a wiki page -- http://wiki.apache.org/struts/ActionMapping
> > 
> > 
> > So, I have to subclass an unrelated object *SIGH*.  Oh 
> well, have to do it the "hard" way
> > 
> > 
> >>- Bill
> >>
> >>Jim Barrows wrote:
> >>
> >>
> >>>>-Original Message-
> >>>>From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
> >>>>Sent: Friday, September 03, 2004 10:08 AM
> >>>>To: [EMAIL PROTECTED]
> >>>>Subject: Re: ARRR!!! I'm being stupid again
> >>>>
> >>>>
> >>>>The  in nested  applies to the 
> ActionMapping 
> >>>>object not the Action.
> >>>
> >>>
> >>>Oh that makes sense in a SCO kind of way...
> >>>
> >>>Just so I can bookmark that info... where did you find it?
> >>>
> >>>
> >>>
> >>>>Jim Barrows wrote:
> >>>>
> >>>>
> >>>>>I'm trying to use the set-property tag in the struts-config 
> >>>>
> >>>>file.  I know I'm being stupid, but what exactly is it?
> >>>>
> >>>>
> >>>>>It's not finding the property to set.
> >>>>>
> >>>>>Okay if I have in my struts-config.xml:
> >>>>> >>>>
> >>>>type="com.sssc.shtuff.actions.LoanAppWizardAction" 
> scope="session">
> >>>>
> >>>>> 
> >>>>>
> >>>>> 
> >>>>> 
> >>>>> 
> >>>>>
> >>>>>
> >>>>>and this in my action class:
> >>>>>public class LoanAppWizardAction extends Action {
> >>>>>
> >>>>> blah
> >>>>>
> >>>>>   /**Read only property from inside this action that 
> >>>>
> >>>>indicates what number is
> >>>>
> >>>>
> >>>>>* the last page.
> >>>>>*/
> >>>>>   private int maxNumberOfPages = 0;
> >>>>>
> >>>>>Lots o' blah
> >>>>>   
> >>>>>   /**
> >>>>>* @return
> >>>>>*/
> >>>>>   public int getMaxNumberOfPages() {
> >>>>>   return maxNumberOfPages;
> >>>>>   }
> >>>>>   
> >>>>>   public void setMaxNumberOfPages(int i) {
> >>>>>   maxNumberOfPages = i;
> >>>>>   }
> >>>>>}
> >>>>>Then I should end up with maxNumberOfPages set to 2, and not:
> >>>>>The following exception was logged 
> >>>>
> >>>>java.lang.NoSuchMethodException: Bean has no property named 
> >>>>maxNumberOfPages
> >>>>
> >>>>
> >>>>
> >>
> >>-
> >>
> >>>>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]
> 
> 

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



Re: ARRRGGGGHHHH!!! I'm being stupid again....

2004-09-03 Thread Bill Siggelkow
Jim, I know it seems like its unrelated but its really not ... when you 
create an  element you are really defining an instance of 
ActionMapping (which extends ActionConfig). One of the "properties" of 
the ActionMapping is the type of the Action. Another is the path, 
whether to validate or not -- etc. If anything, the confusion lies in 
the name of the element -- it might be less confusing (but more verbose) 
it it were .

Jim Barrows wrote:

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
Sent: Friday, September 03, 2004 11:42 AM
To: [EMAIL PROTECTED]
Subject: Re: ARRRGGGGHHHH!!! I'm being stupid again
Hmmm ... don't know where I originally linked these synapses 
but here's 
a wiki page -- http://wiki.apache.org/struts/ActionMapping

So, I have to subclass an unrelated object *SIGH*.  Oh well, have to do it the 
"hard" way

- Bill
Jim Barrows wrote:

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
Sent: Friday, September 03, 2004 10:08 AM
To: [EMAIL PROTECTED]
Subject: Re: ARRR!!! I'm being stupid again
The  in nested  applies to the ActionMapping 
object not the Action.

Oh that makes sense in a SCO kind of way...
Just so I can bookmark that info... where did you find it?

Jim Barrows wrote:

I'm trying to use the set-property tag in the struts-config 
file.  I know I'm being stupid, but what exactly is it?

It's not finding the property to set.
Okay if I have in my struts-config.xml:
type="com.sssc.shtuff.actions.LoanAppWizardAction" scope="session">





and this in my action class:
public class LoanAppWizardAction extends Action {
blah
  /**Read only property from inside this action that 
indicates what number is

   * the last page.
   */
  private int maxNumberOfPages = 0;
Lots o' blah
  
  /**
   * @return
   */
  public int getMaxNumberOfPages() {
  return maxNumberOfPages;
  }
  
  public void setMaxNumberOfPages(int i) {
  maxNumberOfPages = i;
  }
}
Then I should end up with maxNumberOfPages set to 2, and not:
The following exception was logged 
java.lang.NoSuchMethodException: Bean has no property named 
maxNumberOfPages


-
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]


RE: ARRRGGGGHHHH!!! I'm being stupid again....

2004-09-03 Thread Jim Barrows


> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
> Sent: Friday, September 03, 2004 11:42 AM
> To: [EMAIL PROTECTED]
> Subject: Re: ARRRGGGGHHHH!!! I'm being stupid again
> 
> 
> Hmmm ... don't know where I originally linked these synapses 
> but here's 
> a wiki page -- http://wiki.apache.org/struts/ActionMapping

So, I have to subclass an unrelated object *SIGH*.  Oh well, have to do it the 
"hard" way

> 
> - Bill
> 
> Jim Barrows wrote:
> 
> >>-Original Message-
> >>From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
> >>Sent: Friday, September 03, 2004 10:08 AM
> >>To: [EMAIL PROTECTED]
> >>Subject: Re: ARRR!!! I'm being stupid again
> >>
> >>
> >>The  in nested  applies to the ActionMapping 
> >>object not the Action.
> > 
> > 
> > Oh that makes sense in a SCO kind of way...
> > 
> > Just so I can bookmark that info... where did you find it?
> > 
> > 
> >>Jim Barrows wrote:
> >>
> >>>I'm trying to use the set-property tag in the struts-config 
> >>
> >>file.  I know I'm being stupid, but what exactly is it?
> >>
> >>>It's not finding the property to set.
> >>>
> >>>Okay if I have in my struts-config.xml:
> >>> >>
> >>type="com.sssc.shtuff.actions.LoanAppWizardAction" scope="session">
> >>
> >>>   
> >>>
> >>>   
> >>>   
> >>>   
> >>>
> >>>
> >>>and this in my action class:
> >>>public class LoanAppWizardAction extends Action {
> >>>
> >>>   blah
> >>>
> >>>/**Read only property from inside this action that 
> >>
> >>indicates what number is
> >>
> >>> * the last page.
> >>> */
> >>>private int maxNumberOfPages = 0;
> >>>
> >>>Lots o' blah
> >>>
> >>>/**
> >>> * @return
> >>> */
> >>>public int getMaxNumberOfPages() {
> >>>return maxNumberOfPages;
> >>>}
> >>>
> >>>public void setMaxNumberOfPages(int i) {
> >>>maxNumberOfPages = i;
> >>>}
> >>>}
> >>>Then I should end up with maxNumberOfPages set to 2, and not:
> >>>The following exception was logged 
> >>
> >>java.lang.NoSuchMethodException: Bean has no property named 
> >>maxNumberOfPages
> >>
> >>
> >>
> -
> >>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]



RE: ARRRGGGGHHHH!!! I'm being stupid again....

2004-09-03 Thread Jim Barrows


> -Original Message-
> From: Kris Schneider [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 03, 2004 11:33 AM
> To: Struts Users Mailing List
> Subject: RE: ARRRGGGGHHHH!!! I'm being stupid again
> 
> 
> Not sure if it's *explicitly* part of any official docs, but 
> it can be inferred
> from the struts-config DTD. The comment for  includes:
> 
> The "action" element describes an ActionMapping object...
> 
> The comment for  includes:
> 
> When the object representing the surrounding element is 
> instantiated, the
> accessor for the indicated property is called and passed the 
> indicated value.


I read that, and thought, oh it sets the action class, since that's what's surrounding 
the set-property.  *SIGH* Okay...



> 
> Quoting Jim Barrows <[EMAIL PROTECTED]>:
> 
> > > -Original Message-
> > > From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
> > > Sent: Friday, September 03, 2004 10:08 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: ARRR!!! I'm being stupid again
> > > 
> > > 
> > > The  in nested  applies to the 
> ActionMapping 
> > > object not the Action.
> > 
> > Oh that makes sense in a SCO kind of way...
> > 
> > Just so I can bookmark that info... where did you find it?
> > 
> > > 
> > > Jim Barrows wrote:
> > > > I'm trying to use the set-property tag in the struts-config 
> > > file.  I know I'm being stupid, but what exactly is it?
> > > > It's not finding the property to set.
> > > > 
> > > > Okay if I have in my struts-config.xml:
> > > >  > > type="com.sssc.shtuff.actions.LoanAppWizardAction" 
> scope="session">
> > > > 
> > > > 
> > > > 
> > > >  path="/demographics.jsp">
> > > > 
> > > > 
> > > > 
> > > > 
> > > > and this in my action class:
> > > > public class LoanAppWizardAction extends Action {
> > > > 
> > > > blah
> > > > 
> > > > /**Read only property from inside this action that 
> > > indicates what number is
> > > >  * the last page.
> > > >  */
> > > > private int maxNumberOfPages = 0;
> > > > 
> > > > Lots o' blah
> > > > 
> > > > /**
> > > >  * @return
> > > >  */
> > > > public int getMaxNumberOfPages() {
> > > > return maxNumberOfPages;
> > > > }
> > > > 
> > > > public void setMaxNumberOfPages(int i) {
> > > > maxNumberOfPages = i;
> > > > }
> > > > }
> > > > Then I should end up with maxNumberOfPages set to 2, and not:
> > > > The following exception was logged 
> > > java.lang.NoSuchMethodException: Bean has no property named 
> > > maxNumberOfPages
> 
> -- 
> Kris Schneider <mailto:[EMAIL PROTECTED]>
> D.O.Tech   <http://www.dotech.com/>
> 
> -
> 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]



Re: ARRRGGGGHHHH!!! I'm being stupid again....

2004-09-03 Thread Bill Siggelkow
Hmmm ... don't know where I originally linked these synapses but here's 
a wiki page -- http://wiki.apache.org/struts/ActionMapping

- Bill
Jim Barrows wrote:
-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
Sent: Friday, September 03, 2004 10:08 AM
To: [EMAIL PROTECTED]
Subject: Re: ARRRGGGGHHHH!!! I'm being stupid again
The  in nested  applies to the ActionMapping 
object not the Action.

Oh that makes sense in a SCO kind of way...
Just so I can bookmark that info... where did you find it?

Jim Barrows wrote:
I'm trying to use the set-property tag in the struts-config 
file.  I know I'm being stupid, but what exactly is it?
It's not finding the property to set.
Okay if I have in my struts-config.xml:
type="com.sssc.shtuff.actions.LoanAppWizardAction" scope="session">





and this in my action class:
public class LoanAppWizardAction extends Action {
blah
   /**Read only property from inside this action that 
indicates what number is
* the last page.
*/
   private int maxNumberOfPages = 0;
Lots o' blah
   
   /**
* @return
*/
   public int getMaxNumberOfPages() {
   return maxNumberOfPages;
   }
   
   public void setMaxNumberOfPages(int i) {
   maxNumberOfPages = i;
   }
}
Then I should end up with maxNumberOfPages set to 2, and not:
The following exception was logged 
java.lang.NoSuchMethodException: Bean has no property named 
maxNumberOfPages

-
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]


RE: ARRRGGGGHHHH!!! I'm being stupid again....

2004-09-03 Thread Kris Schneider
Not sure if it's *explicitly* part of any official docs, but it can be inferred
from the struts-config DTD. The comment for  includes:

The "action" element describes an ActionMapping object...

The comment for  includes:

When the object representing the surrounding element is instantiated, the
accessor for the indicated property is called and passed the indicated value.

Quoting Jim Barrows <[EMAIL PROTECTED]>:

> > -Original Message-
> > From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
> > Sent: Friday, September 03, 2004 10:08 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: ARRR!!! I'm being stupid again
> > 
> > 
> > The  in nested  applies to the ActionMapping 
> > object not the Action.
> 
> Oh that makes sense in a SCO kind of way...
> 
> Just so I can bookmark that info... where did you find it?
> 
> > 
> > Jim Barrows wrote:
> > > I'm trying to use the set-property tag in the struts-config 
> > file.  I know I'm being stupid, but what exactly is it?
> > > It's not finding the property to set.
> > > 
> > > Okay if I have in my struts-config.xml:
> > >  > type="com.sssc.shtuff.actions.LoanAppWizardAction" scope="session">
> > > 
> > >   
> > > 
> > >   
> > >   
> > >   
> > > 
> > > 
> > > and this in my action class:
> > > public class LoanAppWizardAction extends Action {
> > > 
> > >   blah
> > > 
> > > /**Read only property from inside this action that 
> > indicates what number is
> > >  * the last page.
> > >  */
> > > private int maxNumberOfPages = 0;
> > > 
> > > Lots o' blah
> > > 
> > > /**
> > >  * @return
> > >  */
> > > public int getMaxNumberOfPages() {
> > > return maxNumberOfPages;
> > > }
> > > 
> > > public void setMaxNumberOfPages(int i) {
> > > maxNumberOfPages = i;
> > > }
> > > }
> > > Then I should end up with maxNumberOfPages set to 2, and not:
> > > The following exception was logged 
> > java.lang.NoSuchMethodException: Bean has no property named 
> > maxNumberOfPages

-- 
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech   <http://www.dotech.com/>

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



RE: ARRRGGGGHHHH!!! I'm being stupid again....

2004-09-03 Thread Jim Barrows
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
> Sent: Friday, September 03, 2004 10:08 AM
> To: [EMAIL PROTECTED]
> Subject: Re: ARRRGGGGHHHH!!! I'm being stupid again
> 
> 
> The  in nested  applies to the ActionMapping 
> object not the Action.

Oh that makes sense in a SCO kind of way...

Just so I can bookmark that info... where did you find it?

> 
> Jim Barrows wrote:
> > I'm trying to use the set-property tag in the struts-config 
> file.  I know I'm being stupid, but what exactly is it?
> > It's not finding the property to set.
> > 
> > Okay if I have in my struts-config.xml:
> >  type="com.sssc.shtuff.actions.LoanAppWizardAction" scope="session">
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > and this in my action class:
> > public class LoanAppWizardAction extends Action {
> > 
> > blah
> > 
> > /**Read only property from inside this action that 
> indicates what number is
> >  * the last page.
> >  */
> > private int maxNumberOfPages = 0;
> > 
> > Lots o' blah
> > 
> > /**
> >  * @return
> >  */
> > public int getMaxNumberOfPages() {
> > return maxNumberOfPages;
> > }
> > 
> > public void setMaxNumberOfPages(int i) {
> > maxNumberOfPages = i;
> > }
> > }
> > Then I should end up with maxNumberOfPages set to 2, and not:
> > The following exception was logged 
> java.lang.NoSuchMethodException: Bean has no property named 
> maxNumberOfPages
> 
> 
> -
> 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]



Re: ARRRGGGGHHHH!!! I'm being stupid again....

2004-09-03 Thread Martin Gainty
To quote Fawcette-
"It doesn't take much to be a bean. A class just needs a public constructor
that takes no arguments and get and set methods for each significant
property such that a property named foo will have getFoo() and setFoo()
methods. Technically, it must just support introspection, but that is
usually achieved by using the get and set naming convention. Here is a
simple Stuff bean for our experiments that has a String and an integer for
properties
public class Stuff {
   private int k = 1;
   private String s = "hello";

   public Stuff() {}
   public int getK() {return k;}
   public String getS(){return s;}
   public void setK(int i) {k=i;}
   public void setS(String t){s=t;}
};"

/*I noticed that I did not see your properties break out to a separate Bean
Classwith a public constructor as well as get/set for each property*/

HTH,
Martin
- Original Message -
From: "Jim Barrows" <[EMAIL PROTECTED]>
To: "Struts User List (E-mail)" <[EMAIL PROTECTED]>
Sent: Friday, September 03, 2004 1:02 PM
Subject: ARRR!!! I'm being stupid again


I'm trying to use the set-property tag in the struts-config file.  I know
I'm being stupid, but what exactly is it?
It's not finding the property to set.

Okay if I have in my struts-config.xml:









and this in my action class:
public class LoanAppWizardAction extends Action {

blah

/**Read only property from inside this action that indicates what number
is
 * the last page.
 */
private int maxNumberOfPages = 0;

Lots o' blah

/**
 * @return
 */
public int getMaxNumberOfPages() {
return maxNumberOfPages;
}

public void setMaxNumberOfPages(int i) {
maxNumberOfPages = i;
}
}
Then I should end up with maxNumberOfPages set to 2, and not:
The following exception was logged java.lang.NoSuchMethodException: Bean has
no property named maxNumberOfPages

-
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]



Re: ARRRGGGGHHHH!!! I'm being stupid again....

2004-09-03 Thread Bill Siggelkow
The  in nested  applies to the ActionMapping 
object not the Action.

Jim Barrows wrote:
I'm trying to use the set-property tag in the struts-config file.  I know I'm being 
stupid, but what exactly is it?
It's not finding the property to set.
Okay if I have in my struts-config.xml:






and this in my action class:
public class LoanAppWizardAction extends Action {
blah
/**Read only property from inside this action that indicates what number is
 * the last page.
 */
private int maxNumberOfPages = 0;
Lots o' blah

/**
 * @return
 */
public int getMaxNumberOfPages() {
return maxNumberOfPages;
}

public void setMaxNumberOfPages(int i) {
maxNumberOfPages = i;
}
}
Then I should end up with maxNumberOfPages set to 2, and not:
The following exception was logged java.lang.NoSuchMethodException: Bean has no property named maxNumberOfPages

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