Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Spring Framework | Web Services | BioInformatics | Java Server Faces | Jboss 3.0 tutorial | Hibernate 3.0 | XML
 
 
Hot Web Programming Job

 

Tutorial Categories: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML


 

Java Tutorials

Core Java
JSP
Servlet
JDBC
Hibernate
Struts 1
Struts 2
JSF
Spring
J2EE
J2ME
Web Services
Ajax
Dojo
MySQL
Latest Comments
Null pointer excep
swap program faile
hi.........
very good
navigaton mobile
  All Comments...
 

 

 
Struts Tutorials
*Stuts TOC
*Apache Struts Introduction
* Struts Controller
* Struts Action Class
* Struts ActionFrom Class
* Using Struts HTML Tags
*Struts Validator Framework    
*Client Side Address Validation    
*Struts Tiles
*tiles-defs.xml
*Struts DynaActionForm
*Struts File Upload
*Struts DataSource
*AGGREGATING ACTIONS
*Internationalization
Struts Resources
*Struts Books
*Struts Articles
*Struts Frameworks
*Struts IDE
*Struts Alternative
*Struts Links
*Struts Presentations
*Struts Projects
*Struts Software
*Struts Reference
*Struts Resources
*Other Struts Tutorial
Visit Forum! Post Questions!
Jobs At RoseIndia.net!

Have tutorials?
Add your tutorial to our Java Resource and get tons of hits.

We offer free hosting for your tutorials. and exposure for thousands of readers. drop a mail
roseindia_net@yahoo.com
 
   

 
Join For Newsletter

Powered by groups.yahoo.com
Visit Group! Post Questions!

Struts Address_struts_validator

User Comments
Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl
  Blink   Furl   Simpy   Y! MyWeb 

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

106 comments so far (post your own) View All Comments Latest 10 Comments:

Can u please send me a understandably sample project using jsp, servlets, java script, java, stuts. Please....

Posted by Perinbarani on Sunday, 04.5.09 @ 10:53am | #86517

I want to fill dependent select by first select onchange event,I used AJAX in servlets,but how it is possible in action class without Page refresh

Posted by gunjan on Sunday, 12.21.08 @ 07:47am | #83012

In our work space i don't have this file .
Struts\strutstutorial\web\WEBINF\MessageResources.properties
I have included error.Name in ApplicationResources.properties.
In structs.config.xml this file is added.
all are done according to instruction..

It gives gives nullpointer exceptiop in _Addressform.jsp

Posted by GUnjan on Saturday, 12.13.08 @ 03:46am | #82709

<html:form action="/AddressJavascriptValidation" method="post" onsubmit="return validateAddressForm(this);">

where is the validateAddressForm(this) funtion?

Posted by Rm.Kulanthaivelu on Friday, 12.12.08 @ 04:37am | #82679

Hai plz answer my question

<html:submit property="delMaterial" styleClass="button3" onclick="return delMaterials('<%=count%>');">

i already save the value of count in codings.I want to pass the count value in function.What can i do for this?

Posted by Raja on Wednesday, 07.30.08 @ 16:48pm | #69976

Gettng error "Error 500 Cannot retrieve definition for form bean AddressForm "
After clicking the save button without entering any data. Any help is appreciated

Posted by Suzana on Tuesday, 07.29.08 @ 16:06pm | #69778

got object expected error in the following line:

<html:form action="/AddressJavascriptValidation" method="post" onsubmit="return validateAddressForm(this);">

Posted by heidey on Monday, 07.28.08 @ 17:31pm | #69556

hi,

I tried this example but getting error message with in page only.i want it to display as alert in message box. what i have to do to get that??

Posted by vasu on Thursday, 06.19.08 @ 13:19pm | #63849

<html:form action="/AddressJavascriptValidation" method="post" onsubmit="return validateAddressForm(this);">

where is the validateAddressForm(this) funtion?

Posted by rakesh on Thursday, 05.8.08 @ 18:27pm | #58924

Hello,

Here you do not need to define validateAddressForm(this) method. All you need to do is add vaidate to your bean form. here bean form name is AddressForm so it would be validateAddressForm(this).

Rajavardhan Sarkapally

Posted by Raj on Friday, 04.25.08 @ 04:44am | #57824

I found the exception
javax.servlet.jsp.JspException: ValidatorResources not found in application scope under key "org.apache.commons.validator.VALIDATOR_RESOURCES"

