i have a form with an indexed property. i wasn't able to get any data
out of the form. i could see the data in the request parameters, but
the data wasn't in the form bean.
in an effort to diagnose, i made an action to populate data into the
form. not only was i able to populate data into
more info:
it turns out that the data i was seeing in the form bean was the data
that i pre-populated -- data from the form is NOT making in into form
bean.
or, more accurately, the INDEXED data is not making it into the form
bean. the action property is getting set properly.
does anyone
ok, i think i have it: in the jsp, the id attribute of iterator tag has
to match the name of the indexed property of the form bean.
-- mike
Michael Muller wrote:
more info:
it turns out that the data i was seeing in the form bean was the data
that i pre-populated -- data from the form is
-
Von: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 25. Februar 2003 10:02
An: Hirschmann, Bernhard
Betreff: Re: HELP - SOS - Single Form Bean Problem
hi again :)
I went through the tutorials, every time the sope is set to session, and
same form bean is used.
i have
, 2003 7:50 PM
Subject: RE: HELP - SOS - Single Form Bean Problem
What is the symptom that you are seeing that makes you believe that a new
object is being instantiated for each action?
Sri
P.S.
You will probably get a more prompt response by posting to struts-user.
-Original Message
Has anyone used a single form bean for multiple jsps?
I am trying to use it and have set form scope as session in my action
declaration in config-struts file
worst part is, for every jsp itz creating a new form bean ?
whatz the catch, can anyone help me in this ?
to as 'fruit'.
Sri
-Original Message-
From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 6:34 AM
To: Struts Users Mailing List
Subject: HELP - SOS - Single Form Bean Problem
Has anyone used a single form bean for multiple jsps?
I am trying to use it and have set
Hi all,
I have a form bean which has two sets of setter and getter methods
getValue1(), getId1(), getValue2(), get Id2().
I explicitly call the set methods by passing two vectors because i want
the respective vectors to be available to me in the jsp. Now when struts
calls the get methods when
Hello all I'm facing a problem and I want to get advices from you
I have three bean class that are extending from the same base class
the base class is declared as abstract
Now I want to create three action forms for validating the informations corresponding
to each of these beans.
For this
Hi Tim hurray!
just for your amusement
The other day I added some buttons to a form the setter methods in the form
bean weren't being called when the buttons were pressed. I checked checked. I
copied button code from another jsp/form/action that worked. I still couldn't
get my new code to
Right, I'm back (finally!)
I narrowed the problem down to a struts-config problem. I deleted
everything from struts-config that wasn't related to the one page that I was
having problems with. I then found that the page would work, and not give
me the getter missing error.
So went back to my
if you can't solve it post the whole lot!
--- Tim Sawyer [EMAIL PROTECTED] wrote:
KeithBacon [EMAIL PROTECTED] wrote :
does the form work OK if you remove dateOfBirth but leave the
other form fields?
Nope. I only have two fields on the form, and if I remove date of birth it
complains
Sawyer
Subject: Re: Form Bean problem
if you can't solve it post the whole lot!
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
)]._ah._rad(Unknown Source)
Is this something obvious I've done wrong?
Tim.
-Original Message-
From: Sarah Farrell [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 9:54 PM
To: Struts Users Mailing List
Subject: Re: Form Bean problem
The error sounds like it is referring
(){return dob;}
}
so if you implement this it should work
-Ursprüngliche Nachricht-
Von: Tim Sawyer [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 26. Februar 2002 11:50
An: [EMAIL PROTECTED]
Cc: Tim Sawyer; [EMAIL PROTECTED]
Betreff: Re: Form Bean problem
Nope, same error. It seems
]
Cc: Tim Sawyer [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, February 26, 2002 11:50 AM
Subject: Re: Form Bean problem
Nope, same error. It seems to be in the html library somewhere.
javax.servlet.jsp.JspException: No getter method for property dob of bean
]
To: amp;lang=en[EMAIL PROTECTED]
Cc: Tim Sawyer ;amp;lang=en[EMAIL PROTECTED];
amp;lang=en[EMAIL PROTECTED]
Sent: Tuesday, February 26, 2002 11:50 AM
Subject: Re: Form Bean problem
Nope, same error. It seems to be in the html library somewhere.
javax.servlet.jsp.JspException
PROTECTED]
Cc: Tim Sawyer ;amp;lang=en[EMAIL PROTECTED];
amp;lang=en[EMAIL PROTECTED]
Sent: Tuesday, February 26, 2002 11:50 AM
Subject: Re: Form Bean problem
Nope, same error. It seems to be in the html library somewhere.
javax.servlet.jsp.JspException: No getter method for property
;lang=en[EMAIL PROTECTED];
amp;lang=enamp;lang=en[EMAIL PROTECTED]
Sent: Tuesday, February 26, 2002 11:50 AM
Subject: Re: Form Bean problem
Nope, same error. It seems to be in the html library somewhere.
javax.servlet.jsp.JspException: No getter method for property dob
]
Sent: Tuesday, February 26, 2002 11:50 AM
Subject: Re: Form Bean problem
Nope, same error. It seems to be in the html library somewhere.
javax.servlet.jsp.JspException: No getter method for property dob of
bean
org.apache.struts.taglib.html.BEAN
I don't need to use an action form at all with this page.
You do if you have a form on the page don't you?
That's interesting I have a form that is only data entry. Do I have to define an
action form for this page? I will in the action that it calls when the form is
submitted, because
You will need the form bean on the 1st use because the jsp it forwards to has
the form on it struts will try to populate the form from the form bean (I am
making an assumption here - it's possible it would look at the mapping, see no
form bean the html:text tags would just default to blanks -
Cheer Keith, that's clearer now.
Sounds like a possible enhancement request, if it doesn't default to blank :-)
Thanks again,
Tim.
KeithBacon [EMAIL PROTECTED] wrote :
You will need the form bean on the 1st use because the jsp it forwards to
has
the form on it struts will try to populate
The ActionForm is the companion bean to the html tags. The purpose of
most of the html tags is to create HTML elements that can be populated
from a bean passed to the page. Any bean can be used, but ActionForm
beans are the most common, since they are required for the validation
phase.
If the
Hmmm.
This works:
%@ page language=java import=com.pancredit.tkbespoke.tjs.strutstest.form.* %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
html:html
head
titleUntitled Document/title
!--
%=((AddExtraPersonDetailsForm)session.getAttribute(addExtraPersonInfoForm)).getDateOfBirth()
%
does the form work OK if you remove dateOfBirth but leave the other form
fields?
Is it possible you have 1 mapping that puts the form in the session another
one that puts another form in the request but with the same name?
That would explain it if you can find the form bean but struts doesn't?
Hi there,
I am new to Struts, I have this problem and please help:
I would like to display an error message to the user in a little more
customized way, such as, if some special characters
are not allowed in a field, if the user entered any of this special
character set, (say @#$), I would
KeithBacon [EMAIL PROTECTED] wrote :
does the form work OK if you remove dateOfBirth but leave the
other form fields?
Nope. I only have two fields on the form, and if I remove date of birth it complains
about the second one...
Is it possible you have 1 mapping that puts the form in the
Hello.
I'm calling a JSP page as the successful outcome of an action, and it's complaining
that one of my get methods doesn't exist. I can't work out what's going on, can
someone give me a nudge in the right direction?
The page contains a form, for entering date of birth and marital status
that the addExtraPersonDetailsForm is not being used since
the error msg states that org.apache.struts.taglib.html.BEAN has no getter
method for dob.
- Original Message -
From: Tim Sawyer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 25, 2002 10:41 AM
Subject: Form Bean problem
is org.apache.struts.taglib.html.BEAN actually referring to?
Tim.
- Original Message -
From: Tim Sawyer amp;lang=en[EMAIL PROTECTED]
To: amp;lang=en[EMAIL PROTECTED]
Sent: Monday, February 25, 2002 10:41 AM
Subject: Form Bean problem
Hello.
I'm calling a JSP page as the successful outcome of an action
Sorry Tim,
I've only been learning this stuff for a couple of weeks myself. I don't
know what org.apache.struts.taglib.html.BEAN is referring to here. I was
just responding to what was obvious to me.
maybe one of the gurus will step in. the list seems pretty quiet today
though.
Good luck,
Dave
The error sounds like it is referring to the taglib struts-bean.tld, whether or
not it is a legitimate error, I'm not sure.
Try taking out the line
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
from your jsp and change the button tags back to regular HTML where
html:submit
hello
If I forward to an action then Struts creates new form bean that is
populated with parameters from current request. But if current request
contains parameters with the same names as
properties of new form's bean then these values will be displayed on my
new form !
For example:
+ Create
34 matches
Mail list logo