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
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 or
s Users Mailing List; Tim 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]>
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
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 th
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 lik
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? O
Hmmm.
This works:
<%@ page language="java" import="com.pancredit.tkbespoke.tjs.strutstest.form.* %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
Untitled Document
Please enter the following customer details:
put it back to what it was and it doesn't work anymore,
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 be
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 pop
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 tags would just default to blanks - but I dou
> >> 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, beca
ng obvious,
> > but
> > > don't really know where to look.
> > >
> > > Tim.
> > >
> > >
> > >
> > > Jean-Guillaume LALANNE &lang=en">[EMAIL PROTECTED]>
> > wrote :
> > >
>
ECTED]>
> wrote :
> >
> > > Hi,
> > >
> > > I have got the same type of problem and it was due to the fact that my
> > > property was not lowercase...
> > > Have a look at your JSP and specially to your "dob" proper
o your "dob" property ...
> >
> > Hope that helps
> >
> > Jean-Guillaume LALANNE
> >
> > - Original Message -
> > From: "Tim Sawyer" &lang=en">[EMAIL PROTECTED]>
> > To: &lang=en">
--
> From: "Tim Sawyer" &lang=en">[EMAIL PROTECTED]>
> To: &lang=en">[EMAIL PROTECTED]>
> Cc: "Tim Sawyer" ;&lang=en">[EMAIL PROTECTED]>;
> &lang=en">[EMAIL PROTECTED]>
> Sent: Tuesday, February 26, 2002
PROTECTED]>
To: <[EMAIL PROTECTED]>
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.serv
)]._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 t
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
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
Dderry <[EMAIL PROTECTED]> wrote :
> Do you have an Action Mapping for saveExtraPersonDetails.do?
Yes:
but it doesn't even display the page, so it doesn't get that far.
>Does it use also use addExtraPersonDetailsForm?
Yes, see above.
>Do you have a .
>entry in
Do you have an Action Mapping for saveExtraPersonDetails.do? Does it use
also use addExtraPersonDetailsForm? Do you have a
. entry in
struts-config.xml?
It appears to me that the addExtraPersonDetailsForm is not being used since
the error msg states that org.apache.struts.taglib.html.B
22 matches
Mail list logo