RE: FormBean question...

2003-09-16 Thread alanbrown
And it's stranger than that also.  If I come to the addContact page From
the addCompany page then any fields I pre-fill in my addContactForm bean
are ignored.  But if I come directly to the addContact page then the
prefilled fields are as I'd expect.  It's as though I can't change the
formBean that's being used by struts once it's placed in request scope.
That is to say that once the addCompanyForm bean is used to add the
company to the database, I don't appear able to replace it with an
addContactForm bean to populate the fields I want to populate.





-Original Message-
From: alanbrown [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 16, 2003 10:55 AM
To: 'Struts Users Mailing List'
Subject: RE: FormBean question...

Really?  That seems strange.  I thought that the reason we name the
formbean in the strutsconfig file is so struts knows which bean it is
using to populate the form fields.  Am I mistaken in that?  How does
Struts decide which bean is being used to populate the fields?  I've
specifically replaced the Form in the Action class that prepares the
form so it contains the values I want.  But Struts seems to ignore those
values and use the ones in the bean from the last page I used.

I've looked into the generated java file that struts produces and I find
this (which sheds no light on anything as far as I'm concerned...

Here is the code that is laying out the Html for the description
field...

  out.write("\r\n
");
if (_jspx_meth_html_textarea_0(_jspx_th_html_form_0,
pageContext))
  return true;
out.write("\r\n");

and here is the method that's referred to

private boolean _jspx_meth_html_textarea_0(javax.servlet.jsp.tagext.Tag
_jspx_th_html_form_0, javax.servlet.jsp.PageContext pageContext)
  throws Throwable {
JspWriter out = pageContext.getOut();
/*   html:textarea  */
org.apache.struts.taglib.html.TextareaTag _jspx_th_html_textarea_0 =
(org.apache.struts.taglib.html.TextareaTag)
_jspx_tagPool_html_textarea_rows_property_cols.get(org.apache.struts.tag
lib.html.TextareaTag.class);
_jspx_th_html_textarea_0.setPageContext(pageContext);
_jspx_th_html_textarea_0.setParent(_jspx_th_html_form_0);
_jspx_th_html_textarea_0.setProperty("description");
_jspx_th_html_textarea_0.setCols("60");
_jspx_th_html_textarea_0.setRows("3");
int _jspx_eval_html_textarea_0 =
_jspx_th_html_textarea_0.doStartTag();
if (_jspx_th_html_textarea_0.doEndTag() ==
javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
  return true;
 
_jspx_tagPool_html_textarea_rows_property_cols.reuse(_jspx_th_html_texta
rea_0);
return false;
  }

I don't see where the value is getting loaded into this field or where
it might be coming from.  I've searched through the file for any
setValue() methods but there aren't any (I thought there might be based
on the javadocs).

Can anyone explain what happens behind the scenes when I'm trying to
direct struts to discard the old formbean and use a new one in my
preparatory Action class?

alan


-Original Message-
From: Mainguy, Mike [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 16, 2003 4:35 AM
To: 'Struts Users Mailing List'
Subject: RE: FormBean question...

This is by design.  If you want to ensure this will not happen, you need
to
set all the values to "" or null beforehand for fields that should be
empty.
The short answer is "change the field name".  Especially if you are
going to
store data in a form in the session you will have a big mess on your
hands
if you have overlapping field names in multiple forms.

My $.02...


-Original Message-
From: alanbrown [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 16, 2003 2:18 AM
To: [EMAIL PROTECTED]
Subject: FormBean question...


I am using 2 different beans to populate 2 forms on 2 pages.  However
some
of the fields have the same names, as both customers and contacts have
addresses and both companies and contacts have descriptions and notes
associated with them.  After entering a company the user is prompted to
enter some details of a person within that company with, hopefully, some
of
the form already filled out (the address fields have default values for
instance taken from the company info that was just entered).  However
the
description field and the notes field are also filled out with the
values
entered in the addCompany.jsp page and this should not happen.
 
This seems very strange as I've got 2 different formBeans used to
populate
the fields.  Here are the relevant parts of the strutsconfig file.
 




 
and.
 







 
As you can see they are using different types of form so I find it very
odd
that the description and note fields are pre

RE: FormBean question...

2003-09-16 Thread alanbrown
Really?  That seems strange.  I thought that the reason we name the
formbean in the strutsconfig file is so struts knows which bean it is
using to populate the form fields.  Am I mistaken in that?  How does
Struts decide which bean is being used to populate the fields?  I've
specifically replaced the Form in the Action class that prepares the
form so it contains the values I want.  But Struts seems to ignore those
values and use the ones in the bean from the last page I used.

I've looked into the generated java file that struts produces and I find
this (which sheds no light on anything as far as I'm concerned...

Here is the code that is laying out the Html for the description
field...

  out.write("\r\n
");
if (_jspx_meth_html_textarea_0(_jspx_th_html_form_0,
pageContext))
  return true;
out.write("\r\n");

and here is the method that's referred to

private boolean _jspx_meth_html_textarea_0(javax.servlet.jsp.tagext.Tag
_jspx_th_html_form_0, javax.servlet.jsp.PageContext pageContext)
  throws Throwable {
JspWriter out = pageContext.getOut();
/*   html:textarea  */
org.apache.struts.taglib.html.TextareaTag _jspx_th_html_textarea_0 =
(org.apache.struts.taglib.html.TextareaTag)
_jspx_tagPool_html_textarea_rows_property_cols.get(org.apache.struts.tag
lib.html.TextareaTag.class);
_jspx_th_html_textarea_0.setPageContext(pageContext);
_jspx_th_html_textarea_0.setParent(_jspx_th_html_form_0);
_jspx_th_html_textarea_0.setProperty("description");
_jspx_th_html_textarea_0.setCols("60");
_jspx_th_html_textarea_0.setRows("3");
int _jspx_eval_html_textarea_0 =
_jspx_th_html_textarea_0.doStartTag();
if (_jspx_th_html_textarea_0.doEndTag() ==
javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
  return true;
 
_jspx_tagPool_html_textarea_rows_property_cols.reuse(_jspx_th_html_texta
rea_0);
return false;
  }

I don't see where the value is getting loaded into this field or where
it might be coming from.  I've searched through the file for any
setValue() methods but there aren't any (I thought there might be based
on the javadocs).

Can anyone explain what happens behind the scenes when I'm trying to
direct struts to discard the old formbean and use a new one in my
preparatory Action class?

alan


-Original Message-
From: Mainguy, Mike [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 16, 2003 4:35 AM
To: 'Struts Users Mailing List'
Subject: RE: FormBean question...

This is by design.  If you want to ensure this will not happen, you need
to
set all the values to "" or null beforehand for fields that should be
empty.
The short answer is "change the field name".  Especially if you are
going to
store data in a form in the session you will have a big mess on your
hands
if you have overlapping field names in multiple forms.

My $.02...


-Original Message-----
From: alanbrown [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 16, 2003 2:18 AM
To: [EMAIL PROTECTED]
Subject: FormBean question...


I am using 2 different beans to populate 2 forms on 2 pages.  However
some
of the fields have the same names, as both customers and contacts have
addresses and both companies and contacts have descriptions and notes
associated with them.  After entering a company the user is prompted to
enter some details of a person within that company with, hopefully, some
of
the form already filled out (the address fields have default values for
instance taken from the company info that was just entered).  However
the
description field and the notes field are also filled out with the
values
entered in the addCompany.jsp page and this should not happen.
 
This seems very strange as I've got 2 different formBeans used to
populate
the fields.  Here are the relevant parts of the strutsconfig file.
 




 
and.
 







 
As you can see they are using different types of form so I find it very
odd
that the description and note fields are pre populated as well as the
address.  The way I've tried to populate the fields I want pre-polulated
is
by having the following code at the end of my addCompanyAction class
 
ContactForm contactForm = new ContactForm(new
Integer(companyId).toString(), companyForm.getAddress());
request.setAttribute("addContactForm", contactForm);
return mapping.findForward("Success");
 
and then, when forwarded to the prepareAddContactAction class, have the
following code.
 
public ActionForward executeAction(ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response,
   

RE: FormBean question...

2003-09-16 Thread Mainguy, Mike
This is by design.  If you want to ensure this will not happen, you need to
set all the values to "" or null beforehand for fields that should be empty.
The short answer is "change the field name".  Especially if you are going to
store data in a form in the session you will have a big mess on your hands
if you have overlapping field names in multiple forms.

My $.02...


-Original Message-
From: alanbrown [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 16, 2003 2:18 AM
To: [EMAIL PROTECTED]
Subject: FormBean question...


I am using 2 different beans to populate 2 forms on 2 pages.  However some
of the fields have the same names, as both customers and contacts have
addresses and both companies and contacts have descriptions and notes
associated with them.  After entering a company the user is prompted to
enter some details of a person within that company with, hopefully, some of
the form already filled out (the address fields have default values for
instance taken from the company info that was just entered).  However the
description field and the notes field are also filled out with the values
entered in the addCompany.jsp page and this should not happen.
 
This seems very strange as I've got 2 different formBeans used to populate
the fields.  Here are the relevant parts of the strutsconfig file.
 




 
and.
 







 
As you can see they are using different types of form so I find it very odd
that the description and note fields are pre populated as well as the
address.  The way I've tried to populate the fields I want pre-polulated is
by having the following code at the end of my addCompanyAction class
 
ContactForm contactForm = new ContactForm(new
Integer(companyId).toString(), companyForm.getAddress());
request.setAttribute("addContactForm", contactForm);
return mapping.findForward("Success");
 
and then, when forwarded to the prepareAddContactAction class, have the
following code.
 
public ActionForward executeAction(ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response,
   UserContainer container) {
ContactForm contactForm =
(ContactForm)request.getAttribute("addContactForm");
//if "addContactForm" is not null in the request scope then we
should use it to populate our form.
form = contactForm == null? form : contactForm;
((ContactForm)form).setContactStatus("open");
return mapping.findForward("next");
   }
 
But somehow I'm getting all the companyForm's fields populating the
contact form.   IE. I put a company description in the addCompany jsp
and it shows up as a contact description in the addContact jsp, and I don't
pass the description field to the contactForm.
 
Is there something I'm not understanding about the struts architecture?
 
Help is, of course, greatly appreciated.
 
alan



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


This message and its contents (to include attachments) are the property of Kmart 
Corporation (Kmart) and may contain confidential and proprietary information. You are 
hereby notified that any disclosure, copying, or distribution of this message, or the 
taking of any action based on information contained herein is strictly prohibited. 
Unauthorized use of information contained herein may subject you to civil and criminal 
prosecution and penalties. If you are not the intended recipient, you should delete 
this message immediately.



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



FormBean question...

2003-09-15 Thread alanbrown
I am using 2 different beans to populate 2 forms on 2 pages.  However
some of the fields have the same names, as both customers and contacts
have addresses and both companies and contacts have descriptions and
notes associated with them.  After entering a company the user is
prompted to enter some details of a person within that company with,
hopefully, some of the form already filled out (the address fields have
default values for instance taken from the company info that was just
entered).  However the description field and the notes field are also
filled out with the values entered in the addCompany.jsp page and this
should not happen.
 
This seems very strange as I've got 2 different formBeans used to
populate the fields.  Here are the relevant parts of the strutsconfig
file.
 




 
and.
 







 
As you can see they are using different types of form so I find it very
odd that the description and note fields are pre populated as well as
the address.  The way I've tried to populate the fields I want
pre-polulated is by having the following code at the end of my
addCompanyAction class
 
ContactForm contactForm = new ContactForm(new
Integer(companyId).toString(), companyForm.getAddress());
request.setAttribute("addContactForm", contactForm);
return mapping.findForward("Success");
 
and then, when forwarded to the prepareAddContactAction class, have the
following code.
 
public ActionForward executeAction(ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response,
   UserContainer container) {
ContactForm contactForm =
(ContactForm)request.getAttribute("addContactForm");
//if "addContactForm" is not null in the request scope then we
should use it to populate our form.
form = contactForm == null? form : contactForm;
((ContactForm)form).setContactStatus("open");
return mapping.findForward("next");
   }
 
But somehow I'm getting all the companyForm's fields populating the
contact form.   IE. I put a company description in the addCompany jsp
and it shows up as a contact description in the addContact jsp, and I
don't pass the description field to the contactForm.
 
Is there something I'm not understanding about the struts architecture?
 
Help is, of course, greatly appreciated.
 
alan



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



[Newbie]: JSP-Formbean question

2002-09-20 Thread MULLAGIRI Madhavi

Hi,

I need to display multiple records (results of a search), and in each record
I want to set attribute A based on another attribute B from the same record.
I have a taglib available for text fields where one of the properties
accepts attribute B to facilitate the logic to set Attribute A (based on
arrtibute B).
But now, how do I gain a handle on the Attribute B in the logic:iterate ?
I would ideally like to have <%=formbean.getAttributeB()%>
But where would I initialize it ?

Madhavi



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




Re: [FormBean] Question concerning memory / casting

2002-09-13 Thread Eddie Bush

I would think that both should be equally performant.  However, I find 
myself doing things the first way because I:
* don't have to type so much.
* am inherently "lazy" (closest-path kind of lazy).
* think it's a lot more understandable when you're reading it later.
* the () pairs can become cumbersome sometimes if they become 
numerous and you haven't had enough coffee yet ;-)

Regards,

Eddie

Michael Delamere wrote:

>oops, of course I did :-)
>
>so what I mean was:
>
> 1)
> ProductFB prodFB = (ProductFB)form;
> prodFB.getName();
> prodFB.getDescription();
> prodFB.getPrice();
> prodFB.getPackaging();
> prodFB.getAttributes();
>
> 2)
>((ProductFB)form).getName();
>((ProductFB)form).getDescription();
>((ProductFB)form).getPrice();
>((ProductFB)form).getPackaging();
>((ProductFB)form).getAttributes();
>
>Thanks!
>



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




RE: [FormBean] Question concerning memory / casting

2002-09-13 Thread Andrew Hill

Yes come to think of it, references could be a compile time thing, with just
the objects themselves having a runtime effect.

-Original Message-
From: Dave Derry [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 13, 2002 19:12
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: [FormBean] Question concerning memory / casting


Agree with your assesment re: 1 should be ProductFB prodFB =
(ProductFB)form;
As written I wouldn't expect to get much usefull info. ;-}

I don't understand why you think 2 would be more efficient tho'. In 1,
prodFB is merely an alias for form. I wouldn't expect any runtime
difference. But since 1 requires less typing, I would expect it to be more
development time efficient. ;-)


- Original Message -
From: "Andrew Hill" <[EMAIL PROTECTED]>


> Ummm. In (1) did you mean to say ProductFB prodFB = (ProductFB)form;
> ???
>
> If you did then I would have thought the second more runtime efficient (I
> could well be wrong of course. Will be intersting to see what others say),
> though I prefer the first as its easier to read, maintain, and write :-)
>
> -Original Message-
> From: Michael Delamere [mailto:[EMAIL PROTECTED]]
>
> Hi,
>
> I´ve noticed that some of the developers here (in my company) are
> programming in a style where I´m not sure if its clean or maybe even not
> very good in performance.  I would like to address this issue, but as you
> know, it´s a bit impossible if you yourself do not know any better!
>
> Please don´t flame because of the fact that this isn´t 100% a struts
> specific question!
>
> Scenario:
>
> The are two ways of retrieving data out of my form bean:
>
> 1)
> ProductFB prodFB = new ProductFB();
> prodFB.getName();
> prodFB.getDescription();
> prodFB.getPrice();
> prodFB.getPackaging();
> prodFB.getAttributes();
>
> 2)
> ((ProductFB)form).getName();
> ((ProductFB)form).getDescription();
> ((ProductFB)form).getPrice();
> ((ProductFB)form).getPackaging();
> ((ProductFB)form).getAttributes();
>
>
> The latter is the one that I have seen being used in various classes now.
I
> personally don´t like this one and wanted to know if there are possibly
any
> other implication like memory or casting issues.
>
> You´re help would be VERY appreciated!
>
> Thanks,
>
> Michael



--
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: [FormBean] Question concerning memory / casting

2002-09-13 Thread Dave Derry

Agree with your assesment re: 1 should be ProductFB prodFB =
(ProductFB)form;
As written I wouldn't expect to get much usefull info. ;-}

I don't understand why you think 2 would be more efficient tho'. In 1,
prodFB is merely an alias for form. I wouldn't expect any runtime
difference. But since 1 requires less typing, I would expect it to be more
development time efficient. ;-)


- Original Message -
From: "Andrew Hill" <[EMAIL PROTECTED]>


> Ummm. In (1) did you mean to say ProductFB prodFB = (ProductFB)form;
> ???
>
> If you did then I would have thought the second more runtime efficient (I
> could well be wrong of course. Will be intersting to see what others say),
> though I prefer the first as its easier to read, maintain, and write :-)
>
> -Original Message-
> From: Michael Delamere [mailto:[EMAIL PROTECTED]]
>
> Hi,
>
> I´ve noticed that some of the developers here (in my company) are
> programming in a style where I´m not sure if its clean or maybe even not
> very good in performance.  I would like to address this issue, but as you
> know, it´s a bit impossible if you yourself do not know any better!
>
> Please don´t flame because of the fact that this isn´t 100% a struts
> specific question!
>
> Scenario:
>
> The are two ways of retrieving data out of my form bean:
>
> 1)
> ProductFB prodFB = new ProductFB();
> prodFB.getName();
> prodFB.getDescription();
> prodFB.getPrice();
> prodFB.getPackaging();
> prodFB.getAttributes();
>
> 2)
> ((ProductFB)form).getName();
> ((ProductFB)form).getDescription();
> ((ProductFB)form).getPrice();
> ((ProductFB)form).getPackaging();
> ((ProductFB)form).getAttributes();
>
>
> The latter is the one that I have seen being used in various classes now.
I
> personally don´t like this one and wanted to know if there are possibly
any
> other implication like memory or casting issues.
>
> You´re help would be VERY appreciated!
>
> Thanks,
>
> Michael



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




Re: [FormBean] Question concerning memory / casting

2002-09-13 Thread Michael Delamere

oops, of course I did :-)

