The Artima Developer Community
Sponsored Link

Java Answers Forum
ActionErrors in Validate Method

2 replies on 1 page. Most recent reply: Oct 6, 2003 4:06 AM by perry arora

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
perry arora

Posts: 22
Nickname: perry
Registered: Sep, 2003

ActionErrors in Validate Method Posted: Oct 5, 2003 7:13 AM
Reply to this message Reply
Advertisement
hi friends,

need you help..

i am new to struts,.


can any one tell me that when the validate method returns the ActionErrors object that

represents the instances of ActionError stored in it, and after that the ActionServlet

checks that whther the Actionerrors object is empty if yes then it passed it to the

Specified ActionClass.if there are some errors in that case it passes to the input from

which he user used to pass the values. know

I am confused about the case whene there are errors and the ActionServlet forward back to

input form , for that to happen we will have to track the jsp/html from which client used

to enter the information././


Can any one help me more on this..



and also i will really appreciate in any one can tell me any links for studying Validator

in struts.


Senthoorkumaran Punniamoorthy

Posts: 335
Nickname: senthoor
Registered: Mar, 2002

Re: ActionErrors in Validate Method Posted: Oct 6, 2003 2:53 AM
Reply to this message Reply
In yout struts-config.xml file in the < action > element there is a attribute called "input" which specifies if there is a failurer where to find the input form to redirect.

ex:
       <action path="/login" type="LoginAction" name="logonForm" input="/login.uix" scope="request">
                </action>

perry arora

Posts: 22
Nickname: perry
Registered: Sep, 2003

Re: ActionErrors in Validate Method Posted: Oct 6, 2003 4:06 AM
Reply to this message Reply
thxs for reply..

i would also like to confirm that when ever we specify the local/global exception, in that case If that exception occurs a forward is performed to the resource specified in the "path" attribnute for the exception, but if in case we haven't specified the path attribute in that case the

"imput" attrubute of the action is used, am i right.,.

and what u r telling is that in case when we have the validating method throwing the ActionErrors object which is not empty

and has a set of ActioError objects , then after receiving the ActionErrors object the ActionServlet will perform a "Forward" to the resource specified in the input attribute for that specific action element..


PLZZZ confirm that the Action servlet will perform a Forward or it will perform a Redirect.. i guess its forward not sure....


THxs..

b bye

Flat View: This topic has 2 replies on 1 page
Topic: J2ME with DB2 Previous Topic   Next Topic Topic: Hierarchical DB

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use