Sol: If you have noticed the validation-rules.xml and validation.xml are not loaded while deploying the application. This is because there was a bug in the commons-validator.jar. Download the latest commons-validator jar file from apache site and replace it with the one you are using. Make sure you either rename the new jar to the same name as the old one or set the classpath to reflect the new jar file's name.

Posted by HariGorak on Monday, 04.21.08 @ 12:09pm | #57386

<html:form action="/AddressJavascriptValidation" method="post" onsubmit="return validateAddressForm(this);">

where is the validateAddressForm(this) funtion?

Posted by adam on Thursday, 02.28.08 @ 12:23pm | #50386

previously i was able to run using the following steps but today i was facing issue like
validationRequired is not definied
isthis because major ,minor version??

Posted by sarada on Saturday, 02.23.08 @ 19:56pm | #49672

javax.servlet.ServletException: ValidatorResources not found in application scope under key "org.apache.commons.validator.VALIDATOR_RESOURCES"

Posted by kamna on Friday, 02.15.08 @ 16:44pm | #48401

how to get values in two diff txt box in sturts validator,
ex:
i have to give validation in password and confirm password then wht shuld i write in validation.xml

Posted by Umesh on Monday, 02.11.08 @ 16:39pm | #47899

I am not able to get the error message in the javascript

Posted by pramod.m on Thursday, 01.31.08 @ 11:18am | #46699

Excellent website and pretty lucid and simple. Keep it up.

Posted by Anantha on Thursday, 01.17.08 @ 22:00pm | #45463

hey
this site is really very helpful.
i tried above example and followed all the steps givenin this application. but i got error in my java script console

validateAddressForm(this) is not defined at line 1.

plz help me out.

Posted by Anshu Jain on Friday, 12.28.07 @ 10:47am | #44015

Hi,

first of all. I love this site. It is si informative. Nice work guys. Thumbs up!!!

I implemented the client validation. Now, when I start the site on the server it only shows me the generated javascript. What did I do wrong?


best regards
goodgod

Posted by goodgod on Saturday, 12.15.07 @ 21:04pm | #42527

when I make the same application
I found the exception
javax.servlet.jsp.JspException: ValidatorResources not found in application scope under key "org.apache.commons.validator.VALIDATOR_RESOURCES"


plz help me to overcome that problem

thanks

Posted by alok on Wednesday, 12.5.07 @ 13:12pm | #41343

I tried using this example in my system. When I executed the same, the error window is blank. It is because of the reason that, the author has not mentioned one line that needs to be present in Struts\strutstutorial\web\WEB-INF\MessageResources.properties file

Please type the following line in MessageResources.properties file

#Error for Validators
errors.required={0} is required.

build and deploy your application. and test the application.
you should get the error messages now.

Posted by Harsh on Friday, 11.23.07 @ 14:12pm | #38664

Do we need to ovveride validate() if we r using validator frame work

U have not mentioned what the form bean has to extend.

Could please provide the compelte example for validator frame work

thanks
Revathi

Posted by Revathi on Friday, 11.23.07 @ 12:42pm | #38628

1)how do we perform client side validations?

Posted by jakeer.mahamad on Monday, 11.19.07 @ 10:52am | #37787

Im a beginner.the above example helped me a lot..i tried it but could not get the error alert.
so please kindly help me in doing that

Posted by Jyothsna on Thursday, 11.15.07 @ 18:41pm | #37505

org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 5

2: <%@ taglib uri = "/WEB-INF/struts-logic.tld" prefix = "logic" %>
3: <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
4: <%@ page language="java" contentType="text/html" %>
5: <HTML:html locale="true">
6: <body>
7: <HTML:form name = "EmpForm" action = "/emp.do" type="com.test.EmpForm">
8: <table><tr><td><HTML:errors/></td></tr>

Posted by Mariaprabudass on Tuesday, 11.13.07 @ 20:32pm | #37245

hello! I m trying to do client side validation but i get an error that says:

java.lang.NullPointerException
at org.apache.commons.validator.ValidatorResources.internalProcessForms(ValidatorResources.java:464)
at org.apache.commons.validator.ValidatorResources.process(ValidatorResources.java:415)
at org.apache.commons.validator.ValidatorResources.<init>(ValidatorResources.java:162)
at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:237)
at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:162)
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1175)
at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:368)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:174)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

Need help on this..........thank you

Posted by Pranav on Tuesday, 11.13.07 @ 11:43am | #37203

website validation code in struts validation.xml

Posted by vidyasagar on Monday, 10.29.07 @ 10:36am | #35047