so what I mean was:

 1)
 ProductFB prodFB = (ProductFB)form;
 prodFB.getName();
 prodFB.getDescription();
 prodFB.getPrice();
 prodFB.getPackaging();
 prodFB.getAttributes();

 2)
((ProductFB)form).getName();
((ProductFB)form).getDescription();
((ProductFB)form).getPrice();
((ProductFB)form).getPackaging();
((ProductFB)form).getAttributes();

Thanks!

- Original Message -
From: "Andrew Hill" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, September 13, 2002 12:52 PM
Subject: RE: [FormBean] Question concerning memory / casting


> Ummm. In (1) did you mean to say ProductFB prodFB = (ProductFB)form;
> ???
>
> If you did then I would have thought the second more runtime efficient (I
> could well be wrong of course. Will be intersting to see what others say),
> though I prefer the first as its easier to read, maintain, and write :-)
>
> -Original Message-
> From: Michael Delamere [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 13, 2002 19:00
> To: Struts Users Mailing List
> Subject: [FormBean] Question concerning memory / casting
>
>
> Hi,
>
> I´ve noticed that some of the developers here (in my company) are
> programming in a style where I´m not sure if its clean or maybe even not
> very good in performance.  I would like to address this issue, but as you
> know, it´s a bit impossible if you yourself do not know any better!
>
> Please don´t flame because of the fact that this isn´t 100% a struts
> specific question!
>
> Scenario:
>
> The are two ways of retrieving data out of my form bean:
>
> 1)
> ProductFB prodFB = new ProductFB();
> prodFB.getName();
> prodFB.getDescription();
> prodFB.getPrice();
> prodFB.getPackaging();
> prodFB.getAttributes();
>
> 2)
> ((ProductFB)form).getName();
> ((ProductFB)form).getDescription();
> ((ProductFB)form).getPrice();
> ((ProductFB)form).getPackaging();
> ((ProductFB)form).getAttributes();
>
>
> The latter is the one that I have seen being used in various classes now.
I
> personally don´t like this one and wanted to know if there are possibly
any
> other implication like memory or casting issues.
>
> You´re help would be VERY appreciated!
>
> Thanks,
>
> Michael
>
>
>
> --
> 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]>




