tchell
Software Engineer
Open-Tools.org
Home Phone (770) 822-3359
Cell Phone: (678) 910-8017
-Original Message-
From: Santhosh Kumar [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 5:50 AM
To: 'Struts Users Mailing List'
Subject: RE: Form -> Bean conversion - Not g
Why don't we use PropertyEditor?
http://java.sun.com/j2se/1.3/docs/api/java/beans/PropertyEditor.html
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 16, 2002 2:27 PM
To: 'Struts Users Mailing List'
Subject: RE: Form ->
ession (or request) in the
struts-config.xml.
Santhosh
> --
> From: James Mitchell
> Reply To: Struts Users Mailing List
> Sent: Sunday, February 17, 2002 4:45 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Form -> Bean convers
---
** Note to users of this code **
I did not complile or test any of this code, so use it at your own risk.
This is mainly to used as a guide to progamming
onfig :
Any clue ?
Thanks in advance
S
> --
> From: James Mitchell
> Reply To: Struts Users Mailing List
> Sent: Saturday, February 16, 2002 11:56 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Form -> Bean c
yberZombie [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 11:36 PM
To: Struts Users Mailing List
Subject: Re: Form -> Bean conversion
Here's a rudimentary wrapper tool. The commented out section is used
when wrapping for Struts 1.0.x -- 1.1 does a much better job there. I
sti
Here's a rudimentary wrapper tool. The commented out section is used
when wrapping for Struts 1.0.x -- 1.1 does a much better job there. I
still have hardcoded the file masks (I assume all VO's end in
Value.java). And I assume that all wrapped getters have corresponding
setters. What can I
Subject: Re: Form -> Bean conversion
From: Vic Cekvenich <[EMAIL PROTECTED]>
===
Same here. It is just easier to skip a layer.
Vic
Louis Leung wrote:
> I agree. That is really the point of the Action Form.
>
> But in the application I'm working on, the majority of
Hashmaps can be used in place of conventional properites with the
Nightly Build.
http://jguru.com/forums/view.jsp?EID=567079
Louis Leung wrote:
>
> I agree. That is really the point of the Action Form.
>
> But in the application I'm working on, the majority of the values in the value
> obje
conversion and then modify the
> > web.xml file so that it references the updated ActionServlet?
> >
> >
> >
> > action
> >
> > com.ExtendedActionServlet
> >
> > ...
> >
> >
> >
> > - Original Messa
> ...
>
>
>
> - Original Message -
> From: "Louis Leung" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, February 15, 2002 3:47 PM
> Subject: Re: Form -> Bean conversion
>
> >
>
>
>
> action
>
> com.ExtendedActionServlet
>
> ...
>
>
>
> - Original Message -
> From: "Louis Leung" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, February 15, 2002 3:47
;Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, February 15, 2002 3:47 PM
Subject: Re: Form -> Bean conversion
> yeah, but on your tag, your property should look something
like
>
> property="someBean.someProperty"
>
> then, what struts will do is
gt; getters/setters hardcoded into the ActionForm, won't that cause a
> compile-time error on the JSP?
>
> - Original Message -
> From: "MacKellar, Kimberly" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECT
:39 PM
To: Struts Users Mailing List
Subject: Re: Form -> Bean conversion
Also, forgot to askif "propertyOfBean" were of type 'java.util.Date' (or
any other non-string data type) have you found situations where you ran into
any conversion problems?
- Original Message
Subject: Re: Form -> Bean conversion
Very interesting
So in your example is 'propertyOfBean' exposed in 'nameOfBean' via a public
get method or simply as a public data member? In other words, if I were
just accessing the value via a scriptlet would I say
"nameOf
>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, February 15, 2002 3:22 PM
Subject: RE: Form -> Bean conversion
> You will have a getter and setter for the bean. Then in the jsp you will
> access the bean something like
>
>
> Kim
>
&
or "nameOfBean.propertyOfBean"
- Original Message -
From: "MacKellar, Kimberly" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, February 15, 2002 3:22 PM
Subject: RE: Form -> Bean conversion
> Yo
You will have a getter and setter for the bean. Then in the jsp you will
access the bean something like
Kim
-Original Message-
From: John M. Corro [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 3:18 PM
To: Struts Users Mailing List
Subject: Re: Form -> Bean convers
'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, February 15, 2002 2:54 PM
Subject: RE: Form -> Bean conversion
> I have instances of beans within the ActionForm and then access them with
> the name of the bean and the name of the property in the bean when
I have instances of beans within the ActionForm and then access them with
the name of the bean and the name of the property in the bean when using
them in the JSP. The only problem is having non-Strings in the bean. You
need to do some sort of conversion within the ActionForm to get around this.
21 matches
Mail list logo