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 -
--- 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
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
--- 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
Chase.
> http://farechase.yahoo.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
&g
--- 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
partmentAction:
>>> public String findById () throws Exception {
>>> this.dept = getDaoManager().getDeptDao().findById(this.getId());
>>> return SUCCESS;
>>> }
>>>
>>> Method fills dept object. also, getDept(
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
. 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
; 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
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
: 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(
?
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
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
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
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
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
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).
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
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
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] <[
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
< [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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-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
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
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
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
43 matches
Mail list logo