i try to do client side validation. but i got this errors.

org.apache.jasper.JasperException: ValidatorResources not found in application scope under key "org.apache.commons.validator.VALIDATOR_RESOURCES"

please give me solution. Thanks

Posted by miza on Wednesday, 10.10.07 @ 14:13pm | #33005

pls gives the detail project diagram to show us
how to work validation

Posted by prajna paramita ghadei on Wednesday, 09.26.07 @ 11:32am | #29636

Thanx to roseindia team. I got complete awareness about STRUTS. The way of explanation is very good. Thanx again. All the very best to you all...

Warm regards
[b]Sriram[\b]

Posted by Sriram on Thursday, 09.20.07 @ 15:34pm | #28192

Hi, I am new to Struts. I followed the tutorial but when I copy the jsp page to my web app, it displays an error: "Unknown tag (html:javascript)." although I have added /WEB-INF/struts-html.tld file correctly. Please help me built it correctly.
Thanks and regards,

Posted by NhuMai on Thursday, 09.20.07 @ 12:33pm | #28180

how will i validations at client side and server side at same time, and if i invoke .properties file i want same validations both side

Posted by prabhakar on Tuesday, 08.28.07 @ 15:12pm | #24329

I've got problems, the lesson is very interesting. I follow it but i've got this problem when i execute the page (jsp):
javax.servlet.ServletException: javax.servlet.jsp.JspException: No form found under 'validarUsuarioForm' in locale 'es_ES'. A form must be defined in the Commons Validator configuration when dynamicJavascript="true" is set.

what can I do?

Posted by Cristina on Monday, 08.27.07 @ 22:01pm | #24267

The correct plug-in syntax for validtor is

>plug-in className="org.apache.struts.validator.ValidatorPlugIn"<
>set-property
property="pathnames"
value="/org/apache/struts/validator/validator-rules.xml,/validation/validation.xml"/<

ALL of the Validator Messages should be placed in the properties
file defined in message-resources tag in the
struts-config.xml

Posted by murthy gandikota on Friday, 08.24.07 @ 22:25pm | #24059

You can modify your code a little bit by removing onsubmit from <html:form>. You can place onclick=javascript method name in your <html:submit>. I hope it will solve your problem.

Posted by Deepti Agrawal on Monday, 08.20.07 @ 15:55pm | #23779

i am doing clicent side validation using javascript with jsp in struts, i want invoke javascript function,how,by this code function is not invoking, how invoke,please give me solution

<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<html:html>
<head>
<title></title>
</head>
<body>
<html:form action="/register1.do" onsubmit="return validateRequireds(this);">
<html:javascript formName="rforms"/>

function validateRequireds(form){

aler("this is not correct password");
}
pid <html:text property="fname"/><br>
<html:submit value="ts"/>
</html:form>
</body>
</html:html>
in above code , i want to do invoke javascript function , how invoke javascript function,
when i clicke the submit button, no invoking the javascript function ,
please give me solution

Posted by rajendra on Thursday, 08.16.07 @ 19:00pm | #23534

Hi,

In my struts application, in one of the form, there is a field named "abc". The validation rule for that field is "abc should be either zero, or avobe 200 but below 777"

For this, give the different possible solutions with clear explaination.

Posted by venu on Tuesday, 08.14.07 @ 17:21pm | #23366

Very Good Work.

God Bless You.

Thanks.

Posted by lallu on Sunday, 07.29.07 @ 09:27am | #22146

hi !
i m using struts validator frame work for validation. usin inbuil validation required i m getting alert message ??? en_US.error.required??

how can i get message aacording to me like
"Name is Required ".
please do reply.
thanks

Posted by minakshi tiwari on Thursday, 07.19.07 @ 16:07pm | #21571

jsFunctionName="DateValidations"

where i put this code...
actually i am not selecting Activate Date taking default so i can validate date...
01 02 03 04 05 06 07 08 09 10 11 12 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 2006 2007 2008 2009 MM/DD/YYYY

Posted by bhaskary on Wednesday, 07.11.07 @ 12:32pm | #21067

hi everyone,this is my first comment into this site.this is an excellent site for solving the prolems of a developer.

i learnt javascript code from this site and implemented,its working well but i m facing a minute problem.see the code below:

<var>
<var-name>datePattern</var-name>
<var-value>mm-dd-yy</var-value>
</var>

i am validating a date to the above pattern but the form is not accepting any pattern.please tell me the solution if you know.

