Return-Path: X-Original-To: apmail-struts-user-archive@www.apache.org Delivered-To: apmail-struts-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 80B1ACD7B for ; Thu, 25 Dec 2014 14:33:24 +0000 (UTC) Received: (qmail 45396 invoked by uid 500); 25 Dec 2014 14:33:22 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 45353 invoked by uid 500); 25 Dec 2014 14:33:22 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 45341 invoked by uid 99); 25 Dec 2014 14:33:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Dec 2014 14:33:21 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yaragallamurali@gmail.com designates 209.85.216.181 as permitted sender) Received: from [209.85.216.181] (HELO mail-qc0-f181.google.com) (209.85.216.181) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Dec 2014 14:33:16 +0000 Received: by mail-qc0-f181.google.com with SMTP id m20so6576253qcx.26 for ; Thu, 25 Dec 2014 06:32:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=hSF8LEg1blLEEUFRsTS32a4/YEUGrZzPjXVSbTSDfhY=; b=XgBIFC1Ly1wM/OyjzIrs7zcDFMMVYLXPr2kBqinethr22rGy91IkbyREV4eifkPhV2 qDLMsObgNyg7flGOCkQzONAu47HpbxE6CEqTJFSu484Q6yedYt4/aj8QILVH/cPkXnB6 jE3NL0Y4jry4/NLbfHxGejubg9cdj+urvsB3hlg5UelVnVIPtY02YL+m4sKRE0gjOEuR JEYSccFfu7qxVQ8+ibrnYYx+T+nkdn1twJKkFfVxz+sVAf/O2VnjD/vtH64h8+oIEiQp OiLaL2qbnTqJRLu3bBu3d6rk5K00l1BFA0Z4a8CT+c1Dr2LNGPmgsGwt7nnJZGvn6Puy Gmtw== MIME-Version: 1.0 X-Received: by 10.224.135.138 with SMTP id n10mr63665408qat.45.1419517975806; Thu, 25 Dec 2014 06:32:55 -0800 (PST) Received: by 10.140.176.68 with HTTP; Thu, 25 Dec 2014 06:32:55 -0800 (PST) In-Reply-To: References: Date: Thu, 25 Dec 2014 20:02:55 +0530 Message-ID: Subject: Re: validation problem From: Yaragalla Muralidhar To: Struts Users Mailing List Content-Type: multipart/alternative; boundary=001a11c29762b34a83050b0b4892 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c29762b34a83050b0b4892 Content-Type: text/plain; charset=UTF-8 my struts config.xml is as below.kindly help me in solving this. /error.jsp /sampleReg/jsp/sampleRegTemplate.jsp /sampleReg/jsp/sampleRegTwoTemplate.jsp /sampleReg/jsp/sampleRegTemplate.jsp /sampleReg/jsp/sampleRegThreeTemplate.jsp /sampleReg/jsp/sampleRegFourTemplate.jsp *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ * On Thu, Dec 25, 2014 at 7:47 PM, Yaragalla Muralidhar < yaragallamurali@gmail.com> wrote: > The following is my action class > > package com.zedlabs.samplereg.action; > > import java.util.HashMap; > import java.util.Map; > > import org.apache.commons.logging.Log; > import org.apache.commons.logging.LogFactory; > > import com.zedlabs.action.ZedActionSupport; > import com.zedlabs.samplereg.dto.PDDto; > import com.zedlabs.samplereg.service.SampleRegService; > import com.zedlabs.samplereg.service.SampleRegServiceImpl; > > public class SampleRegOne extends ZedActionSupport { > > private static final long serialVersionUID = -8621676046564513353L; > private Log log=LogFactory.getLog(SampleRegOne.class); > private SampleRegService sampleReg=new SampleRegServiceImpl(); > private Map sampledrawnBy=new HashMap(); > private PDDto primaryDetails=new PDDto(); > @Override > public String execute() { > try{ > sampledrawnBy.put("zedlabs", "Zedlabs"); > sampleReg.savePrimaryDetails(primaryDetails); > }catch(Exception e){ > log.error(e.getMessage(), e); > } > return SUCCESS; > } > > public Map getSampledrawnBy() { > return sampledrawnBy; > } > > public void setSampledrawnBy(Map sampledrawnBy) { > this.sampledrawnBy = sampledrawnBy; > } > > public PDDto getPrimaryDetails() { > return primaryDetails; > } > > public void setPrimaryDetails(PDDto primaryDetails) { > this.primaryDetails = primaryDetails; > } > > > } > > > *Thanks and Regards,* > Muralidhar Yaragalla. > > *http://yaragalla.blogspot.in/ * > > On Thu, Dec 25, 2014 at 6:30 PM, Yaragalla Muralidhar < > yaragallamurali@gmail.com> wrote: > >> if the validation works then i can think about messages >> >> *Thanks and Regards,* >> Muralidhar Yaragalla. >> >> *http://yaragalla.blogspot.in/ * >> >> On Thu, Dec 25, 2014 at 6:30 PM, Yaragalla Muralidhar < >> yaragallamurali@gmail.com> wrote: >> >>> I have changed the theme to css_xhtml so it should display right? >>> >>> *Thanks and Regards,* >>> Muralidhar Yaragalla. >>> >>> *http://yaragalla.blogspot.in/ * >>> >>> On Thu, Dec 25, 2014 at 6:28 PM, Dave Newton >>> wrote: >>> >>>> Then you're doing something else wrong; never mind. >>>> >>>> You still won't see the messages unless you display them manually. >>>> >>>> On Thu, Dec 25, 2014 at 6:56 AM, Yaragalla Muralidhar >>>> wrote: >>>> > in my case validations are not happenening . Even though validation >>>> fails >>>> > it is moving to succeess rather than input jsp. >>>> > >>>> > *Thanks and Regards,* >>>> > Muralidhar Yaragalla. >>>> > >>>> > *http://yaragalla.blogspot.in/ * >>>> > >>>> > On Thu, Dec 25, 2014 at 6:15 PM, Dave Newton >>>> wrote: >>>> > >>>> >> Please read up on the themes. >>>> >> >>>> >> Nutshell: validation happens (this is trivially provable), validation >>>> >> message display does not. >>>> >> >>>> >> On Thu, Dec 25, 2014 at 6:41 AM, Yaragalla Muralidhar >>>> >> wrote: >>>> >> > is it because of the simple theam? In simple theam validations dont >>>> >> happen >>>> >> > is it? if i dont use simple theme view components are generating >>>> their >>>> >> own >>>> >> > decoration. Our custom alignment is going wrong. >>>> >> > >>>> >> > *Thanks and Regards,* >>>> >> > Muralidhar Yaragalla. >>>> >> > >>>> >> > *http://yaragalla.blogspot.in/ * >>>> >> > >>>> >> > On Thu, Dec 25, 2014 at 5:05 PM, Dave Newton < >>>> davelnewton@gmail.com> >>>> >> wrote: >>>> >> > >>>> >> >> Simple theme is simpler than you think. >>>> >> >> On Dec 25, 2014 4:46 AM, "Yaragalla Muralidhar" < >>>> >> yaragallamurali@gmail.com >>>> >> >> > >>>> >> >> wrote: >>>> >> >> >>>> >> >> > I am using struts2.3.20 and using simple theme. >>>> >> >> > >>>> >> >> > *Thanks and Regards,* >>>> >> >> > Muralidhar Yaragalla. >>>> >> >> > >>>> >> >> > *http://yaragalla.blogspot.in/ * >>>> >> >> > >>>> >> >> > On Thu, Dec 25, 2014 at 4:08 PM, Yaragalla Muralidhar < >>>> >> >> > yaragallamurali@gmail.com> wrote: >>>> >> >> > >>>> >> >> > > Hi i am having problem in turning on validations. I have >>>> written >>>> >> >> > > "actionClass-validation.xml" file in the same package as >>>> action >>>> >> class. >>>> >> >> > but >>>> >> >> > > the validations are not working. the following is my >>>> validation xml >>>> >> >> file. >>>> >> >> > > >>>> >> >> > > >>> >> >> 1.0.3//EN" >>>> >> >> > > " >>>> http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd"> >>>> >> >> > > >>>> >> >> > > >>>> >> >> > > >>>> >> >> > > >>>> >> >> > > Could >>>> >> not >>>> >> >> > find >>>> >> >> > > error.additional.details.passport.no! >>>> >> >> > > >>>> >> >> > > >>>> >> >> > > >>>> >> >> > > Could >>>> not >>>> >> >> find >>>> >> >> > > error.additional.details.pancard.no >>>> >> >> > > >>>> >> >> > > >>>> >> >> > > >>>> >> >> > > >>>> >> >> > > Could >>>> >> not >>>> >> >> > find >>>> >> >> > > error.additional.details.passport.no! >>>> >> >> > > >>>> >> >> > > >>>> >> >> > > >>>> >> >> > > >>>> >> >> > > >>>> >> >> > > >>>> >> >> > > do i have to do something else to turn on validations? >>>> >> >> > > >>>> >> >> > > >>>> >> >> > > *Thanks and Regards,* >>>> >> >> > > Muralidhar Yaragalla. >>>> >> >> > > >>>> >> >> > > *http://yaragalla.blogspot.in/ >>> >* >>>> >> >> > > >>>> >> >> > >>>> >> >> >>>> >> >>>> >> >>>> >> >>>> >> -- >>>> >> e: davelnewton@gmail.com >>>> >> m: 908-380-8699 >>>> >> s: davelnewton_skype >>>> >> t: @dave_newton >>>> >> b: Bucky Bits >>>> >> g: davelnewton >>>> >> so: Dave Newton >>>> >> >>>> >> --------------------------------------------------------------------- >>>> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >>>> >> For additional commands, e-mail: user-help@struts.apache.org >>>> >> >>>> >> >>>> >>>> >>>> >>>> -- >>>> e: davelnewton@gmail.com >>>> m: 908-380-8699 >>>> s: davelnewton_skype >>>> t: @dave_newton >>>> b: Bucky Bits >>>> g: davelnewton >>>> so: Dave Newton >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >>>> For additional commands, e-mail: user-help@struts.apache.org >>>> >>>> >>> >> > --001a11c29762b34a83050b0b4892--