Hi Sashi,
Don't know if you've received any replies to this, but I initially handled it the same
as you, but ran into problems when I was going back to the servlet for drop-down
actions etc. I only wanted validation errors to appear when the user hit the save
button, so I ended up just
Is this what you are looking for?
..something like this in your struts-config.xml:
form-beans
!-- HomePage form bean --
form-bean name=incidentForm
type=pwgsc.smis.presentation.IncidentForm/
/form-beans
!--
.
Adam
Kandi Potter wrote:
Hi Sashi,
Don't know if you've received any replies to this, but I initially handled it the
same as you, but ran into problems when I was going back to the servlet for
drop-down actions etc. I only wanted validation errors to appear when the user hit
the save
this method that it is intended to be
use this way.
I also used your method to check whether to validate, in situations
where I had a list of records where some could be edited and some could
be deleted. When deleting, I wanted to inhibit validation.
Adam
Kandi Potter wrote:
Hi Sashi,
Don't
and here I thought it was a trick question, where you had subclassed String as string
class and added a public member length. ..
-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 11:17 AM
To: 'Struts Users Mailing List'
Subject: RE:
I believe that, in general, parameters passed to the ActionForm from the jsp should be
strings. You can edit for numeric in the validate() method. Of course there are
exceptions, boolean for checkboxes for example.
I'll state this and let someone correct me if I am wrong please.
thanks.of course I haven't tried to myself.
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 11:32 AM
To: [EMAIL PROTECTED]
Subject: RE: [OT] Java Trivia
String is a final class so you can't subclass it.
David
and here I thought it
..do you also have to check for (if getMember() == ) ?
-Original Message-
From: Sandeep Takhar [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 3:12 PM
To: Struts Users Mailing List
Subject: Re: Validating search box's
I think you want to use instead of ||
sandeep
--- Jason
I would suggest not doing the propagate in the reset. Just use it for the original
values. The values entered on the form are automatically propagated by struts after
the reset by the setters and getters. Just put in some logging or print statements
in those methods and you will see when
I have done something similar but in the case of failed validation I return to the
same form for error correction. My drop-downs are populated in the doGet in the
Action class. After getting the values from the business class, I save them in the
session, just to avoid going back to the db
Hi Johnny,
I'm also using label/value vectors.I don't hard-code the form-name. Here are some
code snippets:
!-- Incident form bean --
form-bean name=incidentForm
type=pwgsc.smis.presentation.maintainHO.IncidentForm/
!-- Process an incident request for
+1
-Original Message-
From: Mike Ash [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 9:50 AM
To: 'Struts Users Mailing List'
Subject: RE: [ANNOUNCEMENT] Struts 1.1 Release Candidate 2 released
I agree, thanks for making our lives easier. Go have a beer or something!
and which part is actually putting the populated
form in the request?
Thanks.
JP
-Original Message-
From: Kandi Potter [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 9:22 AM
To: Struts Users Mailing List
Subject: RE: Populating Drop-down
Hi Johnny,
I'm also using label/value
put these 2 lines in your properties file:
errors.header =
errors.footer =
-Original Message-
From: Jason Meredith [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 11:44 AM
To: Struts Users Mailing List
Subject: Null value
Chaps
In my form actions I validate a number of fields,
Is this method of achieving #2 (selection from one dropdown affected contents of a
second dropdown) completely frowned upon? We were asked to avoid javascript.
html:select name=incidentForm property=region onchange=submit()
in action class: only doPost() when save button pressed else
I've been warned by another developer to not just comment the tags but to totally
change them by removing spaces when I want to comment one out.
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 10:13 AM
To: '[EMAIL
...
Really? I wonder why that is
- Keith
www.buffalo.edu/~kkamholz
-Original Message-
From: Kandi Potter [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 10:22 AM
To: Struts Users Mailing List
Subject: RE: Weirdness...
I've been warned by another developer to not just comment
thanks. I hadn't figured out yet that you could just provide the button value
without value=
-Original Message-
From: Bradley M. Handy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 1:48 PM
To: 'Struts Users Mailing List'
Subject: RE: [struts-user] RE: Submit Value
No it
Message-
From: Kandi Potter [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 9:06 PM
To: Struts Users Mailing List
Subject: RE: html:select / html:options
I used the following with vectors of unsafeValues and unsafeLabels in my incidentForm
bean.
html:select name=incidentForm property
hey thanksmaybe I'll try to minimize my code.
-Original Message-
From: Abhinav (Cognizant) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 12:15 PM
To: Struts Users Mailing List
Subject: RE: html:options
I was able to do it like that.
bean:define id=blist name=MyForm
I'm also guessing here.but I notice that reset() is called a lot.Do you have
setters as well as getters for all of the form fields? I believe that the setters
are used to 'hold on' to the field values during the reset.
-Original Message-
From: Dan Tran [mailto:[EMAIL
Someone might want to check into the unsubscribe issue because over Christmas I also
tried to unsubscribe temporarily, but it was not successful.I ended up just
filtering instead.
-Original Message-
From: Dan Allen [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 8:35 AM
To:
Was the issue below solved?
I am getting the same error. I have just upgraded to Struts 1.1-b3 from Struts
1.0.2. I'm using Tomcat 3.3.1.I wasn't getting the error on my 'Post' before the
upgrade.I have no trouble with the 'Get'.
Thanks for any suggestions.
Kandi Potter
as parameters.
Anyone have an explanation ???
-Original Message-
From: Kandi Potter
Sent: Monday, March 24, 2003 11:52 AM
To: [EMAIL PROTECTED]
Subject: Re: Error with BeanUtils
Was the issue below solved?
I am getting the same error. I have just upgraded to Struts 1.1-b3 from
I'm no expert at struts but I convert and validate my dates in my Action or Business
Class instead of the Form. I could be completely off-base here in my interpretation
of the struts ActionForm though
-Original Message-
From: Søren Blidorf [mailto:[EMAIL PROTECTED]
Sent:
myBean...check out the example that comes with the struts src for more
details.
-Original Message-
From: WILLIAMS,RAND (HP-USA,ex1) [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 10:35 AM
To: 'Struts Users Mailing List'
Subject: [Q] actionset-property
Hi All,
My guess is early 70sbecause my first experience was also in high school using
an old IBM System ?? with 64k memory.It took up a complete room.You saved your
program by not dropping the punch cards. If your program didn't have any compile
errors, it would be 20 minutes
70 to 71 - ouch again
-Original Message-
From: Kandi Potter [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 6:34 AM
To: Struts Users Mailing List
Subject: RE: [OT] Ancient computing
My guess is early 70sbecause my first experience was also in high
school using an old IBM
, 2003 10:46 AM
To: 'Struts Users Mailing List'
Subject: RE: [OT] Ancient computing
Dang, I must be a youngster -- mine were a Zenith-Heath kit computer running
CP/M and an Atari 400 with BASIC.
-Original Message-
From: Kandi Potter [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 9
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
-Original Message-
From: Jason Vinson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 10:52 AM
To: Struts Users Mailing List
Subject: Searching the Archives?
I feel dumb for asking this, but I am trying to
I'm not sure if this is your problem, but do you have the tld directive in your jsp?
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
-Original Message-
From: Art Vandalay [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 1:43 PM
To: Struts Mailing List
Subject: Cannot
and phrase matching are not
supported.
...and that's not even true, because I frequently get back results that only have one
of the search terms I entered. The archives have become effectively useless to me in
the past month or so.
--joe
-Original Message-
From: Kandi Potter
://marc.theaimsgroup.com/?l=struts-user.
Sri
-Original Message-
From: Kandi Potter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 2:48 PM
To: Struts Users Mailing List
Subject: RE: Searching the Archives?
anyone have a better way to search the archives?? I find it incredibly slow
I am new to struts but when I used the select with options tag I created 2 equal size
vectors (labels, values)the jsp was
td
html:select name=incidentForm property=selectedUnsafe
html:options name=incidentForm property=unsafeValues labelName=incidentForm
34 matches
Mail list logo