Posted by Gagan Arora on Monday, 07.9.07 @ 16:10pm | #20965

Excellent site for learning struts for the freshers.

Posted by satya prasad on Tuesday, 06.26.07 @ 18:22pm | #20236

Its very good example to understand but i'm using tomcat5.0 so i want to know the changes to be made...

Posted by Safal R. Kondawar on Friday, 06.22.07 @ 10:49am | #19943

i want projects

Posted by cfdf on Tuesday, 06.19.07 @ 14:13pm | #19692

Its very nice to have a code. But please let me know what all the changes do i need to make to work this code better. I am using Tomcat5.0 server.

Posted by sureshbabu on Thursday, 06.14.07 @ 12:47pm | #19188

Very Nice Article.Thanks

Posted by suma on Monday, 06.11.07 @ 03:27am | #18851

excellent tutorial

Posted by sanjay kumar gupta on Wednesday, 06.6.07 @ 15:38pm | #18388

I don't know how you people say that this works. I tried exactly as said here and nothig worked. All i get is a blank java script generated with code :

<script type="text/javascript" language="Javascript1.1">

<!-- Begin

var bCancel = false;

function validateProductForm(form) {
if (bCancel)
return true;
else
return true;
}




//End -->
</script>

Posted by Ashish on Monday, 06.4.07 @ 21:19pm | #18201

Easy to understand and great to learn and follow

thanks a ton for the effort and making it available!

Posted by ravi on Thursday, 05.31.07 @ 18:11pm | #17863

can anyone please send me any sample project developed using struts-jsp-actionservlets?

Posted by sreekanth reddy on Monday, 05.28.07 @ 18:26pm | #17544

not getting alert box seperately. error msgs are displaying in jsp itself.

Posted by guru on Friday, 05.25.07 @ 17:25pm | #17245

Iam new to struts
Iam getting below error ValidatorResources not found in application scope under key "org.apache.commons.validator.VALIDATOR_RESOURCES"

Please If Possible Send any Executed Code to
above mailId gautham_avu3@hotmail.com.

Posted by babu on Thursday, 05.24.07 @ 13:14pm | #17144

Is Validation-rules.xml file need to be changed

Posted by Gautam on Thursday, 05.24.07 @ 13:03pm | #17143

Is Validation-rules.xml file need to be changed

Posted by Gautam on Thursday, 05.24.07 @ 13:03pm | #17141

it's very good example for those who start with struts

Posted by amit kumar on Wednesday, 05.23.07 @ 15:08pm | #17083

really good but need some more working examples

Posted by Preethi on Saturday, 05.19.07 @ 15:44pm | #16543

this is good website for java strut

Posted by gulshan on Wednesday, 05.16.07 @ 16:26pm | #16137

I am getting the error js alert box but without any error messages :
Step -1 : You add these properties in the - ApplicationResources.properties file :
AddressForm.name=Name
AddressForm.address=Address
AddressForm.emailAddress=E-mail address

Step -2 : In the ApplicationResources.properties file add this line where such type of message are there :
errors.required={0} is required.

Step -3 :
Add these in the Validation.xml file :
<!-- Address form Validation-->
<form name="AddressForm">
<field property="name" depends="required">
<arg0 key="AddressForm.name"/>
</field>
<field property="address" depends="required">
<arg0 key="AddressForm.address"/>
</field>
<field property="emailAddress"
depends="required">
<arg0 key="AddressForm.emailAddress"/>
</field>
</form>

Now your problem is going to be solved the alert box will come with the results.

Posted by Sharad on Tuesday, 05.15.07 @ 10:58am | #15954

This tutorial on Struts is something i found very easy to understand & interpret...the programs are written in a very good manner n gives insight details to the basic stuff required.
Thank u all for providing such priceless stuff.

Posted by Dilip on Monday, 05.7.07 @ 13:20pm | #15398

Is Action class is a Servlet or Helper class in Struts?

Posted by sathish on Thursday, 04.19.07 @ 20:17pm | #14578

I am having one problem, I am getting the error js alert box but without any error messages. I have created the entries for the errors in my MessageResources.properties files. I have also tested that on this jsp page the same error messages are available with <bean:write> Can any one please help me in this?

Regards,
Ashutosh

Posted by Ashutosh on Monday, 04.16.07 @ 03:07am | #14276

It does not work The function called on submit of the form is a problem

Posted by Prakash S on Thursday, 03.29.07 @ 15:31pm | #12911