RE: [FormBean] Question concerning memory / casting

2002-09-13 Thread Andrew Hill

Ummm. In (1) did you mean to say ProductFB prodFB = (ProductFB)form;
???

If you did then I would have thought the second more runtime efficient (I
could well be wrong of course. Will be intersting to see what others say),
though I prefer the first as its easier to read, maintain, and write :-)

-Original Message-
From: Michael Delamere [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 13, 2002 19:00
To: Struts Users Mailing List
Subject: [FormBean] Question concerning memory / casting


Hi,

I´ve noticed that some of the developers here (in my company) are
programming in a style where I´m not sure if its clean or maybe even not
very good in performance.  I would like to address this issue, but as you
know, it´s a bit impossible if you yourself do not know any better!

Please don´t flame because of the fact that this isn´t 100% a struts
specific question!

Scenario:

The are two ways of retrieving data out of my form bean:

1)
ProductFB prodFB = new ProductFB();
prodFB.getName();
prodFB.getDescription();
prodFB.getPrice();
prodFB.getPackaging();
prodFB.getAttributes();

2)
((ProductFB)form).getName();
((ProductFB)form).getDescription();
((ProductFB)form).getPrice();
((ProductFB)form).getPackaging();
((ProductFB)form).getAttributes();


The latter is the one that I have seen being used in various classes now.  I
personally don´t like this one and wanted to know if there are possibly any
other implication like memory or casting issues.

You´re help would be VERY appreciated!

Thanks,

Michael



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




[FormBean] Question concerning memory / casting

2002-09-13 Thread Michael Delamere

Hi,

I´ve noticed that some of the developers here (in my company) are
programming in a style where I´m not sure if its clean or maybe even not
very good in performance.  I would like to address this issue, but as you
know, it´s a bit impossible if you yourself do not know any better!

Please don´t flame because of the fact that this isn´t 100% a struts
specific question!

Scenario:

The are two ways of retrieving data out of my form bean:

1)
ProductFB prodFB = new ProductFB();
prodFB.getName();
prodFB.getDescription();
prodFB.getPrice();
prodFB.getPackaging();
prodFB.getAttributes();

2)
((ProductFB)form).getName();
((ProductFB)form).getDescription();
((ProductFB)form).getPrice();
((ProductFB)form).getPackaging();
((ProductFB)form).getAttributes();


The latter is the one that I have seen being used in various classes now.  I
personally don´t like this one and wanted to know if there are possibly any
other implication like memory or casting issues.

You´re help would be VERY appreciated!

Thanks,

Michael



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