RE: Form Bean Help?

2003-07-29 Thread Matt E
Wendy, > If you need to pre-populate the form, read the DTO > from the database and use > BeanUtils.copyProperties(...) to copy the DTO values > into the Form bean > before forwarding to the view. > > Take a look at the struts-example webapp, it works > the way you're > describing. Outstanding!

RE: Form Bean Help?

2003-07-29 Thread Mainguy, Mike
Whoops, I completely missed that, Red Herring alert! -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 12:56 PM To: 'Struts Users Mailing List' Subject: RE: Form Bean Help? Matt wrote: > I had been using the value property of th

RE: Form Bean Help?

2003-07-29 Thread Mainguy, Mike
form alone and redisplay the old copy with the current form. Am I misunderstanding what you are trying to do perhaps? -Original Message- From: Matt E [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 12:46 PM To: Struts Users Mailing List Subject: RE: Form Bean Help? Mike, The bean

RE: Form Bean Help?

2003-07-29 Thread Wendy Smoak
Matt wrote: > I had been using the value property of the struts-html > tags to fill in the data, but I've noticed that when > the user hits submit, if there is a validation error, > they are pushed back to the page, and the data they > had enetered is replaced with what was in the DTO > (which is n

RE: Form Bean Help?

2003-07-29 Thread Matt E
Mike, The bean is stored in the Session scope (the bean needs to be stored in the session scope, so that some other data for it which is valid for the life of the session stays around). Even if it was a request scoped bean, I'd still like a way to fill out the action form before hand, because the

RE: Form Bean Help?

2003-07-29 Thread Mainguy, Mike
My angle on this is to only load the data from the database when the user is submitted a request to "read" data. If they are submitting an "update" action, I don't load the data from the database. -Original Message- From: Matt E [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 12:

Re: Form Bean Not Called Why ?

2003-07-24 Thread Puneet Agarwal
endra Kumar O V S" To: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]cc: go.com> Subject: Re: Fo

Re: Form Bean Not Called Why ?

2003-07-24 Thread Nagendra Kumar O V S
hi, do u have the file name declared as "FormFile" in ur action form?...     -- nagi ---Original Message---   From: Struts Users Mailing List Date: Thursday, July 24, 2003 03:57:55 PM To: [EMAIL

Re: Form Bean Not Called Why ?

2003-07-24 Thread Puneet Agarwal
cc: 07/24/03 04:16 PM Subject: Re: Form Bean Not Called Why ? P

Re: Form Bean Not Called Why ?

2003-07-24 Thread rajendra . x . yadav
Yes.. whenever i used to add enctype="multipart/form-data" in my form, the file never used to upload. Then i switched to a 3rd part Java API to do the file uploading. It's free and a very small one. If you need i can send it to you. thanks -raj

Re: Form bean is not stored in request

2003-07-07 Thread Nadja Senoucci
Hello, >This is definitely the problem. What properties are you trying to >set? I have two map backed fields in form. Since they can actually exists repeatedly I am building the name in my .jsp and am displaying this as follows: <% String fname = "field(searchfield"+(counter)+")";

Re: Form bean is not stored in request

2003-07-07 Thread Nagendra Kumar O V S
-nagi   ---Original Message---   From: Struts Users Mailing List Date: Monday, July 07, 2003 03:09:19 PM To: Struts Users Mailing List Subject: Re: Form bean is not stored in request  Hello again,it is actually s

Re: Form bean is not stored in request

2003-07-07 Thread Nadja Senoucci
Hello again, it is actually struts that seems to be expecting the form bean in the request, under name given in 'attribute' in the mapping for the action. At least, the log-file tells me that struts looks there for the form bean and creates a new one if it can't find it. Okay, here is the action

Re: Form bean is not stored in request

2003-07-07 Thread Dirk Markert
Hello Nadja, *** NS> Hello everyone, NS> I have this weird little problem and I don't know how to fix it. I have a NS> form (actually I have many forms but the others work just fine) and a form NS> bean and action class for it. Now

Re: Form bean is not stored in request

2003-07-07 Thread Nagendra Kumar O V S
can u paste the "action form class" code and the "struts-config action mapping" here   -nagi   ---Original Message---   From: Struts Users Mailing List Date: Monday, July 07, 2003 02:45:34 PM To: [EMAI

RE: form bean

2003-06-20 Thread Ben Anderson
This is what I have in struts-config.xml: -Ben Anderson From: <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Subject: RE: form bean Date: Fri, 20 Jun

RE: form bean

2003-06-20 Thread Marco.Mistroni
Hi, > > that is already done. but after i display the parameter, there will be an input text field for entering the value. and those values should go to an action that processes them.. since parameter names are variable, i cannot define a proper form bean for them. i have looked quickly some do

Re: form bean

2003-06-20 Thread Michael Thompson
Could you not make the parameters just a string list on the form bean? ... Kind of like dealing with a table with variable # of rows. --m [EMAIL PROTECTED] wrote: hi all, i have a situation in which i have to display a form which has 'dynamic parameters', meaning that for each r

RE: Form bean properties not getting set

2003-06-18 Thread Richard J. Duncan
Rick: You can handle String data with simple String properties. For non String data you can use something like the following: private int age; public int getAge() { return age; } public void setAge(int age) { this.age = age; } public String getAgeDisplay() { return Integ

RE: Form bean properties not getting set

2003-06-18 Thread Wendy Smoak
Rick wrote: > Is there some bug/feature in Struts that prevents me from having > getters and setters that don't match types? If this is deliberate, why? This isn't Struts, it's part of the JavaBeans specification. The get/set methods have to match, and in addition, you cannot override the set me

RE: form bean null

2003-05-29 Thread Vinay Mhapankar
Is the name attribute missing in say bean:write tags? Name shud be form bean name. Please check that. Thanks. -Vinay -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 7:28 AM To: Struts Users Mailing List Subject: form bean null

Re: Form bean pre-population and validation

2003-03-01 Thread Jeff Kyser
I'd say a DynaValidatorForm is pretty elegant. Use the initial="your value" for each form-property that has a default. -jeff On Saturday, March 1, 2003, at 11:26 AM, harish krishnaswamy wrote: What is the elegant way of specifying default values for a form and not validate the form until

Re: Form bean null

2003-02-20 Thread Eddie Bush
You might also try Google ;-) (You'll be amazed! Try it!) Sri Sankaran wrote: Usually an indication that your setup is incorrect -- no name attribute for a mapping that uses etc. Please take a look at the archives for previous references to the problem for hints. You can search using various

RE: Form bean null

2003-02-20 Thread Sri Sankaran
Usually an indication that your setup is incorrect -- no name attribute for a mapping that uses etc. Please take a look at the archives for previous references to the problem for hints. You can search using various tools. Take your pick of : http://marc.theaimsgroup.com/?l=struts-user http:/

RE: Form bean null

2003-02-20 Thread Jarnot Voytek Contr AU HQ/SC
http://marc.theaimsgroup.com/?l=struts-user&w=2&r=1&s=Cannot+retrieve+defini tion+for+form+bean&q=b -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. > -Original Message- > From: Curley, John [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 20, 2003 8:32 AM > To: '[EMAIL P

RE: Form bean null

2003-02-20 Thread James Childers
http://marc.theaimsgroup.com/?l=struts-user&w=2&r=1&s=form+bean+null&q=b -= J > -Original Message- > From: Curley, John [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 20, 2003 8:32 AM > To: '[EMAIL PROTECTED]' > Subject: Form bean null > > > > Hi, > > I'm new to Struts. I am

Re: Form Bean could not be accessed from my custom Tag

2003-02-05 Thread Cory Newey
Just change the getAttribute line so it reads like this: ActionForm form = (ActionForm)pageContext.getAttribute("webutilCollapse", pageContext.REQUEST_SCOPE); or you could change it to: ActionForm form = (ActionForm)r

RE: Form Bean could not be accessed from my custom Tag

2003-02-05 Thread Nicolas Robert
Hi, You could try this code sample (which come's from /src/share/org/apache/struts/taglib/bean/WriteTag.java) : public int doStartTag() throws JspException { // Look up the requested bean (if necessary) if (ignore) { if (RequestUtils.lookup(pageContext, name, scop

RE: form-bean and set-property tags

2002-12-17 Thread Aadithya Deshpande
: Justin Ashworth [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 1:45 PM To: Struts Users Mailing List Subject: Re: form-bean and set-property tags The beauty of DynaActionForms is that you don't need getters and setters for every property and, in fact, if you do have getters and

Re: form-bean and set-property tags

2002-12-17 Thread Justin Ashworth
The beauty of DynaActionForms is that you don't need getters and setters for every property and, in fact, if you do have getters and setters for any property they won't be called...which is what you are seeing. Read the information at the following site and it should all be clear: http://www.onja

RE: Form Bean Scope.

2002-12-12 Thread shirishchandra . sakhare
-user; Vinodh.Kumar Subject: RE: Form Bean Scope. Hi vinodh, That didn't work. Note i need to call the action (basicSearch.do) again from the searchResults.jsp and not from basicSearch.jsp. At this point i need to same instance of formbean which was created on basicSearchAction called

RE: Form Bean Scope.

2002-12-12 Thread Beeson, Ashley
In the struts config set the scope="session" (in the mailto:[EMAIL PROTECTED]] Sent: 12 December 2002 08:29 To: Struts Users Mailing List Subject: Form Bean Scope. Hi, I'm new to Struts, needed immediate help. How to set the scope of formbean to be session, so that it can be called from other J

RE: Form Bean Scope.

2002-12-12 Thread D, Gopinath (MED)
~gopi -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 12, 2002 2:10 PM To: Struts Users Mailing List Subject: Re: Form Bean Scope. hi Gopinath, You could set the request object attributes, instead of thinking in terms of sessions. On a new search you

Re: Form Bean Scope.

2002-12-12 Thread Vinodh . Kumar
hi Gopinath, You could set the request object attributes, instead of thinking in terms of sessions. On a new search you could reset the request objects attribute. regards Vinod Vinodh Kumar B Technical Leader IT Solutions [EMAIL PROTECTED] Office: 6655122 Extn. 2153 Mobile: +91 9845458208 --

Re: Form Bean with Lists & client updates

2002-12-10 Thread Justin Ashworth
Hi Pat, With the way you're using the tag, you would need a getter and setter for firstName if you're using a regular ActionForm. You might want to try using a Map-backed (or List-backed) ActionForm to do your sets and gets. Take a look at this - I think the examples make usage pretty clear: htt

RE: Form bean is null in pagecontext? - OK let's try this again...

2002-10-07 Thread Kevin Roast
() returns null when an item doesn't exist as opposed to throwing an error.   Kev -Original Message-From: Kevin Roast Sent: 07 October 2002 12:16To: Struts Users Mailing ListSubject: RE: Form bean is null in pagecontext? - OK let's try this again... Hi,   OK, it appea

RE: Form bean is null in pagecontext? - OK let's try this again...

2002-10-07 Thread Kevin Roast
Title: Message Hi,   OK, it appears that I'm using the wrong key here - i.e. I should be using BEAN_KEY to get the Form bean not the form tag (doh).   HOWEVER - this doesn't explain why the ALL of the attributes on the request scope are "null" e.g. I've printed them out to the console:   org

RE: form bean broken - help

2002-09-23 Thread Galbreath, Mark
Sounds like he's calling reset() in the bean. -Original Message- From: Eddie Bush [mailto:[EMAIL PROTECTED]] Sent: Monday, September 23, 2002 3:58 PM To: Struts Users Mailing List Subject: Re: form bean broken - help It should be there. - check your session timeout - y

Re: form bean broken - help

2002-09-23 Thread Eddie Bush
It should be there. - check your session timeout - you're not closeing/reopening your browser window are you? - you're not invalidating the session and creating another are you? ... ... Hard to make a good guess based off your information. I know someone at some point in the past

Re: Form bean properties data types and conversions

2002-07-23 Thread JensStutte
t <[EMAIL PROTECTED]> Subject: Re: Form bean properties data types and conversions

Re: Form bean properties data types and conversions

2002-07-18 Thread Craig R. McClanahan
On Thu, 18 Jul 2002 [EMAIL PROTECTED] wrote: > Date: Thu, 18 Jul 2002 16:52:28 +0200 > From: [EMAIL PROTECTED] > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: Form bean properties data types and conversions > > > I have se

RE: form bean ignoring null input from jsp - newbie question

2002-06-05 Thread Galbreath, Mark
That's because it's passing an emtpy string. -Original Message- From: Peter Onthrops [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 8:52 PM Does struts ignore a null input from a jsp form when populating an underlying bean? I am submitting a text field with no input and the bean

Re: form bean variable type conversions

2002-05-24 Thread Ted Husted
http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg31801.html [EMAIL PROTECTED] wrote: > > Hi, > > Quick question: if I have a html:text element in a JSP, can I map it to form bean >variable of type int, expecting an automatic type conversion from String to int, or >must all form

Re: form bean variable type conversions

2002-05-23 Thread Ted Husted
It will convert fine, so long as you have both clever and kind users who never enter letters in a numeric field. ActionForms are character buffers for the HTML elements. Once the data is collected and validated, then you should convert and/or transform it. But since HTML and HTTP are string ba

RE: Form Bean vs. State Bean

2002-05-10 Thread Nelson, Laird
> -Original Message- > I may just be confused. I thought that I needed a state bean > to hold the > address information in and that I needed a form bean to > create the form on > the jsp page. Think of the form bean (or form beans, plural) as the state of some portion of the total numb

RE: Form Bean vs. State Bean

2002-05-10 Thread Villegas, Courtney
thanks! -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 11:06 AM To: 'Struts Users Mailing List' Subject: RE: Form Bean vs. State Bean Your form bean will hold the state if you declare its scope="session" in struts-

RE: Form Bean vs. State Bean

2002-05-10 Thread Galbreath, Mark
to create the form on the jsp page. -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 10:53 AM To: 'Struts Users Mailing List' Subject: RE: Form Bean vs. State Bean I'm not following you. Why do you have two beans that do th

RE: Form Bean vs. State Bean

2002-05-10 Thread Villegas, Courtney
Users Mailing List' Subject: RE: Form Bean vs. State Bean I'm not following you. Why do you have two beans that do the same thing? What is the program flow? Mark -Original Message- From: Villegas, Courtney [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 1:46 PM I have a s

RE: Form Bean vs. State Bean

2002-05-10 Thread Villegas, Courtney
:55 AM To: Struts Users Mailing List Subject: RE: Form Bean vs. State Bean Have you downloaded the Struts binary and/or source dist? Have you deployed it correctly on a servlet container such as Tomcat (my favorite)??? JM > -Original Message- > From: Villegas, Courtney [mailto:

RE: Form Bean vs. State Bean

2002-05-10 Thread Galbreath, Mark
I'm not following you. Why do you have two beans that do the same thing? What is the program flow? Mark -Original Message- From: Villegas, Courtney [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 1:46 PM I have a state bean named addressLookup that has 3 variables (address, city,

RE: Form Bean vs. State Bean

2002-05-10 Thread Villegas, Courtney
no..but I will :) -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 10:54 AM To: Struts Users Mailing List Subject: RE: Form Bean vs. State Bean Have you looked into the DynaActionForm? JM > -Original Message- > From: Vi

RE: Form Bean vs. State Bean

2002-05-10 Thread James Mitchell
Have you downloaded the Struts binary and/or source dist? Have you deployed it correctly on a servlet container such as Tomcat (my favorite)??? JM > -Original Message- > From: Villegas, Courtney [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 10, 2002 1:46 PM > To: '[EMAIL PROTECTED]' >

RE: Form Bean vs. State Bean

2002-05-10 Thread James Mitchell
Have you looked into the DynaActionForm? JM > -Original Message- > From: Villegas, Courtney [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 10, 2002 1:46 PM > To: '[EMAIL PROTECTED]' > Subject: Form Bean vs. State Bean > > > I have a state bean named addressLookup that has 3 variables > (

RE: form bean with ArrayList

2002-04-25 Thread Greg Nyberg
2002 7:24 AM > To: Struts Users Mailing List > Subject: Re: form bean with ArrayList > > > > > That's pretty weird, considering an ArrayList has an initial > capacity of > 10 > > > and grows automatically. Are you sure you are > re-instantiating the List &g

Re: form bean with ArrayList

2002-04-25 Thread Nicolas De Loof
> > That's pretty weird, considering an ArrayList has an initial capacity of 10 > > and grows automatically. Are you sure you are re-instantiating the List > > after (I assume) dereferencing it in reset()? > > This "grows automatically" part is something that I think is not > completely right. If

Re: form bean with ArrayList

2002-04-25 Thread dhay
t; on 04/24/2002 12:26:39 PM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> cc:(bcc: David Hay/Lex/Lexmark) Subject: Re: form bean with ArrayList Galbreath, Mark wrote: > That's

RE: form bean with ArrayList

2002-04-24 Thread Galbreath, Mark
Well, yeah, you can't set() an element in a space that does not exist. If Greg is adding elements, it will grow automatically (and because it's reset after each action, I think trimToSize() is unnecessary overhead), and if he is adding a collection at one time, he can use the ArrayList( Collectio

RE: form bean with ArrayList

2002-04-24 Thread Greg Nyberg
7;Struts Users Mailing List' > Subject: RE: form bean with ArrayList > > > That's pretty weird, considering an ArrayList has an initial > capacity of 10 > and grows automatically. Are you sure you are re-instantiating the List > after (I assume) dereferencing it in res

Re: form bean with ArrayList

2002-04-24 Thread Marcelo Vanzin
Galbreath, Mark wrote: > That's pretty weird, considering an ArrayList has an initial capacity of 10 > and grows automatically. Are you sure you are re-instantiating the List > after (I assume) dereferencing it in reset()? This "grows automatically" part is something that I think is not

RE: form bean with ArrayList

2002-04-24 Thread Galbreath, Mark
That's pretty weird, considering an ArrayList has an initial capacity of 10 and grows automatically. Are you sure you are re-instantiating the List after (I assume) dereferencing it in reset()? Mark -Original Message- From: Greg Nyberg [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 2

RE: Form Bean scope

2002-04-24 Thread Galbreath, Mark
Declare the bean in session scope inside your action mappings like so: Mark -Original Message- From: Bryan P. Glennon [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 10:51 AM To: [EMAIL PROTECTED] Subject: Form Bean scope I must be missing something here..

Re: Form Bean scope

2002-04-24 Thread Hans-Joachim Matheus
Von: Bryan P. Glennon [mailto:[EMAIL PROTECTED]] > Gesendet: Mittwoch, 24. April 2002 16:51 > An: [EMAIL PROTECTED] > Betreff: Form Bean scope > > > I must be missing something here...I have a form bean and an > action. When the > action is invoked, the bean gets instantiated and I see it's >

Re: form bean life cycle

2002-04-22 Thread Marcelo Vanzin
Nicolas De Loof wrote: > In ActionServlet (Struts 1.0.2) you can read that formBean object found in > scope is compared to the form name declared in ActionMapping by testing > class name, not testing it using an "isInstance" or any other reflection > mecanism that could allow using inheritance or

Re: form bean life cycle

2002-04-22 Thread Viet Kevin
On Mon, 22 Apr 2002 10:05:28 -0400 [EMAIL PROTECTED] wrote: > > > > I like the basic approach - but I'd modify it to do the following: > > 1. Define an INTERFACE that your Astract bean class implements > > 2. The form beans can then EITHER implement the interface or subclass the > abstract c

Re: form bean life cycle

2002-04-22 Thread Kevin . Bedell
Kevin "Nicolas De Loof" <[EMAIL PROTECTED]> on 04/22/2002 10:13:38 AM Please respond to "Struts Developers List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> cc: "Struts Developers List" <[EMAIL PROTEC

Re: form bean life cycle

2002-04-22 Thread Kevin . Bedell
I like the basic approach - but I'd modify it to do the following: 1. Define an INTERFACE that your Astract bean class implements 2. The form beans can then EITHER implement the interface or subclass the abstract class (or both - this is redundant, but it works). 3. Have the Action class ope

Re: form bean life cycle

2002-04-22 Thread Nicolas De Loof
[send in copy on Struts-dev list] In ActionServlet (Struts 1.0.2) you can read that formBean object found in scope is compared to the form name declared in ActionMapping by testing class name, not testing it using an "isInstance" or any other reflection mecanism that could allow using inheritanc

Re: form bean reference....

2002-04-10 Thread Narasimha Rao
hai, this may come to use.put the bean in a session.Then u can access it from any controller cheers narasimha -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: form bean reference....

2002-04-10 Thread timothy
L PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, April 11, 2002 12:59 PM Subject: RE: form bean reference > What exactly are you trying to do? > > Are you trying to forward from one action class to another? > > JM > >

RE: form bean reference....

2002-04-10 Thread James Mitchell
What exactly are you trying to do? Are you trying to forward from one action class to another? JM > -Original Message- > From: timothy [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 10, 2002 11:29 PM > To: [EMAIL PROTECTED] > Subject: form bean reference > > > Hi all expert

Re: form bean roperties and ArrayLists

2002-03-15 Thread Kevin J. Turner
On Fri, 15 Mar 2002 13:35:03 -0600, Robert Williams wrote: >Data coming from a browser that is used to populate a form bean is >basically >of type String or String[]. I think if you change the ArrayList to >a string >array you will have better luck. I haven't tried this yet but it >has a >bette

Re: form bean roperties and ArrayLists

2002-03-15 Thread Robert Williams
Data coming from a browser that is used to populate a form bean is basically of type String or String[]. I think if you change the ArrayList to a string array you will have better luck. I haven't tried this yet but it has a better chance of working than the ArrayList declaration. - Original

RE: Form Bean to Value Object Conversion ... URGENT!!!

2002-03-13 Thread CARDON Denis
Hi VD/cool dude :-), there is a "mapping framework" referenced on Struts resouces page http://jakarta.apache.org/struts/resources.html In fact it points to a resouce on Ted Husted site : http://husted.com/struts/resources/mapper.htm I read through the documentation and it seems quite powerful. H

RE: Form Bean problem - Fixed for now

2002-03-05 Thread keithBacon
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

RE: Form Bean problem - Fixed for now

2002-03-04 Thread Tim Sawyer
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

RE: Form Bean problem

2002-02-27 Thread Tim Sawyer
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]>

Re: Form Bean problem

2002-02-27 Thread keithBacon
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

Re: Form Bean problem

2002-02-26 Thread Tim Sawyer
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

RE: Form Bean problem

2002-02-26 Thread Yu, Yanhui
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

Re: Form Bean problem

2002-02-26 Thread keithBacon
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

Re: Form Bean problem

2002-02-26 Thread Tim Sawyer
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,

Re: Form Bean problem

2002-02-26 Thread Ted Husted
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

Re: Form Bean problem

2002-02-26 Thread Tim Sawyer
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

Re: Form Bean problem

2002-02-26 Thread keithBacon
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

Re: Form Bean problem

2002-02-26 Thread Tim Sawyer
> >> 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

Re: Form Bean problem

2002-02-26 Thread keithBacon
ng obvious, > > but > > > don't really know where to look. > > > > > > Tim. > > > > > > > > > > > > Jean-Guillaume LALANNE &lang=en">[EMAIL PROTECTED]> > > wrote : > > > >

Re: Form Bean problem

2002-02-26 Thread Tim Sawyer
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

Re: Form Bean problem

2002-02-26 Thread keithBacon
o your "dob" property ... > > > > Hope that helps > > > > Jean-Guillaume LALANNE > > > > - Original Message - > > From: "Tim Sawyer" &lang=en">[EMAIL PROTECTED]> > > To: &lang=en">

Re: Form Bean problem

2002-02-26 Thread Tim Sawyer
-- > 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

Re: Form Bean problem

2002-02-26 Thread Jean-Guillaume LALANNE
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

Re: Form Bean problem

2002-02-26 Thread Tim Sawyer
)]._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

Re: Form Bean problem

2002-02-25 Thread Sarah Farrell
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

Re: Form Bean problem

2002-02-25 Thread dderry
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

Re: Form Bean problem

2002-02-25 Thread Tim Sawyer
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

Re: Form Bean problem

2002-02-25 Thread dderry
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

RE: Form -> Bean conversion - Not getting values

2002-02-19 Thread James Mitchell
tchell Software Engineer Open-Tools.org Home Phone (770) 822-3359 Cell Phone: (678) 910-8017 -Original Message- From: Santhosh Kumar [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 5:50 AM To: 'Struts Users Mailing List' Subject: RE: Form -> Bean conversion - Not g

RE: Form -> Bean conversion

2002-02-18 Thread Christopher Cheng
Why don't we use PropertyEditor? http://java.sun.com/j2se/1.3/docs/api/java/beans/PropertyEditor.html -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 16, 2002 2:27 PM To: 'Struts Users Mailing List' Subject: RE: Form ->

RE: Form -> Bean conversion - Not getting values

2002-02-18 Thread Santhosh Kumar
ession (or request) in the struts-config.xml. Santhosh > -- > From: James Mitchell > Reply To: Struts Users Mailing List > Sent: Sunday, February 17, 2002 4:45 AM > To: 'Struts Users Mailing List' > Subject: RE: Form -> Bean convers

RE: Form -> Bean conversion - Not getting values

2002-02-16 Thread James Mitchell
--- ** Note to users of this code ** I did not complile or test any of this code, so use it at your own risk. This is mainly to used as a guide to progamming

RE: Form -> Bean conversion - Not getting values

2002-02-15 Thread Santhosh Kumar
onfig : Any clue ? Thanks in advance S > -- > From: James Mitchell > Reply To: Struts Users Mailing List > Sent: Saturday, February 16, 2002 11:56 AM > To: 'Struts Users Mailing List' > Subject: RE: Form -> Bean c

  1   2   >