|Home |Login |Registration |Struts Step by Step Tutorial |Hibernate Step by Step Tutorial |Spring Step by Step Tutorial |JSP Step by Step Tutorial |JDBC Step by Step Tutorial |Web Services Step by Step Tutorial |EJB fundamentals | ORACLE Step by Step Tutorial | SCJP 5.0 and SCJP 6.0 Study Guide | SCWCD 5.0 Study Guide | SCJP Tips
Java mock test | SCJP mock test | SCJP DUMP | SCBCD mock test |Java online test exam | JSP online test | ORACLE online test | Hibernate online test | Servlet online test | Struts online test | EJB online test | C online test | C++ online test | Aptitude online test

Java interview questions | JSP interview questions | ORACLE interview questions | Hibernate interview questions | Servlet interview questions | Struts interview questions | JDBC interview questions | C/C++ interview questions | Spring interview questions | JMS interview questions | Informatica interview questions | EJB interview questions | OOPS and Design Pattern interview questions
1600 PMP mock questions 1400 CAPM mock questions 800 SCJP 6 mock questions 600 OCAJP 7 mock questions 590 OCPJP 7 mock questions 556 SCWCD 5 mock questions 500 OCEJWCD 6 mock questions pdfDownload (java,struts, hibernet etc) JobsJobs and Walkins

 

Recent Questions

!!! Struts Frequently Asked Questions !!!

Q.How can I avoid validating a form before data is entered?

SCJP 1.5/1.6 Exam Kit

!!!Answer!!!- From Technical Expert

validate="false" ..
The simplest way is to have two actions. The first one has the job of setting the form data, i.e. a blank registration screen. The second action in our writes the registration data to the database. Struts would take care of invoking the validation and returning the user to the correct screen if validation was not complete.
The EditRegistration action in the struts example application illustrates this:
< action path="/editRegistration">
type="org.apache.struts.webapp.example.EditRegistrationAction"
attribute="registrationForm"
scope="request"
validate="false">
<forward name="success path="/registration.jsp"/>
</action>
When the /editRegistration action is invoked, a registrationForm is created and added to the request, but its validate method is not called. The default value of the validate attribute is true, so if you do not want an action to trigger form validation, you need to remember to add this attribute and set it to false

Answered By : null Replied Date : Apr 15 2012
Answer :


Answered By : null Replied Date : Jan 24 2012
Answer :


Answered By : null Replied Date : Jan 15 2012
Answer :


Answered By : null Replied Date : Nov 30 2011
Answer :


Answered By : null Replied Date : Oct 26 2011
Answer :


Answered By : null Replied Date : Oct 10 2011
Answer :


Answered By : null Replied Date : Aug 29 2011
Answer :


Answered By : null Replied Date : Aug 4 2011
Answer :


Answered By : null Replied Date : Jun 18 2011
Answer :


Answered By : null Replied Date : Jun 15 2011
Answer :


Answered By : null Replied Date : Jun 11 2011
Answer :


Answered By : null Replied Date : Jun 2 2011
Answer :


Answered By : null Replied Date : May 17 2011
Answer :


Answered By : null Replied Date : Apr 23 2011
Answer :


Answered By : null Replied Date : Apr 13 2011
Answer :


Answered By : null Replied Date : Mar 29 2011
Answer :


Answered By : null Replied Date : Mar 26 2011
Answer :


Answered By : null Replied Date : Feb 19 2011
Answer :


Answered By : null Replied Date : Feb 18 2011
Answer :


Answered By : null Replied Date : Jan 21 2011
Answer :


Answered By : null Replied Date : Jan 17 2011
Answer :


Answered By : null Replied Date : Jan 15 2011
Answer :


Answered By : null Replied Date : Dec 1 2010
Answer :


Answered By : null Replied Date : Nov 28 2010
Answer :


Answered By : null Replied Date : Nov 23 2010
Answer :


Answered By : null Replied Date : Nov 2 2010
Answer :


Answered By : null Replied Date : Oct 29 2010
Answer :


Answered By : null Replied Date : Oct 20 2010
Answer :


Answered By : null Replied Date : Oct 15 2010
Answer :


Answered By : null Replied Date : Oct 11 2010
Answer :


Answered By : null Replied Date : Sep 19 2010
Answer :


Answered By : null Replied Date : Sep 14 2010
Answer :


Answered By : null Replied Date : Sep 3 2010
Answer :


Answered By : null Replied Date : Aug 21 2010
Answer :


Answered By : null Replied Date : Apr 22 2012
Answer :


Answered By : null Replied Date : Apr 26 2012
Answer :


Answered By : null Replied Date : May 2 2012
Answer :


Answered By : null Replied Date : Jul 30 2012
Answer :


Answered By : null Replied Date : Aug 16 2012
Answer :


Answered By : null Replied Date : Sep 22 2012
Answer :


Answered By : null Replied Date : Oct 10 2012
Answer :


Answered By : null Replied Date : Oct 17 2012
Answer :


Answered By : null Replied Date : Nov 16 2012
Answer :


Answered By : null Replied Date : Nov 19 2012
Answer :


Answered By : null Replied Date : Nov 27 2012
Answer :


Answered By : null Replied Date : Jan 24 2013
Answer :


Answered By : null Replied Date : Feb 18 2013
Answer :


Answered By : null Replied Date : Apr 4 2013
Answer :


Answered By : null Replied Date : Apr 6 2013
Answer :


Answered By : null Replied Date : Apr 7 2013
Answer :


 

You can also contribute to this answer:

Your Name:
Answer:

 
Ask Question and get answer from Expert.
View Answers List from Expert.

The information you are posting should be related to java and ORACLE technology. Not political.