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
]
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
Do you have an Action Mapping for saveExtraPersonDetails.do? Does it use
also use addExtraPersonDetailsForm? Do you have a form-beans
form-bean name=addExtraPersonDetailsForm
type=package.addExtraPersonDetailsForm/./form-beans entry in
struts-config.xml?
It appears to me that the
Dderry [EMAIL PROTECTED] wrote :
Do you have an Action Mapping for saveExtraPersonDetails.do?
Yes:
actionpath=/saveExtraPersonDetails
type=com.pancredit.tkbespoke.tjs.strutstest.action.AddExtraPersonDetailsPostAction
name=addExtraPersonDetailsForm
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
22 matches
Mail list logo