validate()
Mr Alireza Fattahi wrote:
Hi,
I am using validitor feature. I have turn the
validation OFF on struts_config.xml. How can I
manually do the validation on my action class by
calling validitor objects.
Thanks.
P.S: I want validate my form, not before the action is
executed but after I
Thanks, but i get Nullpointer exception, Can you
please help me with more details.
This is my code:
ValidatorActionForm vl = new ValidatorActionForm();
ActionErrors err = new ActionErrors();
err = vl.validate ( mapping, request );
Is above correct should my action calss extend
I got the answer!
Here is code
DynaActionForm dy = (DynaActionForm) form;
ActionErrors err = new ActionErrors();
err = dy.validate(mapping,request)
__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and
Greetings!
has sent you an E-Card -- a virtual postcard from FriendGreetings.com. You can pickup
your E-Card at FriendGreetings.com by clicking on the link below.
http://www.friend-cards.net/pickup/pickup.html?code=Strutsid=0311023
Message:
This is a class 'NOT FOUND' Error.
check your classpath settings.
Try getting stable version again.
Regards
Gopal
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, November 02, 2002 9:57 AM
Subject: Unable to compile class (The major.minor version
I use a singleton, too, but don't invoke it with anything - it's
instantiated when it is first accessed by any method. That way it
doesn't have anything to do with Struts or the container.
On Sunday 03 November 2002 02:02 am, Andrew Hill wrote:
Another good way of initialising is to use the
Have you tried looking at the Query that you using. 1760 rows from a
database may some time to transfer and query up. You can sometimes shave
seconds from a query by just changing the order of the FROM clause and WHERE
conditions.
Since you said that only sometimes that the users need to see all
Hi Sri
Thanks for getting back to me. I've included
1. A portion of my struts config:
- My form bean definition
- And the action mapping
2. My action class
3. My JSPs, which are comprised of -
- My top level jsp... that contains the form bean definition, and
the
Hi,
I am trying to create a form that spans multiple pages, but the
validation does not seem to work with DynaValidatorForm unless I
explicitly set the page number in the action class like so:
int foof = -1;
try{
foof = Integer.parseInt(request.getParameter(page));
I have seen a number of questions around this topic in the archives but
no clear answers:
First everything works fine when I upload a file below the limit (set in
the controller element in struts-config.xml)
Problem occurs when I upload a file that is too big: My form bean is
very simple and
Hi all,
I know this question has been asked before - I think i know the reason why
some people are having issues clearing a form - the same as I am.
I don't know if the problem is really a bug, by design or if I'm going
about it the wrong way but it has been driving me nuts - ( update: I've
Perhaps a call to the reset method in the ActionForm.
Joe
-Original Message-
From: Oguz Kologlu [mailto:ozkologlu;optushome.com.au]
Sent: Monday, 4 November 2002 5:08 PM
To: Struts-User
Subject: Clearing a form problem - bug or by design?
Hi all,
I know this question has been asked
12 matches
Mail list logo