<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" > <channel><title>Comments on: Struts2 Validation Framework Tutorial with Example</title> <atom:link href="http://viralpatel.net/blogs/2009/12/struts2-validation-framework-tutorial-example.html/feed" rel="self" type="application/rss+xml" /><link>http://viralpatel.net/blogs/2009/12/struts2-validation-framework-tutorial-example.html</link> <description>Tutorials, Java, J2EE, Struts, AJAX, JavaScript, CSS, Web 2.0, MySQL, Articles</description> <lastBuildDate>Wed, 08 Feb 2012 10:36:26 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Chandrasekhar</title><link>http://viralpatel.net/blogs/2009/12/struts2-validation-framework-tutorial-example.html/comment-page-1#comment-18730</link> <dc:creator>Chandrasekhar</dc:creator> <pubDate>Fri, 16 Dec 2011 11:59:19 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1949#comment-18730</guid> <description>Hi Viral, Your Tutorial is Simply Awesome. Even to say i started likely Struts after visiting your site. Thx. But When i executed the above code in the customer screen no validation is happening. Even if i leave all fields empty and click add customer, its adding. I had all names same as like how u gave in ur example...</description> <content:encoded><![CDATA[<p>Hi Viral, Your Tutorial is Simply Awesome. Even to say i started likely Struts after visiting your site.<br /> Thx. But When i executed the above code in the customer screen no validation is happening. Even if i leave all fields empty and click add customer, its adding. I had all names same as like how u gave in ur example&#8230;</p> ]]></content:encoded> </item> <item><title>By: Melev</title><link>http://viralpatel.net/blogs/2009/12/struts2-validation-framework-tutorial-example.html/comment-page-1#comment-16719</link> <dc:creator>Melev</dc:creator> <pubDate>Fri, 21 Oct 2011 03:06:24 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1949#comment-16719</guid> <description>Hi: validation on client side is not working, I don&#039;t see the file: validator-rules.xml, where can i get it? can you provide me some useful information? thanks in advance!</description> <content:encoded><![CDATA[<p>Hi: validation on client side is not working, I don&#8217;t see the file: validator-rules.xml, where can i get it? can you provide me some useful information? thanks in advance!</p> ]]></content:encoded> </item> <item><title>By: Mohd Adnan</title><link>http://viralpatel.net/blogs/2009/12/struts2-validation-framework-tutorial-example.html/comment-page-1#comment-15569</link> <dc:creator>Mohd Adnan</dc:creator> <pubDate>Thu, 04 Aug 2011 08:16:08 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1949#comment-15569</guid> <description>Hi,I would like to ask one thing? suppose our action contains any custom object say User user;so how to write validation code for user. I have mentioned user.id and user.firstName as key in validation.xml but it throws an exception while rendering page.help me??</description> <content:encoded><![CDATA[<p>Hi,</p><p>I would like to ask one thing? suppose our action contains any custom object say User user;</p><p>so how to write validation code for user. I have mentioned user.id and user.firstName as key in validation.xml but it throws an exception while rendering page.</p><p>help me??</p> ]]></content:encoded> </item> <item><title>By: Viral Patel</title><link>http://viralpatel.net/blogs/2009/12/struts2-validation-framework-tutorial-example.html/comment-page-1#comment-15424</link> <dc:creator>Viral Patel</dc:creator> <pubDate>Wed, 20 Jul 2011 18:58:01 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1949#comment-15424</guid> <description>@Lansana - The 404 error might be coming due to issues in dependencies. Check the server logs. You might have some other exceptions there.</description> <content:encoded><![CDATA[<p>@Lansana &#8211; The 404 error might be coming due to issues in dependencies. Check the server logs. You might have some other exceptions there.</p> ]]></content:encoded> </item> <item><title>By: pirateme</title><link>http://viralpatel.net/blogs/2009/12/struts2-validation-framework-tutorial-example.html/comment-page-1#comment-15366</link> <dc:creator>pirateme</dc:creator> <pubDate>Sat, 16 Jul 2011 10:39:34 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1949#comment-15366</guid> <description>org.apache.jasper.JasperException: /Customer.jsp (line: 11, column: 61) The JSP specification requires that an attribute name is preceded by whitespace org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88) org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:164) org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:153) org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1236) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1450) org.apache.jasper.compiler.Parser.parse(Parser.java:138) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:239) org.apache.jasper.compiler.ParserController.parse(ParserController.java:102) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:197) org.apache.jasper.compiler.Compiler.compile(Compiler.java:372) org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) org.apache.jasper.compiler.Compiler.compile(Compiler.java:339) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:601) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:344) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333) javax.servlet.http.HttpServlet.service(HttpServlet.java:722) org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:416)i am getting this error while running.Give me a solution...its urgent.....</description> <content:encoded><![CDATA[<p>org.apache.jasper.JasperException: /Customer.jsp (line: 11, column: 61) The JSP specification requires that an attribute name is preceded by whitespace<br /> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41)<br /> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)<br /> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)<br /> org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:164)<br /> org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:153)<br /> org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1236)<br /> org.apache.jasper.compiler.Parser.parseElements(Parser.java:1450)<br /> org.apache.jasper.compiler.Parser.parse(Parser.java:138)<br /> org.apache.jasper.compiler.ParserController.doParse(ParserController.java:239)<br /> org.apache.jasper.compiler.ParserController.parse(ParserController.java:102)<br /> org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:197)<br /> org.apache.jasper.compiler.Compiler.compile(Compiler.java:372)<br /> org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)<br /> org.apache.jasper.compiler.Compiler.compile(Compiler.java:339)<br /> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:601)<br /> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:344)<br /> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)<br /> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)<br /> javax.servlet.http.HttpServlet.service(HttpServlet.java:722)<br /> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:416)</p><p>i am getting this error while running.Give me a solution&#8230;its urgent&#8230;..</p> ]]></content:encoded> </item> <item><title>By: Lansana Bangura</title><link>http://viralpatel.net/blogs/2009/12/struts2-validation-framework-tutorial-example.html/comment-page-1#comment-15364</link> <dc:creator>Lansana Bangura</dc:creator> <pubDate>Fri, 15 Jul 2011 20:36:34 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1949#comment-15364</guid> <description>I have tried the tutorials, but I am having difficulties. Each time I run the HelloWorld example, I have a 404 error in the browser. I have used the latest version of tomcat, and Struts, is it because of this or I&#039;d have to use the older versions that were used by you?</description> <content:encoded><![CDATA[<p>I have tried the tutorials, but I am having difficulties. Each time I run the HelloWorld example, I have a 404 error in the browser. I have used the latest version of tomcat, and Struts, is it because of this or I&#8217;d have to use the older versions that were used by you?</p> ]]></content:encoded> </item> <item><title>By: Mike</title><link>http://viralpatel.net/blogs/2009/12/struts2-validation-framework-tutorial-example.html/comment-page-1#comment-15014</link> <dc:creator>Mike</dc:creator> <pubDate>Fri, 17 Jun 2011 07:55:30 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1949#comment-15014</guid> <description>Great tutorial so far.  I have one problem - when I add &#039;validate=&quot;true&quot;&#039; to enable client-side validation, I get the following error message in my browser:validateForm_customer is not definedI inspected the HTML source and the source of the included validation.js and utils.js files, and there&#039;s definitely no trace of that function.  Is there something else that needs to be done to enable JS generation?  I&#039;m using Struts 2.2.3 and Tomcat 6.0.32.Thanks!</description> <content:encoded><![CDATA[<p>Great tutorial so far.  I have one problem &#8211; when I add &#8216;validate=&#8221;true&#8221;&#8216; to enable client-side validation, I get the following error message in my browser:</p><p>validateForm_customer is not defined</p><p>I inspected the HTML source and the source of the included validation.js and utils.js files, and there&#8217;s definitely no trace of that function.  Is there something else that needs to be done to enable JS generation?  I&#8217;m using Struts 2.2.3 and Tomcat 6.0.32.</p><p>Thanks!</p> ]]></content:encoded> </item> <item><title>By: Viral Patel</title><link>http://viralpatel.net/blogs/2009/12/struts2-validation-framework-tutorial-example.html/comment-page-1#comment-14281</link> <dc:creator>Viral Patel</dc:creator> <pubDate>Mon, 07 Mar 2011 13:05:38 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1949#comment-14281</guid> <description>@Swapna - Thanks for the kind words :)</description> <content:encoded><![CDATA[<p>@Swapna &#8211; Thanks for the kind words <img src='http://viralpatel.net/blogs/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: swapna</title><link>http://viralpatel.net/blogs/2009/12/struts2-validation-framework-tutorial-example.html/comment-page-1#comment-14279</link> <dc:creator>swapna</dc:creator> <pubDate>Mon, 07 Mar 2011 12:09:56 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1949#comment-14279</guid> <description>Hi Viral , Thank u so much for providing such a Understandable tutorial. Really it&#039;&#039;s too Good.</description> <content:encoded><![CDATA[<p>Hi Viral ,<br /> Thank u so much for providing such a Understandable tutorial. Really it&#8221;s too Good.</p> ]]></content:encoded> </item> <item><title>By: Shekar</title><link>http://viralpatel.net/blogs/2009/12/struts2-validation-framework-tutorial-example.html/comment-page-1#comment-14272</link> <dc:creator>Shekar</dc:creator> <pubDate>Sun, 06 Mar 2011 03:33:20 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1949#comment-14272</guid> <description>Hi Viral, Thanks for this well documented tutorial. However when I tried the example code, I am mgetting the below mentioned error when i attempted to run the given code. This is happening when  I press the add customer buttonexceptionjava.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String at java.lang.String.compareTo(Unknown Source) at com.opensymphony.xwork2.validator.validators.AbstractRangeValidator.validate(AbstractRangeValidator.java:29) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:219) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:113) at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:100) at com.opensymphony.xwork2.validator.ValidationInterceptor.doBeforeInvocation(ValidationInterceptor.java:142) at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:148) at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)Would you please please help me in solving the problem</description> <content:encoded><![CDATA[<p>Hi Viral, Thanks for this well documented tutorial. However when I tried the example code, I am mgetting the below mentioned error when i attempted to run the given code. This is happening when  I press the add customer button</p><p>exception</p><p>java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String<br /> at java.lang.String.compareTo(Unknown Source)<br /> at com.opensymphony.xwork2.validator.validators.AbstractRangeValidator.validate(AbstractRangeValidator.java:29)<br /> at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:219)<br /> at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:113)<br /> at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:100)<br /> at com.opensymphony.xwork2.validator.ValidationInterceptor.doBeforeInvocation(ValidationInterceptor.java:142)<br /> at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:148)<br /> at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48)<br /> at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)<br /> at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)<br /> at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)<br /> at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)<br /> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)</p><p>Would you please please help me in solving the problem</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: viralpatel.net @ 2012-02-09 10:05:33 -->