how we are achieving form bean validations and javascript validations combindly using struts

Posted by sudheer on Tuesday, 03.20.07 @ 15:37pm | #12265

It is not perfectly working. Need to make some changes to work...

Posted by riaz on Thursday, 03.8.07 @ 18:00pm | #11156

is client side validation possible in struts 1.3.5 using struts validation framework?

Posted by sundeep on Thursday, 03.8.07 @ 14:42pm | #11126

what does "roseindia.net.AddressAction" send back to the user??

Posted by tvvraju on Friday, 03.2.07 @ 19:32pm | #10276

hi,
material was good,but in
AddressJavascriptValidation.jsp u mention
<html:javascript formName="AddressForm"/>,for that no implementation in form bean ,how to write javascript in form bean.

Regards
partha sarathi

Posted by m.partha sarathi on Monday, 02.26.07 @ 11:17am | #9637

Hai...I studied the tutorial on spring .I want a full fledged tutorial on spring and not as spring reference guide by spring foundation.

Could please any one help me?????



and one thing while i am typing in 'this' textarea ,the spellcheck is running.How can we achieve this??

Advanced Thanks ,
Venkat

Posted by Venkat Naresh on Friday, 02.23.07 @ 16:09pm | #8979

This application helped me understand the client side validations in Struts.It was really great.Thanks a lot.....

Posted by Kavitha on Monday, 02.19.07 @ 15:23pm | #8381

These are all about client side validation.How can i handle server side validation in struts.Plz any one help me.

Posted by harihara dash on Saturday, 02.17.07 @ 17:53pm | #8176

hi,
i am working on a project on struts where in the javascript vcode gets displayed sometimes and sometimes it doesnt ON MY JSP FILE..as it is working some times i dont think its problem regarding my syntax n things..so i am not sure where the problem is .for ex:i have a login.jsp and performing validation code over that jsp file..sometimes when the jsp file executed it runs properly and some times it doesnt..i am not getting consistent result..can anyone help me..plzzzz

Posted by gururaj on Friday, 02.16.07 @ 15:14pm | #8055

Its very useful for beginners,and it would be better ,if you designed a simple form in struts frame work for any particular language

Posted by Rajeshwaran.N on Wednesday, 02.7.07 @ 17:49pm | #6616

i want full validation in struts with examples

Posted by nizam on Wednesday, 02.7.07 @ 16:08pm | #6596

Material is Nice ,But i am facing problem to configure the <Data-source>

---anyOne Help

Kailash

Posted by Kailash on Monday, 02.5.07 @ 17:22pm | #6191

Nice tutorial

Posted by Nilanjan on Sunday, 02.4.07 @ 17:55pm | #5955

how can i validate date field with struts validator framwork.

Posted by d.sandeep on Wednesday, 01.31.07 @ 17:53pm | #4936

how can i validate one number field which accepts only numbers but should not be repeted.
so far i hava idea it need required & mask in depend but what will be solution for avoid repetation of nos. for which each no added by user will be unique.

Posted by d.sandeep on Wednesday, 01.31.07 @ 17:48pm | #4934

we need details about DynaValidatorForm

Posted by thulasi.a on Wednesday, 01.31.07 @ 14:58pm | #4894

This site is very useful for beginners.
Thx
Magesh

Posted by Magesh on Wednesday, 01.31.07 @ 12:34pm | #4869

Hi everything is good.but where we write code for this script method
return validateAddressForm(this)Then
what is the use of this function

sandy

Posted by sandhya on Monday, 01.29.07 @ 11:24am | #4607

This is verymuch helpfull for me.

Posted by PoornaChander on Thursday, 01.25.07 @ 17:35pm | #4351

i thanks to this site designers bcoz it is most useful to each and every beginers.

Posted by Rama krishna chowdary yella on Thursday, 01.25.07 @ 16:15pm | #4318

hi this is rama krishnaYella i am very happy for visiting this site.this is very useful to me

Posted by Rama krishna chowdary on Thursday, 01.25.07 @ 16:11pm | #4315

Hi,
This is Babu ,
i have a small doubt about this code i.e
in Jsp page (AddressJavascriptValidation.jsp )
where to write the code for this method <.. validateAddressForm(this)...>
and what is the use of this one
thanking you
Babu..

Posted by Babu on Wednesday, 01.17.07 @ 15:34pm | #3670

Hey thanks a lot..This demo app. helped me understand the client side validations in Struts.
Great work...
cheers...

