Re: [S2] form population problem

2007-05-23 Thread shadman
output: [EMAIL PROTECTED] basically, what I'd expect - a reference to the obj. So, as far as the beer goes, I agree. I do owe you one though ... shadman -- View this message in context: http://www.nabble.com/-S2--form-population-problem-tf3792422.html#a10764939 Sent from the Struts -

Re: [S2] form population problem

2007-05-23 Thread Dave Newton
--- shadman <[EMAIL PROTECTED]> wrote: > I am more than just a little embarrassed. I think if we all had a nickel for each time we've made a mistake like that and had it staring us in the face for a day or two we could buy enough beer to at least make us not care that we made a mistake like that a

Re: [S2] form population problem

2007-05-23 Thread shadman
private Department getDept() { return dept; } > private void setDept(Department department) { *dingdingding* Private, huh? ;) -- View this message in context: http://www.nabble.com/-S2--form-population-problem-tf3792422.html#a10764090 Sent from the Struts - User mailing list

Re: [S2] form population problem

2007-05-22 Thread Dave Newton
--- shadman <[EMAIL PROTECTED]> wrote: > private Department getDept() { return dept; } > private void setDept(Department department) { *dingdingding* Private, huh? ;) > label="Dept Name" > value="dept.deptName" > size="10" /> If dept (the

Re: [S2] form population problem

2007-05-22 Thread shadman
Chase. > http://farechase.yahoo.com/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > &g

Re: [S2] form population problem

2007-05-22 Thread Dave Newton
--- shadman <[EMAIL PROTECTED]> wrote: > The DepartmentAction retrieves the dept object from > DB, and has getters and setters for the domain "dept" > object in the action. > > This is the proper syntax; I do it all over the place. If the action has a getDept() and the dept has a getDeptId(), a

Re: [S2] form population problem

2007-05-22 Thread shadman
partmentAction: >>> public String findById () throws Exception { >>> this.dept = getDaoManager().getDeptDao().findById(this.getId()); >>> return SUCCESS; >>> } >>> >>> Method fills dept object. also, getDept(

Re: [S2] form population problem

2007-05-22 Thread Jeromy Evans
I'm not 100% sure of your intent as this line is a bit strange - trying to set the deptId to the deptName but anyway, the documentation on the wiki around the expressions for some tags is a bit confusing and I suspect the problem is that you need "%{ }" to explicitly identify the OGN

Re: [S2] form population problem

2007-05-22 Thread shadman
. also, getDept() & setDept() in action. > > edit_dept.jsp: > > > > ID: > > > > > > value="dept.deptName" size="10" /> > > > > > I have to be doing something simple wrong, I just don't se

[S2] form population problem

2007-05-21 Thread shadman
; setDept() in action. edit_dept.jsp: ID: I have to be doing something simple wrong, I just don't see it. shadman -- View this message in context: http://www.nabble.com/-S2--form-population-problem-tf3792422.html#a107

Re: Form population and locale

2007-01-22 Thread Hubert Rabago
Don't do it in the form's reset(). Accd. to the javadoc [1]: "In practice, the only properties that need to be reset are those which represent checkboxes on a session-scoped form." Hubert [1] http://struts.apache.org/1.x/apidocs/org/apache/struts/action/ActionForm.html On 1/20/07, Paul Bened

Re: Form population and locale

2007-01-20 Thread Paul Benedict
: Thu, 18 Jan 2007 09:52:57 -0600 Subject : Re: Form population and locale On 1/17/07, Zero <[EMAIL PROTECTED]> wrote: > Hi everybody, > > I use Struts 1.2.9 and I would like to know if there is any > way to link the user locale (available with > RequestUtils.getUserLocale(

Re: Form population and locale

2007-01-20 Thread Hubert Rabago
? Regard, Zero -- Initial Header --- From : "Hubert Rabago" <[EMAIL PROTECTED]> To : "Struts Users Mailing List" Cc : Date : Thu, 18 Jan 2007 09:52:57 -0600 Subject : Re: Form population and locale On 1/17/07, Zero <[EMAIL

Re: Form population and locale

2007-01-19 Thread André Faria
eader --- >From : [EMAIL PROTECTED] To : Struts Users Mailing List Cc : Date : Wed, 17 Jan 2007 16:26:15 +0100 Subject : Re: Form population and locale Hi, I use Struts 1.2.9 and I would like to know if there is any way to link the user locale (availa

Re: Form population and locale

2007-01-19 Thread Zero
List" Cc : Date : Thu, 18 Jan 2007 09:52:57 -0600 Subject : Re: Form population and locale On 1/17/07, Zero <[EMAIL PROTECTED]> wrote: > Hi everybody, > > I use Struts 1.2.9 and I would like to know if there is any > way to link the user locale (available with &

Re: Form population and locale

2007-01-19 Thread Zero
: Re: Form population and locale Hi, > I use Struts 1.2.9 and I would like to know if there is any > way to link the user locale (available with > RequestUtils.getUserLocale(HttRequest)) with the form > population process. > > In fact, I have many forms which have date field (wi

Re: Form population and locale

2007-01-18 Thread Hubert Rabago
On 1/17/07, Zero <[EMAIL PROTECTED]> wrote: Hi everybody, I use Struts 1.2.9 and I would like to know if there is any way to link the user locale (available with RequestUtils.getUserLocale(HttRequest)) with the form population process. In fact, I have many forms which have date field (wi

Re: Form population and locale

2007-01-17 Thread uni
Hi, > I use Struts 1.2.9 and I would like to know if there is any > way to link the user locale (available with > RequestUtils.getUserLocale(HttRequest)) with the form > population process. > > In fact, I have many forms which have date field (with the > java.util.Date type).

Form population and locale

2007-01-17 Thread Zero
Hi everybody, I use Struts 1.2.9 and I would like to know if there is any way to link the user locale (available with RequestUtils.getUserLocale(HttRequest)) with the form population process. In fact, I have many forms which have date field (with the java.util.Date type). I would format these

Re: Struts Form Population

2006-02-06 Thread [EMAIL PROTECTED]
From: Niall Pemberton [mailto: [EMAIL PROTECTED] To: user@struts.apache.org, [EMAIL PROTECTED] Date: Mon, 6 Feb 2006 15:39:49 + Subject: Re: Struts Form Population Indexed properties strictly speaking should be arrays - although inearlier JDK versions they worked with Lists as well - BeanUti

Re: Struts Form Population

2006-02-06 Thread Niall Pemberton
Indexed properties strictly speaking should be arrays - although in earlier JDK versions they worked with Lists as well - BeanUtils allows for lists or arrays. Collections don't have a position or index - so you can't have Collection backed index properties. Niall On 2/6/06, [EMAIL PROTECTED] <[

RE: Struts Form Population

2006-02-06 Thread [EMAIL PROTECTED]
feel free to share. --- On Mon 02/06, Garner, Shawn < [EMAIL PROTECTED] > wrote: From: Garner, Shawn [mailto: [EMAIL PROTECTED] To: user@struts.apache.org Date: Mon, 6 Feb 2006 09:22:23 -0600 Subject: RE: Struts Form Population I believe it is the get method.So if you're property

Re: Struts Form Population

2006-02-06 Thread [EMAIL PROTECTED]
< [EMAIL PROTECTED] > wrote: From: Frank W. Zammetti [mailto: [EMAIL PROTECTED] To: user@struts.apache.org Date: Sat, 04 Feb 2006 08:46:38 -0500 Subject: Re: Struts Form Population Hi Paul,The question is really what will BeanUtils do because Struts uses BeanUtils to populate the form.Looking

RE: Struts Form Population

2006-02-06 Thread Garner, Shawn
tates; } Shawn -Original Message- From: Paul Benedict [mailto:[EMAIL PROTECTED] Sent: Saturday, February 04, 2006 12:37 AM To: user@struts.apache.org Subject: Struts Form Population When struts auto populates the form, does it look for set methods? And does it check that the method

RE: [SPAM] Re: Struts Form Population

2006-02-05 Thread Jitendra Kumar
I didn't receive any content in the mail. Please re send you mail. thanx -Original Message- From: Dakota Jack [mailto:[EMAIL PROTECTED] Sent: Sunday, February 05, 2006 11:36 AM To: Struts Users Mailing List Subject: [SPAM] Re: Struts Form Popul

Re: Struts Form Population

2006-02-04 Thread Dakota Jack
You can do what Frank suggests, which I agree with in total, or you can just try it and see what happens. Probably is quicker to try it and see than to ask on this list. On 2/3/06, Paul Benedict <[EMAIL PROTECTED]> wrote: > > When struts auto populates the form, does it look for set methods? > An

Re: Struts Form Population

2006-02-04 Thread Frank W. Zammetti
Hi Paul, The question is really what will BeanUtils do because Struts uses BeanUtils to populate the form. Looking at the docs, I see this: java.lang.IllegalAccessException - if the caller does not have access to the property accessor method java.lang.IllegalArgumentException - if bean or n

Struts Form Population

2006-02-03 Thread Paul Benedict
When struts auto populates the form, does it look for set methods? And does it check that the methods are public? For instance, if the "foo" parameter comes in and my setFoo method is protected or private, will it ignore it? Paul - Bring

MultipartRequest and form population after validation failed

2005-08-05 Thread Franz-Josef Herpers
Hi, I've a little problem with form population after a multipart request's file size exceeded. What I do is testing the file size of an uploaded file in the validate method of a form: public ActionErrors validate(ActionMapping mapping, HttpServ

Re: Tomcat Struts form population problem in PRODUCTION

2005-06-07 Thread Adam Hardy
m is within a page that was produced as the result of the first ever session request to a url on the server (phew!). Original Message Follows From: Adam Hardy <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: Tomcat Struts

Re: Tomcat Struts form population problem in PRODUCTION

2005-06-07 Thread Mark Benussi
truts Users Mailing List Subject: Re: Tomcat Struts form population problem in PRODUCTION Date: Tue, 07 Jun 2005 12:22:13 +0300 Mark Benussi wrote: There is no security implemented. Is it possible that the JSP is not session aware and thus a session is not created to carry the fo

Re: Tomcat Struts form population problem in PRODUCTION

2005-06-07 Thread Emmanouil Batsis
Mark Benussi wrote: There is no security implemented. Is it possible that the JSP is not session aware and thus a session is not created to carry the form (and it's fields?)? - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Tomcat Struts form population problem in PRODUCTION

2005-06-07 Thread Mark Benussi
url on the server (phew!). Original Message Follows From: Adam Hardy <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: Tomcat Struts form population problem in PRODUCTION Date: Tue, 07 Jun 2005 09:03:32 +0100 What sort

Re: Tomcat Struts form population problem in PRODUCTION

2005-06-07 Thread Adam Hardy
What sort of security are you using? Container-managed? SSL? And what exactly do you mean? Which values disappear? The login form fields? On 07/06/05 07:08 Mark Benussi wrote: I am submitting a Struts form in my live application but the values seem to be getting lost between my browser and th

Tomcat Struts form population problem in PRODUCTION

2005-06-06 Thread Mark Benussi
I am submitting a Struts form in my live application but the values seem to be getting lost between my browser and the population of my ActionForm. This only happens if the login page is the first request of the session. If you click around on the site (even once) and then submit the form the v

RE: Form Population

2004-07-25 Thread Kataria, Satish
Hi, I am not very clear what the problem statement is. Can you elaborate it. Thanks, Satish -Original Message- From: Isaias Barroso [mailto:[EMAIL PROTECTED] Sent: Friday, July 23, 2004 5:25 PM To: [EMAIL PROTECTED] Subject: Form Population Hi all, I've a ActionForm that h

Form Population

2004-07-23 Thread Isaias Barroso
Hi all, I've a ActionForm that have 3 fields. Integer code; String description; Integer status; I would like that when this fields wasn't filled on the ActionForm wasn't populated with default values, to Wrapper classes, I put convertNull=true on action properties on web.xml, exist a equivalen

Form Population

2004-07-22 Thread Isaias Barroso
Hi all, I've a ActionForm that have 3 fields. Integer code; String description; Integer status; I would like that when this fields wasn't filled on the ActionForm wasn't populated with default values, to Wrapper classes, I put convertNull=true on action properties on web.xml, exist a equivale

RE: R: R: Turning OFF auto form population?

2004-05-19 Thread None None
Ok, good enough. If that's the only way than that's that. Thanks for the replies! From: "Amleto Di Salle" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL

R: R: Turning OFF auto form population?

2004-05-19 Thread Amleto Di Salle
-Messaggio originale- Da: None None [mailto:[EMAIL PROTECTED] Inviato: mercoledì 19 maggio 2004 20.08 A: [EMAIL PROTECTED] Oggetto: RE: R: Turning OFF auto form population? That's interesting, I knew Struts was designed to be extended in a number of places, I hadn't thought of do

RE: R: Turning OFF auto form population?

2004-05-19 Thread None None
t auto-populate it on the way in. That's still i think the ideal situation for me, if it's possible, so the question still stands. From: "Amleto Di Salle" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'Struts Us

R: Turning OFF auto form population?

2004-05-19 Thread Amleto Di Salle
to use the extended RequestProcessor version. BR /Amleto -Messaggio originale- Da: None None [mailto:[EMAIL PROTECTED] Inviato: mercoledì 19 maggio 2004 19.33 A: [EMAIL PROTECTED] Oggetto: Turning OFF auto form population? Hello all... Is it possible to turn OFF Struts auto-populating an

Turning OFF auto form population?

2004-05-19 Thread None None
Hello all... Is it possible to turn OFF Struts auto-populating an ActionForm with the paramters from the client? The reason I ask is that I'm converting a non-Struts app over, and in this app, because it was using a homegrown framework, we have value object classes which are basically exactly w