RE: Form -> Bean conversion - Not getting values

2002-02-19 Thread James Mitchell
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

RE: Form -> Bean conversion

2002-02-18 Thread Christopher Cheng
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 ->

RE: Form -> Bean conversion - Not getting values

2002-02-18 Thread Santhosh Kumar
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

RE: Form -> Bean conversion - Not getting values

2002-02-16 Thread James Mitchell
--- ** 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

RE: Form -> Bean conversion - Not getting values

2002-02-15 Thread Santhosh Kumar
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

RE: Form -> Bean conversion

2002-02-15 Thread James Mitchell
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

Re: Form -> Bean conversion

2002-02-15 Thread CyberZombie
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

Re: Form -> Bean conversion

2002-02-15 Thread @Basebeans.com
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

Re: Form -> Bean conversion

2002-02-15 Thread Ted Husted
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

Re: Form -> Bean conversion

2002-02-15 Thread Louis Leung
conversion and then modify the > > web.xml file so that it references the updated ActionServlet? > > > > > > > > action > > > > com.ExtendedActionServlet > > > > ... > > > > > > > > - Original Messa

Re: Form -> Bean conversion

2002-02-15 Thread Louis Leung
> ... > > > > - 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 > > >

Re: Form -> Bean conversion

2002-02-15 Thread Ted Husted
> > > > action > > com.ExtendedActionServlet > > ... > > > > - Original Message - > From: "Louis Leung" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Friday, February 15, 2002 3:47

Re: Form -> Bean conversion

2002-02-15 Thread John M. Corro
;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

Re: Form -> Bean conversion

2002-02-15 Thread Louis Leung
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

RE: Form -> Bean conversion

2002-02-15 Thread MacKellar, Kimberly
: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

RE: Form -> Bean conversion

2002-02-15 Thread MacKellar, Kimberly
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

Re: Form -> Bean conversion

2002-02-15 Thread John M. Corro
> 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 > &

Re: Form -> Bean conversion

2002-02-15 Thread John M. Corro
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

RE: Form -> Bean conversion

2002-02-15 Thread MacKellar, Kimberly
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

Re: Form -> Bean conversion

2002-02-15 Thread John M. Corro
'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

RE: Form -> Bean conversion

2002-02-15 Thread MacKellar, Kimberly
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.