Posted by Neeraj on Tuesday, 01.16.07 @ 22:07pm | #3638

Clearly explained.

Posted by Santosh on Tuesday, 01.16.07 @ 11:44am | #3607

It was really simple and clear, though it raised two questions for me which I ask you to reply.

Suppose that my Action class extends ActionDispatch which forwards to different *.jsp's and I need to validate all forms in those jsp files too:

OK:
1- what happens to input property of < action > element? which *.jsp will it point to?

2- Why in your example, it validates my form even when I'm visiting the page for the very first time and how can I prevent it?

By the way, this tutorial was really a great help.
Regards

Posted by Mahan Hooshmand Rad on Monday, 01.15.07 @ 23:01pm | #3558

This is a real good work .easy to understand. we can get the concepts by just a glimpse.Thanks.

Posted by kishore on Sunday, 01.14.07 @ 19:27pm | #3477

This website is very helful 2 me coz it explains clearly.
Thanx 4 d Support

Posted by S.Ruth Phebi on Friday, 01.12.07 @ 08:12am | #3259

how can i use user defined javascript function with validator framework?
Thanks for good tut.

Posted by Katty on Monday, 01.8.07 @ 00:03am | #2879


when i try to run validator framework app...it gives exception like... org.apache.jasper.JasperException: /pages/RegisterClientSideValidation.jsp(11,0) Unable to find setter method for attribute: locale

i did all the work..(with the help of ur tutorial)but it gives exception...

Please illustrate an example of server side validation also, by extending from class ValidatorForm. Also, mention, whether we need to explicitly define validate() method in tht class & set validate=true in struts-config for tht particular action.
Regards,
Rahul Nimbargi.

Posted by jagadeesh on Friday, 01.5.07 @ 12:16pm | #2672

Example and framework give is realy appritiable..
please give some pictorail flow , among beans and xml files.. Its dificult to understand with file is invoking during a cycle.

Posted by vivrek on Thursday, 01.4.07 @ 16:03pm | #2630

"Enabling the Validator plug- in"
no longer required in new version of struts.

keep up the good work !

Posted by Gaurang on Thursday, 01.4.07 @ 10:10am | #2607

simply very good example to start using validation framework.

Posted by Vivek Kumar on Wednesday, 01.3.07 @ 15:39pm | #2546

Hi,
Tutorial is good i learn many things,but if you would have explianed index page clearly than it would be very helpfull to understand.

Posted by shuja on Monday, 12.18.06 @ 13:20pm | #1187

It is good example and also small . I understood very easly.

Posted by Chiranjeevi chowdary on Saturday, 12.16.06 @ 13:45pm | #1100

material is fine.But index.jsp is not given properly ,what it will do and how it will link to other pages,it's my presonal opinion only

Posted by partha sarathi on Thursday, 12.14.06 @ 12:30pm | #1010

material is fine.But index.jsp is not given properly ,what it will do and how it will link to other pages,it's my presonal opinion only

Posted by partha sarathi on Thursday, 12.14.06 @ 12:09pm | #1009

hi every one says that it is a easy example but i can't understand
can u give me a very simple code and describe me flow for this

Posted by vishal on Thursday, 12.14.06 @ 10:53am | #1005

this tutorial is very good. I like verey much. Thank you. I learned very things.

Posted by Franklin on Monday, 12.11.06 @ 21:43pm | #855

Please illustrate an example of server side validation also, by extending from class ValidatorForm. Also, mention, whether we need to explicitly define validate() method in tht class & set validate=true in struts-config for tht particular action.
Regards,
Rahul Nimbargi.

Posted by Rahul Nimbargi on Monday, 12.11.06 @ 16:55pm | #848

please send me the complete material on struts validation

Posted by rajeev on Friday, 12.8.06 @ 09:49am | #621

GOOD AND INTERSTING...

Posted by bodepudi roop kishan chowdary on Wednesday, 12.6.06 @ 15:09pm | #495

Nice and Precise example .

Actually i have already know tiles framework.
So,i have understand easily

Posted by Rakesh Chandra Verma on Tuesday, 12.5.06 @ 15:42pm | #415

nice tutorial, simple and easy

Posted by sreejith on Thursday, 11.30.06 @ 16:38pm | #255

how i can validate email field with struts validator framwork.

Posted by mahendra bisen on Friday, 11.24.06 @ 16:45pm | #91

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Back to Tutorial

 

  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification

Tell A Friend
Your Friend Name
Search Tutorials

 

 
 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2007. All rights reserved.