From sandraperry@example.org Sun Mar 01 04:17:58 2009 Return-Path: <sandraperry@example.org> Delivered-To: sandraperry@example.org Received: (qmail 13726 invoked from network); 1 Mar 2009 04:17:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Mar 2009 04:17:58 -0000 Received: (qmail 22373 invoked by uid 500); 1 Mar 2009 04:17:47 -0000 Delivered-To: sandraperry@example.org Received: (qmail 22334 invoked by uid 500); 1 Mar 2009 04:17:47 -0000 Mailing-List: contact sandraperry@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:sandraperry@example.org> List-Help: <mailto:sandraperry@example.org> List-Post: <mailto:sandraperry@example.org> List-Id: "Struts Users Mailing List" <user.struts.apache.org> Reply-To: "Struts Users Mailing List" <sandraperry@example.org> Delivered-To: mailing list sandraperry@example.org Received: (qmail 22323 invoked by uid 99); 1 Mar 2009 04:17:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Feb 2009 20:17:47 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sandraperry@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO an-out-0708.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Mar 2009 04:17:41 +0000 Received: by an-out-0708.google.com with SMTP id d14so1169178and.17 for <sandraperry@example.org>; Sat, 28 Feb 2009 20:17:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=F8fR6TgNGdHfYQ6bfoLcmnFvwYEjuZ6xD0XLMS3iHwY=; b=RG1G9abmj3VsK8VfJUTPC2Pvg71jkJi/Qe+WQBdTZWaqCKZA85g5Os1QpHXLpKGGAA W0RRCH3Xhlv6eVaoDpLuVwOGsiwpm/ggOVoBP3Q2vxRrfw+laiqLUZe1fF93GZrMzp3K 5i3h3DR9pzoLTyKV34dopxDDL9VCgblY7LV8k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=rgJbmRhm309JZXl2PGSmJDz1Pn03nfdrvnpPOpgyJSUAlDQIu0bJrMAXWqddU8wja6 vWaWcqPbKdKbCPkQlkkvmk1MOZcVe5Y4cNTH+b0NHG9H6B25Fj+1nOKVK8BSG9YGR3J0 LFrn83zUwX1QxxfaXxVYaWPkKmhGInkn2DSQk= MIME-Version: 1.0 Received: by 83.161.120.155 with SMTP id k2mr2863171iba.31.1235881040178; Sat, 28 Feb 2009 20:17:20 -0800 (PST) In-Reply-To: <sandraperry@example.org> References: <sandraperry@example.org> Date: Sat, 28 Feb 2009 23:17:20 -0500 Message-ID: <sandraperry@example.org> Subject: Re: How to specify namespace for s:submit. From: Zarar Siddiqi <sandraperry@example.org> To: Struts Users Mailing List <sandraperry@example.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org <s:submit/> submits a <s:form/>. If you want your two submit buttons to call two different actions, you'll need two different forms. If you can't do that then you could have an onclick handler for both the submit buttons and depending on which one the user clicks, you can change the action value of the form (<s:form action=3D"ChangeThisUsingJavaScript">). Zarar On Fri, Feb 27, 2009 at 2:54 PM, Leena Borle <sandraperry@example.org> wrote: > Hi, > =A0Probably this questions has been asked before, but could not find answ= er > on the list. > =A0How do I specify namespace for <s:submit> tag ? I have two buttons in = the > from and both of them call different action from different name space. Th= ese > are not AJAX actions > =A0I tries using <s:param name=3D"namespace" ..> and also tried to give j= ust > action=3D"/namespace1/MyAction". Does not work. > =A0Is this technically possible ? > > Thanks > Leena > --------------------------------------------------------------------- To unsubscribe, e-mail: sandraperry@example.org For additional commands, e-mail: sandraperry@example.org From sandraperry@example.org Sun Mar 01 13:52:59 2009 Return-Path: <sandraperry@example.org> Delivered-To: sandraperry@example.org Received: (qmail 81910 invoked from network); 1 Mar 2009 13:52:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Mar 2009 13:52:59 -0000 Received: (qmail 25717 invoked by uid 500); 1 Mar 2009 13:52:49 -0000 Delivered-To: sandraperry@example.org Received: (qmail 25683 invoked by uid 500); 1 Mar 2009 13:52:49 -0000 Mailing-List: contact sandraperry@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:sandraperry@example.org> List-Help: <mailto:sandraperry@example.org> List-Post: <mailto:sandraperry@example.org> List-Id: "Struts Users Mailing List" <user.struts.apache.org> Reply-To: "Struts Users Mailing List" <sandraperry@example.org> Delivered-To: mailing list sandraperry@example.org Received: (qmail 25672 invoked by uid 99); 1 Mar 2009 13:52:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Mar 2009 05:52:48 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO smtp102.prem.mail.ac4.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 01 Mar 2009 13:52:40 +0000 Received: (qmail 43085 invoked from network); 1 Mar 2009 13:52:19 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=gJQ+ENxp96beBfHJxxjVGSFr29XFWl2lAORdk1U8H/z96WTTVuzKN9N4gSYz+ZGZeCXv3zmcubOsoupvjN++0kFE8g59nFgfKYDJVRaxT07JOH+zpbhAFSrrOyz5ad0rJeNuADLBqqyAzcCGj+TMFEQjMga8SmaNzIihjUOLhp0= ; Received: from unknown (HELO mbp17.local) (sandraperry@example.org with plain) by smtp102.prem.mail.ac4.yahoo.com with SMTP; 1 Mar 2009 13:52:18 -0000 X-YMail-OSG: pf.vqh8VM1kc6qR9IXK.vu0oxSaxln3_b0FqR6X3Ef.xcNoUPZquiUWnQbdbtBCVU0EssZeVmONCJxre_MEjlUeozxyGOtubjmTUW9XT_.g0pEHsY3V6pzhb4YQysOG9zUxv.4KycXsg3ttCFxc85xNyOzCyBjV7HLpGR.SZ6BoGv3bkwWjU._lRCyJf X-Yahoo-Newman-Property: ymail-3 Message-ID: <sandraperry@example.org> Date: Sun, 01 Mar 2009 08:52:25 -0500 From: Dave Newton <sandraperry@example.org> User-Agent: Thunderbird 83.161.120.155 (Macintosh/20081209) MIME-Version: 1.0 To: Struts Users Mailing List <sandraperry@example.org> Subject: Re: How to specify namespace for s:submit. References: <sandraperry@example.org> <sandraperry@example.org> In-Reply-To: <sandraperry@example.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Zarar Siddiqi wrote: > <s:submit/> submits a <s:form/>. If you want your two submit buttons > to call two different actions, you'll need two different forms. <s:submit> can submit to different actions, I'm just not sure if the namespace can be specified. Dave --------------------------------------------------------------------- To unsubscribe, e-mail: sandraperry@example.org For additional commands, e-mail: sandraperry@example.org From sandraperry@example.org Sun Mar 01 14:56:46 2009 Return-Path: <sandraperry@example.org> Delivered-To: sandraperry@example.org Received: (qmail 19080 invoked from network); 1 Mar 2009 14:56:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Mar 2009 14:56:46 -0000 Received: (qmail 81456 invoked by uid 500); 1 Mar 2009 14:56:37 -0000 Delivered-To: sandraperry@example.org Received: (qmail 81424 invoked by uid 500); 1 Mar 2009 14:56:37 -0000 Mailing-List: contact sandraperry@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:sandraperry@example.org> List-Help: <mailto:sandraperry@example.org> List-Post: <mailto:sandraperry@example.org> List-Id: "Struts Users Mailing List" <user.struts.apache.org> Reply-To: "Struts Users Mailing List" <sandraperry@example.org> Delivered-To: mailing list sandraperry@example.org Received: (qmail 81413 invoked by uid 99); 1 Mar 2009 14:56:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Mar 2009 06:56:36 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO yw-out-2324.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Mar 2009 14:56:27 +0000 Received: by yw-out-2324.google.com with SMTP id 3so1204988ywj.17 for <sandraperry@example.org>; Sun, 01 Mar 2009 06:56:05 -0800 (PST) Received: by 83.161.120.155 with SMTP id w3mr1776318agb.106.1235919365269; Sun, 01 Mar 2009 06:56:05 -0800 (PST) Received: from wesw-laptop.localnet (cpe-98-31-31-91.woh.res.rr.com [83.161.120.155]) by mx.google.com with ESMTPS id 7sm6830293agc.25.283.161.120.155.56.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 01 Mar 2009 06:56:04 -0800 (PST) From: Wes Wannemacher <sandraperry@example.org> Reply-To: sandraperry@example.org Organization: WanTii, Inc. To: "Struts Users Mailing List" <sandraperry@example.org> Subject: Re: How to specify namespace for s:submit. Date: Sun, 1 Mar 2009 09:56:02 -0500 User-Agent: KMail/1.11.0 (Linux/2.6.27-12-generic; KDE/4.2.0; x86_64; ; ) References: <sandraperry@example.org> <sandraperry@example.org> <sandraperry@example.org> In-Reply-To: <sandraperry@example.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <sandraperry@example.org> X-Virus-Checked: Checked by ClamAV on apache.org On Sunday 01 March 2009 08:52:25 Dave Newton wrote: > Zarar Siddiqi wrote: > > <s:submit/> submits a <s:form/>. If you want your two submit buttons > > to call two different actions, you'll need two different forms. > > <s:submit> can submit to different actions, I'm just not sure if the > namespace can be specified. > > Dave > I thought we used to have an s:button for just this situation, I can't find it anywhere though... This could be done pretty easily with some javascript, add a button to the form, then put something like this in the onclick handler - (untested, more like pseudo-code ) "document.formName.action="<s:url action="otherAction" namespace="/otherNs"/>"; document.formName.submit();" I would suggest being a bit careful changing the form action... Just keep track of where you are pointing if you more than one handler that changes it. Another option would be to refactor your actions a bit. Add another action that your form submits to, then depending on the values submitted, then perform the logic in Action1 or Action2, or dispatch to one or the other based on the input. -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher --------------------------------------------------------------------- To unsubscribe, e-mail: sandraperry@example.org For additional commands, e-mail: sandraperry@example.org From sandraperry@example.org Sun Mar 01 17:43:38 2009 Return-Path: <sandraperry@example.org> Delivered-To: sandraperry@example.org Received: (qmail 84878 invoked from network); 1 Mar 2009 17:43:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Mar 2009 17:43:38 -0000 Received: (qmail 94063 invoked by uid 500); 1 Mar 2009 17:43:28 -0000 Delivered-To: sandraperry@example.org Received: (qmail 94033 invoked by uid 500); 1 Mar 2009 17:43:28 -0000 Mailing-List: contact sandraperry@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:sandraperry@example.org> List-Help: <mailto:sandraperry@example.org> List-Post: <mailto:sandraperry@example.org> List-Id: "Struts Users Mailing List" <user.struts.apache.org> Reply-To: "Struts Users Mailing List" <sandraperry@example.org> Delivered-To: mailing list sandraperry@example.org Received: (qmail 94022 invoked by uid 99); 1 Mar 2009 17:43:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Mar 2009 09:43:28 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sandraperry@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO kuber.nabble.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Mar 2009 17:43:20 +0000 Received: from isper.nabble.com ([83.161.120.155]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from <sandraperry@example.org>) id 1Ldpgp-0004UX-Hg for sandraperry@example.org; Sun, 01 Mar 2009 09:42:59 -0800 Message-ID: <sandraperry@example.org> Date: Sun, 1 Mar 2009 09:42:59 -0800 (PST) From: sajidbigler <sandraperry@example.org> To: sandraperry@example.org Subject: Re: Please help to get Arabic i18n(internationalization) using struts2.1.6 In-Reply-To: <sandraperry@example.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: sandraperry@example.org References: <sandraperry@example.org> <sandraperry@example.org> <sandraperry@example.org> <sandraperry@example.org> <sandraperry@example.org> <sandraperry@example.org> X-Virus-Checked: Checked by ClamAV on apache.org we can make it in Spanish,German and few but few we cant.which we cant is Arabic. is this a bug can i report to devlopment list?can any one help me out? :( -- View this message in context: http://www.nabble.com/Please-help-to-get-Arabic-i18n%28internationalization%29-using-struts2.1.6-tp22222312p22275384.html Sent from the Struts - User mailing list sandraperry@example.org. --------------------------------------------------------------------- To unsubscribe, e-mail: sandraperry@example.org For additional commands, e-mail: sandraperry@example.org From sandraperry@example.org Sun Mar 01 17:46:21 2009 Return-Path: <sandraperry@example.org> Delivered-To: sandraperry@example.org Received: (qmail 85628 invoked from network); 1 Mar 2009 17:46:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Mar 2009 17:46:21 -0000 Received: (qmail 99612 invoked by uid 500); 1 Mar 2009 17:46:12 -0000 Delivered-To: sandraperry@example.org Received: (qmail 99602 invoked by uid 500); 1 Mar 2009 17:46:12 -0000 Mailing-List: contact sandraperry@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:sandraperry@example.org> List-Help: <mailto:sandraperry@example.org> List-Post: <mailto:sandraperry@example.org> List-Id: "Struts Users Mailing List" <user.struts.apache.org> Reply-To: "Struts Users Mailing List" <sandraperry@example.org> Delivered-To: mailing list sandraperry@example.org Received: (qmail 99591 invoked by uid 99); 1 Mar 2009 17:46:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Mar 2009 09:46:12 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sandraperry@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO rv-out-0506.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Mar 2009 17:46:05 +0000 Received: by rv-out-0506.google.com with SMTP id b25so1851852rvf.47 for <sandraperry@example.org>; Sun, 01 Mar 2009 09:45:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=VrV+u3zFkY8FcpPYNFC96myyvDR7JYMO3FSW8AeAK9w=; b=JbKG2uyek0emocuya0cxsGaMZZ4KRmJRxnakXyY6MWpQIuXz6Yt44+h0e3e55LVfos 4fJoGfuoSdNp9sxNLlcPtWnUcDPqYXi1/80kNWPjNo123dvyzf721WgbnYHEVrytQT5b Y52zg/l9yz7dvt0JDs58J92+RAtxoKRynlP2E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=G0OfE+J/snE1x+5AGBJnC26GDvD542kS8vFtUKm6Y1qvI10tPgs1fUv/oNnwZ77jwY rwUreb3a/tP2LKIXzXK+Ez+Y927AT5UDyNs+GQK5JoFuf8DStcrFeEJ7Ujlg5Q+mL16B B/bw3yAKqn0A2QPlq4ZXBIrCFeH3jgxNXLQRI= MIME-Version: 1.0 Received: by 83.161.120.155 with SMTP id p1mr2532269wff.17.1235929545190; Sun, 01 Mar 2009 09:45:45 -0800 (PST) Date: Sun, 1 Mar 2009 23:15:45 +0530 Message-ID: <sandraperry@example.org> Subject: No Action mapped for namespace From: aum strut <sandraperry@example.org> To: Struts Users Mailing List <sandraperry@example.org> Content-Type: multipart/alternative; boundary=000e0cd28d78823006046412457c X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd28d78823006046412457c Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit HI All, i am facing action mapping problem and unable to figure it out where ia m doing wrong. i have a login.jsp page where there are only 2 fileds a loinid and password field i am using AJAX call for user login below is the code from my login.jsp page <s:form name="Login" id="Login" > <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left"> <input type="text" id="form_loginname" name="form_loginname" class="searchQuery" size="20" value="" ONKEYDOWN="javascript:return displayKeyCode(event)"/> </td> <td align="left"><input id="form_pw" name="form_pw" size="20" class="searchQuery" type="password" ONKEYDOWN="javascript:return displayKeyCode(event)"/></td> </tr> <tr> <td width="58"><input type="button" name="login" class="butlogin" id="Login" value=" " onclick="return submitForm()" /></td> </tr></s:form> i am using the following javascript code to submit my form if(o.responseText=="SUCCESS"){ document.Login.action="Welcome.action"; document.Login.submit(); } it is able to validate the user input from the database. in the struts.xml file i have defined the Welcome action as follows: <struts> <package name="PublicUserAccess" namespace="/secured" extends= "struts-default"> <action name="LoginForm"> <result>/index.jsp</result> </action> </package> <package name="com.raisonne.billsmart.user.action" extends="ssl-default"> <result-types> <result-type name="customXML" class="com.raisonne.billsmart.customresulttypes.CustomXMLResultType" /> </result-types> <interceptors> <interceptor name="authenticationInterceptor" class="com.raisonne.billsmart.utl.AuthenticationInterceptor" /> <interceptor-stack name="SecureStack"> <interceptor-ref name="authenticationInterceptor" /> <interceptor-ref name="defaultStack"/> </interceptor-stack> </interceptors> <global-results> <result name="login" type="redirect"> /LoginForm.action </result> </global-results> <action name="Welcome"> <result name="success">/Templates/User/CustomerRegistrationFrame.jsp</result > </action> </package> </struts> but it is giving me the following error: Could not find action or result There is no Action mapped for namespace / and action name Welcome here is the error stacjk trace for refrence 07:55:54,937DEBUG com.opensymphony.xwork2.DefaultActionProxy {1}:65 -Creating an DefaultActionProxy for namespace / and action name Welcome 07:55:54,953ERROR org.apache.struts2.dispatcher.Dispatcher {1}:512 -Could not find action or result There is no Action mapped for namespace / and action name Welcome. - [unknown location] at com.opensymphony.xwork2.DefaultActionProxy.prepare(* DefaultActionProxy.java:186*) at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(* StrutsActionProxyFactory.java:41*) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(* Dispatcher.java:494*) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(* FilterDispatcher.java:419*) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(* ApplicationFilterChain.java:235*) at org.apache.catalina.core.ApplicationFilterChain.doFilter(* ApplicationFilterChain.java:206*) at org.apache.catalina.core.StandardWrapperValve.invoke(* StandardWrapperValve.java:230*) at org.apache.catalina.core.StandardContextValve.invoke(* StandardContextValve.java:175*) at org.apache.catalina.core.StandardHostValve.invoke(* StandardHostValve.java:128*) at org.apache.catalina.valves.ErrorReportValve.invoke(* ErrorReportValve.java:104*) at org.apache.catalina.core.StandardEngineValve.invoke(* StandardEngineValve.java:109*) at org.apache.catalina.connector.CoyoteAdapter.service(* CoyoteAdapter.java:261*) at org.apache.coyote.http11.Http11Processor.process(* Http11Processor.java:844*) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(* Http11Protocol.java:581*) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(*JIoEndpoint.java:447*) at java.lang.Thread.run(Unknown Source) 07:55:54,953DEBUG com.opensymphony.xwork2.config.ConfigurationManager {1}:156 -Checking ConfigurationProviders for reload. if any one any cluue where things are going wrong pleaes suggest thanks in advance -s --000e0cd28d78823006046412457c-- From sandraperry@example.org Sun Mar 01 20:02:22 2009 Return-Path: <sandraperry@example.org> Delivered-To: sandraperry@example.org Received: (qmail 37413 invoked from network); 1 Mar 2009 20:02:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Mar 2009 20:02:22 -0000 Received: (qmail 82378 invoked by uid 500); 1 Mar 2009 20:02:12 -0000 Delivered-To: sandraperry@example.org Received: (qmail 82350 invoked by uid 500); 1 Mar 2009 20:02:12 -0000 Mailing-List: contact sandraperry@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:sandraperry@example.org> List-Help: <mailto:sandraperry@example.org> List-Post: <mailto:sandraperry@example.org> List-Id: "Struts Users Mailing List" <user.struts.apache.org> Reply-To: "Struts Users Mailing List" <sandraperry@example.org> Delivered-To: mailing list sandraperry@example.org Received: (qmail 82338 invoked by uid 99); 1 Mar 2009 20:02:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Mar 2009 12:02:12 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sandraperry@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO yx-out-2324.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Mar 2009 20:02:04 +0000 Received: by yx-out-2324.google.com with SMTP id 31so1234201yxl.17 for <sandraperry@example.org>; Sun, 01 Mar 2009 12:01:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=yx10P01/qB8XchLxH8ykTZcl7bvn2GOrXv8t7cI8KnQ=; b=os6PmzBdh+t1cTQGv5QYuzTdR04KUYh7bJEfVXZgNmj4jMkEgsW4xUvGiXFe+Ueoxt 6ecTy/6FUXt5a8oSRh1Wn4OXP6ILzpny1AhT/PNnDeVMoECNtVHJL/pyQ2tMlyIYbjvO 58yYbHsPbwEz5CWhFfHYXnDAQHfoctQeWPkSM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=XBX+ArMg6y6n8EkARnDi8SmvPxbL3Y1bUZH7R5Hc6Gpcu7E8c2K5KE1xS8Zc8ScAFs eQSyc5m4HHH8SnWbeEp/XjLlbs7z+YsZzVaPdoGlsBB/aPxVO1vz8MnHDnSWRg9IOpSd 3GKGTSBmDakGzQBkPzm82+FUNOh4s5RPY/zUs= MIME-Version: 1.0 Received: by 83.161.120.155 with SMTP id p12mr3003727ibp.50.1235937703616; Sun, 01 Mar 2009 12:01:43 -0800 (PST) In-Reply-To: <sandraperry@example.org> References: <sandraperry@example.org> <sandraperry@example.org> <sandraperry@example.org> Date: Sun, 1 Mar 2009 15:01:43 -0500 Message-ID: <sandraperry@example.org> Subject: Re: How to specify namespace for s:submit. From: Zarar Siddiqi <sandraperry@example.org> To: Struts Users Mailing List <sandraperry@example.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org > <s:submit> can submit to different actions, I'm just not sure if the > namespace can be specified. How? Wouldn't the Struts tag just render a form tag with two different submit buttons and clicking on either one will invoke the action defined in the form tag? I don't see how this is possible without the use of JavaScript? On Sun, Mar 1, 2009 at 8:52 AM, Dave Newton <sandraperry@example.org> wrote: > Zarar Siddiqi wrote: >> >> <s:submit/> submits a <s:form/>. =A0If you want your two submit buttons >> to call two different actions, you'll need two different forms. > > <s:submit> can submit to different actions, I'm just not sure if the > namespace can be specified. > > Dave > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: sandraperry@example.org > For additional commands, e-mail: sandraperry@example.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: sandraperry@example.org For additional commands, e-mail: sandraperry@example.org From sandraperry@example.org Sun Mar 01 23:47:52 2009 Return-Path: <sandraperry@example.org> Delivered-To: sandraperry@example.org Received: (qmail 29438 invoked from network); 1 Mar 2009 23:47:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Mar 2009 23:47:52 -0000 Received: (qmail 27986 invoked by uid 500); 1 Mar 2009 23:47:41 -0000 Delivered-To: sandraperry@example.org Received: (qmail 27950 invoked by uid 500); 1 Mar 2009 23:47:41 -0000 Mailing-List: contact sandraperry@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:sandraperry@example.org> List-Help: <mailto:sandraperry@example.org> List-Post: <mailto:sandraperry@example.org> List-Id: "Struts Users Mailing List" <user.struts.apache.org> Reply-To: "Struts Users Mailing List" <sandraperry@example.org> Delivered-To: mailing list sandraperry@example.org Received: (qmail 27939 invoked by uid 99); 1 Mar 2009 23:47:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Mar 2009 15:47:41 -0800 X-ASF-Spam-Status: No, hits=3.7 required=10.0 tests=DNS_FROM_OPENWHOIS,FORGED_HOTMAIL_RCVD2,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sandraperry@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO kuber.nabble.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Mar 2009 23:47:33 +0000 Received: from isper.nabble.com ([83.161.120.155]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from <sandraperry@example.org>) id 1LdvNI-0002l7-7x for sandraperry@example.org; Sun, 01 Mar 2009 15:47:12 -0800 Message-ID: <sandraperry@example.org> Date: Sun, 1 Mar 2009 15:47:12 -0800 (PST) From: chumbobumbo <sandraperry@example.org> To: sandraperry@example.org Subject: Struts Ajax Newbie MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: sandraperry@example.org X-Virus-Checked: Checked by ClamAV on apache.org This is probably so basic - I'll put my flame proof suit just in case. I have a 2 combos and (yes ;-) I would like the second one to be loaded depending on what's been chosen in the first one, so in my action execute method I have: model.setList(service.getData1()); my struts.xml looks like this (note that I am using spring and I am hitting the same action 'class' (demoAction): <action name="firstAction" class="demoAction" method="execute"> <result name="success">jsp/output.jsp</result> <result name="error">jsp/error.jsp</result> </action> <action name="secondAction" class="demoAction" method="second"> <result name="success">jsp/second.jsp</result> <result name="error">jsp/error.jsp</result> </action> in my output jsp I have: ..... <td><s:select list="model.list" listKey="entry.code" listValue="entry.desc" name="selection.listCode" onchange="javascript:load_second_list();return false;"></s:select></td> </tr> <tr> <td> <s:url id="second_url" action="loadSecond.action" /> <s:div showLoadingText="false" id="second" href="%{second}" theme="ajax" listenTopics="load_second_list" formId="demo"/> </td> </tr> that's all fine and dandy, but when I call loadSecond.action I find that my model is re-initialised anew (i.e. as the action is marked 'prototype' in spring config, the data for the first combo is no longer there) obviously I need data in the 1st combo to be available in the resulting page, as the user should be allowed to change the first selection (that would in turn relaod the second combo again). Is there a way to serialize/cache the data that was retrieved in the first call so that it is available in the subsequent call other than putting it in the session? Thanks, 99-L Blue -- View this message in context: http://www.nabble.com/Struts-Ajax-Newbie-tp22279792p22279792.html Sent from the Struts - User mailing list sandraperry@example.org. --------------------------------------------------------------------- To unsubscribe, e-mail: sandraperry@example.org For additional commands, e-mail: sandraperry@example.org From sandraperry@example.org Mon Mar 02 00:28:21 2009 Return-Path: <sandraperry@example.org> Delivered-To: sandraperry@example.org Received: (qmail 41942 invoked from network); 2 Mar 2009 00:28:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Mar 2009 00:28:21 -0000 Received: (qmail 48746 invoked by uid 500); 2 Mar 2009 00:28:11 -0000 Delivered-To: sandraperry@example.org Received: (qmail 48735 invoked by uid 500); 2 Mar 2009 00:28:11 -0000 Mailing-List: contact sandraperry@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:sandraperry@example.org> List-Help: <mailto:sandraperry@example.org> List-Post: <mailto:sandraperry@example.org> List-Id: "Struts Users Mailing List" <user.struts.apache.org> Reply-To: "Struts Users Mailing List" <sandraperry@example.org> Delivered-To: mailing list sandraperry@example.org Received: (qmail 48724 invoked by uid 99); 2 Mar 2009 00:28:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Mar 2009 16:28:11 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO smtp108.prem.mail.ac4.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 02 Mar 2009 00:28:03 +0000 Received: (qmail 95337 invoked from network); 2 Mar 2009 00:27:41 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=apm359OVSXLSUTBvi7TJG6miPqOeAUuCJgReSwNIUhB+6qrhkczL8csKPPq14DR1RuHaeUp2GP7MOgYp3adj53COLvNDrLHmKTlgnk6zMWlfti3FjqSaxyatqVcoudLLGTgNVOmVg1vVYwKKMPaL1NqPeHZ2GXT/9FOmByogwmY= ; Received: from unknown (HELO mbp17.local) (sandraperry@example.org with plain) by smtp108.prem.mail.ac4.yahoo.com with SMTP; 2 Mar 2009 00:27:41 -0000 X-YMail-OSG: xGx5e.YVM1lEcBcfCS2mEsbEIgiMu1Sdh1yIBPrhaHwYnX8nygN1YZz_Vzc5N9tcVMET9t_j16pZ61h_PVDO5aL.tkiqx9kBoLqI0Q89SE_xrZ1_ZOHnrQzEbTgZJBdz856G0HyEVMsnXMWSvJo1hyoc96xxOorsggg9LEjaFihiry9HhYh.DWBAmdhO X-Yahoo-Newman-Property: ymail-3 Message-ID: <sandraperry@example.org> Date: Sun, 01 Mar 2009 19:27:47 -0500 From: Dave Newton <sandraperry@example.org> User-Agent: Thunderbird 83.161.120.155 (Macintosh/20081209) MIME-Version: 1.0 To: Struts Users Mailing List <sandraperry@example.org> Subject: Re: How to specify namespace for s:submit. References: <sandraperry@example.org> <sandraperry@example.org> <sandraperry@example.org> <sandraperry@example.org> In-Reply-To: <sandraperry@example.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Zarar Siddiqi wrote: >> <s:submit> can submit to different actions, I'm just not sure if the >> namespace can be specified. > > How? Using the "action" attribute (optionally specifying the method with the "method" attribute). Dave --------------------------------------------------------------------- To unsubscribe, e-mail: sandraperry@example.org For additional commands, e-mail: sandraperry@example.org From sandraperry@example.org Mon Mar 02 00:32:25 2009 Return-Path: <sandraperry@example.org> Delivered-To: sandraperry@example.org Received: (qmail 43694 invoked from network); 2 Mar 2009 00:32:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Mar 2009 00:32:25 -0000 Received: (qmail 52630 invoked by uid 500); 2 Mar 2009 00:32:08 -0000 Delivered-To: sandraperry@example.org Received: (qmail 52609 invoked by uid 500); 2 Mar 2009 00:32:08 -0000 Mailing-List: contact sandraperry@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:sandraperry@example.org> List-Help: <mailto:sandraperry@example.org> List-Post: <mailto:sandraperry@example.org> List-Id: "Struts Users Mailing List" <user.struts.apache.org> Reply-To: "Struts Users Mailing List" <sandraperry@example.org> Delivered-To: mailing list sandraperry@example.org Received: (qmail 52595 invoked by uid 99); 2 Mar 2009 00:32:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Mar 2009 16:32:07 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO smtp110.prem.mail.ac4.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 02 Mar 2009 00:31:57 +0000 Received: (qmail 31615 invoked from network); 2 Mar 2009 00:31:36 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=oiulcrrqx5ztwMbu2I0lAr8gwSjSBIrJTo+PiHzhnyfnemZP3/RjUXQBr28IE5bl6ikGHisgsOeroEgap8ffjP+mkj8JAJzgcm6VBheX8pdBUCtTZFM+IH1Vr7ZP8S5Yfu26ddTP/ul3uEsM2yiv9Zx0p1Vff6Otqku9huoSldM= ; Received: from unknown (HELO mbp17.local) (sandraperry@example.org with plain) by smtp110.prem.mail.ac4.yahoo.com with SMTP; 2 Mar 2009 00:31:36 -0000 X-YMail-OSG: l7X4mbQVM1kxs1AYqP5yTorXy6fC20EcMvBOBgjjB.OU5kIvSvRbDhkLQweRWUUIOliA.Iemr3IVg.FMd9LG0Hvym9yfGRLqPw5ieZUTQ_iKbqNvqftFOtSL6VeKJlewlysCHELbE4dlXTEElrtsvbNtCA8yKOOIzWmSVtjBOjCnKBIvP1LdIt.ywdKx X-Yahoo-Newman-Property: ymail-3 Message-ID: <sandraperry@example.org> Date: Sun, 01 Mar 2009 19:31:42 -0500 From: Dave Newton <sandraperry@example.org> User-Agent: Thunderbird 83.161.120.155 (Macintosh/20081209) MIME-Version: 1.0 To: Struts Users Mailing List <sandraperry@example.org> Subject: Re: Please help to get Arabic i18n(internationalization) using struts2.1.6 References: <sandraperry@example.org> <sandraperry@example.org> <sandraperry@example.org> <sandraperry@example.org> <sandraperry@example.org> <sandraperry@example.org> <sandraperry@example.org> In-Reply-To: <sandraperry@example.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org sajidbigler wrote: > we can make it in Spanish,German and few but few we cant.which we cant is > Arabic. is this a bug can i report to devlopment list?can any one help me > out? :( Can you describe the exact problem again? Under what circumstances are you unable to get localized Arabic messages? Dave --------------------------------------------------------------------- To unsubscribe, e-mail: sandraperry@example.org For additional commands, e-mail: sandraperry@example.org From sandraperry@example.org Mon Mar 02 01:14:44 2009 Return-Path: <sandraperry@example.org> Delivered-To: sandraperry@example.org Received: (qmail 60293 invoked from network); 2 Mar 2009 01:14:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Mar 2009 01:14:44 -0000 Received: (qmail 77424 invoked by uid 500); 2 Mar 2009 01:14:35 -0000 Delivered-To: sandraperry@example.org Received: (qmail 77399 invoked by uid 500); 2 Mar 2009 01:14:35 -0000 Mailing-List: contact sandraperry@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:sandraperry@example.org> List-Help: <mailto:sandraperry@example.org> List-Post: <mailto:sandraperry@example.org> List-Id: "Struts Users Mailing List" <user.struts.apache.org> Reply-To: "Struts Users Mailing List" <sandraperry@example.org> Delivered-To: mailing list sandraperry@example.org Received: (qmail 77388 invoked by uid 99); 2 Mar 2009 01:14:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Mar 2009 17:14:35 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sandraperry@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO imo-d04.mx.aol.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 01:14:23 +0000 Received: from sandraperry@example.org by imo-d04.mx.aol.com (mail_out_v39.1.) id t.bd4.47193d6d (37056) for <sandraperry@example.org>; Sun, 1 Mar 2009 20:13:58 -0500 (EST) Received: from smtprly-ma03.mx.aol.com (smtprly-ma03.mx.aol.com [83.161.120.155]) by cia-db04.mx.aol.com (v123.3) with ESMTP id MAILCIADB042-5c5549ab32cf305; Sun, 01 Mar 2009 20:13:57 -0500 Received: from WEBMAIL-MY12 (webmail-my12.sim.aol.com [83.161.120.155]) by smtprly-ma03.mx.aol.com (v121_r5.5) with ESMTP id MAILSMTPRLYMA033-5c5549ab32cf305; Sun, 01 Mar 2009 20:13:51 -0500 References: <sandraperry@example.org> <sandraperry@example.org> <sandraperry@example.org> To: sandraperry@example.org Subject: Re: Nested iterator struts 2.1.6 -- automatically rebuild the collection Date: Sun, 01 Mar 2009 20:13:51 -0500 X-AOL-IP: 83.161.120.155 In-Reply-To: <sandraperry@example.org> X-MB-Message-Source: WebUI MIME-Version: 1.0 From: sandraperry@example.org X-MB-Message-Type: User Content-Type: multipart/alternative; boundary="--------MB_8CB68EB4841706B_136C_33D4_WEBMAIL-MY12.sysops.aol.com" X-Mailer: AOL Webmail 41421-STANDARD Received: from 83.161.120.155 by WEBMAIL-MY12.sysops.aol.com (83.161.120.155) with HTTP (WebMailUI); Sun, 01 Mar 2009 20:13:51 -0500 Message-Id: <sandraperry@example.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Flag: NO ----------MB_8CB68EB4841706B_136C_33D4_WEBMAIL-MY12.sysops.aol.com Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" Hi Phan, ??? I wrestled with this problem until I was out of my depth.? I tried it with an ArrayList<ArrayList<Double>> initialized as [[1.0, 2.0, 3.0], [7.0, 8.0, 9.0]] and on resubmission the data keeps getting flattened to [[[1.0]], [[2.0]], [[3.0]], [[7.0]], [[8.0]], [[9.0]]] :( Here is what I have dug up so far and hopefully someone who knows the code better might take it further: The ArrayList is represented in the action by an instance of com.opensymphony.xwork2.util.XWorkList? (a subclass of ArrayList). It overrides the ArrayList?addAll(Collection c) method as listed below. It??loops through the collection and delegates to the add(Object element). The element (which in our case is the inner ArrayList) is passed by add(Object element)?to the convert method which *does not check if it is a collection and loop*. I think that is the crux of the problem. ?@Override ??? public boolean addAll(Collection c) { ??????? if (c == null) { ??????????? throw new NullPointerException("Collection to add is null"); ??????? } ??????? for (Object aC : c) { ??????????? add(aC); ??????? } ??????? return true; ??? } ? @Override ??? public boolean add(Object element) { ??????? element = convert(element); ??????? return super.add(element); ??? } private Object convert(Object element) { ??????? if ((element != null) && !clazz.isAssignableFrom(element.getClass())) { ??????????? // convert to correct type ??????????? if (LOG.isDebugEnabled()) { ??????????????? LOG.debug("Converting from " + element.getClass().getName() + " to " + clazz.getName()); ??????????? } ??????????? Map<String, Object> context = ActionContext.getContext().getContextMap(); ??????????? element = conv.convertValue(context, null, null, null, element, clazz);? //My comment -- conv is a reference to an instance of XWorkConverter ??????? } ??????? return element; ??? } Sorry I could not solve the problem satisfactorily Chris ================================== -----Original Message----- From: Phan, Hienthuc T <sandraperry@example.org> To: Struts Users Mailing List <sandraperry@example.org> Sent: Mon, 23 Feb 2009 8:24 pm Subject: RE: Nested iterator struts 2.1.6 -- automatically rebuild the collection Yeah, I think my OGNL expression usage is not correct but I tried several combination, none of them work. If I declare my variable as: ArrayList<ArrayList<User>> userList = new ArrayList<ArrayList<User>>(); //getter and settter I tried this on JSP and it didn't work. <s:iterator value="userList" id="userList" status="outerStatus"> <s:iterator value="#userList" status="innerStatus"> <s:textfield name="userList[%{outerStatus.index}].[%{innerStatus.index}].name"/> <s:textfield name="userList[%{outerStatus.index}].[%{innerStatus.index}].email"/> <s:textfield name="userList[%{outerStatus.index}].[%{innerStatus.index}].address"/> </s:iterator> </s:iterator> -----Original Message----- From: sandraperry@example.org [mailto:sandraperry@example.org] Sent: Friday, February 20, 2009 7:27 PM To: sandraperry@example.org Subject: Re: Nested iterator struts 2.1.6 -- automatically rebuild the collection What do you have inside the iterator tag?? Hard to diagnose without knowing what you have. Some possible causes: A a possible OGNL expression error inside your iterator tag. If the Sample objects are not built-in java objects (String, Date..) you might be having type conversion problems? Are you sending the information back to the same action or is there a possible mix-up in the attributes of your tags Chris -----Original Message----- From: Phan, Hienthuc T <sandraperry@example.org> To: Struts Users Mailing List <sandraperry@example.org> Sent: Mon, 9 Feb 2009 5:46 pm Subject: Nested iterator struts 2.1.6 -- automatically rebuild the collection Hi, Using <s:iterator ..> tag, how do you instruct struts to rebuild the collection automatically? I have a List of List of Sample objects I use <s:iterator > tag to loop through and display data for user to make changes The displaying part is OK; however, when the form is submitted, the List of List of Sample objects is not populated. In Struts 1.x, the tag <logic:iterator > was used and if we add indexed=true for each element inside the < logic:iterator > tag, Struts automatically rebuild the collection. Is there a way that it can accomplish with <s:iterator>? Thank you. Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. --------------------------------------------------------------------- To unsubscribe, e-mail: sandraperry@example.org For additional commands, e-mail: sandraperry@example.org ----------MB_8CB68EB4841706B_136C_33D4_WEBMAIL-MY12.sysops.aol.com-- From sandraperry@example.org Mon Mar 02 01:47:48 2009 Return-Path: <sandraperry@example.org> Delivered-To: sandraperry@example.org Received: (qmail 76395 invoked from network); 2 Mar 2009 01:47:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Mar 2009 01:47:48 -0000 Received: (qmail 91093 invoked by uid 500); 2 Mar 2009 01:47:38 -0000 Delivered-To: sandraperry@example.org Received: (qmail 91063 invoked by uid 500); 2 Mar 2009 01:47:38 -0000 Mailing-List: contact sandraperry@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:sandraperry@example.org> List-Help: <mailto:sandraperry@example.org> List-Post: <mailto:sandraperry@example.org> List-Id: "Struts Users Mailing List" <user.struts.apache.org> Reply-To: "Struts Users Mailing List" <sandraperry@example.org> Delivered-To: mailing list sandraperry@example.org Received: (qmail 91051 invoked by uid 99); 2 Mar 2009 01:47:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Mar 2009 17:47:38 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO ice.dnsprotect.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 01:47:30 +0000 Received: from [83.161.120.155] (helo=[83.161.120.155]) by ice.dnsprotect.com with esmtpa (Exim 4.69) (envelope-from <sandraperry@example.org>) id 1LdxF5-0000iS-JL for sandraperry@example.org; Sun, 01 Mar 2009 20:46:52 -0500 Subject: Re: Struts Ajax Newbie From: Mileidys Gonzalez Prieto <sandraperry@example.org> To: Struts Users Mailing List <sandraperry@example.org> In-Reply-To: <sandraperry@example.org> References: <sandraperry@example.org> Content-Type: text/plain Organization: I-frontier Date: Sun, 01 Mar 2009 22:47:05 -0300 Message-Id: <1235958425.11328.1.camel@milo-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ice.dnsprotect.com X-AntiAbuse: Original Domain - struts.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - i-frontier.net X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org Well, for to do actions like that in my code I'm using AjaxTags. http://ajaxtags.sourceforge.net/ Is really easy to use... On Sun, 2009-03-01 at 15:47 -0800, chumbobumbo wrote: > This is probably so basic - I'll put my flame proof suit just in case. > > I have a 2 combos and (yes ;-) I would like the second one to be loaded > depending on what's been chosen in the first one, so in my action execute > method I have: > > model.setList(service.getData1()); > > my struts.xml looks like this (note that I am using spring and I am hitting > the same action 'class' (demoAction): > > <action name="firstAction" class="demoAction" > method="execute"> > <result name="success">jsp/output.jsp</result> > <result name="error">jsp/error.jsp</result> > </action> > <action name="secondAction" class="demoAction" method="second"> > <result name="success">jsp/second.jsp</result> > <result name="error">jsp/error.jsp</result> > </action> > > in my output jsp I have: > > ..... > > <td><s:select list="model.list" listKey="entry.code" > listValue="entry.desc" name="selection.listCode" > onchange="javascript:load_second_list();return > false;"></s:select></td> > </tr> > > <tr> > <td> > <s:url id="second_url" action="loadSecond.action" /> > <s:div showLoadingText="false" id="second" href="%{second}" > theme="ajax" > listenTopics="load_second_list" formId="demo"/> > </td> > </tr> > > that's all fine and dandy, but when I call loadSecond.action I find that my > model is re-initialised anew (i.e. as the action is marked 'prototype' in > spring config, the data for the first combo is no longer there) > > obviously I need data in the 1st combo to be available in the resulting > page, as the user should be allowed to change the first selection (that > would in turn relaod the second combo again). > > Is there a way to serialize/cache the data that was retrieved in the first > call so that it is available in the subsequent call other than putting it in > the session? > > Thanks, > > 99-L Blue --------------------------------------------------------------------- To unsubscribe, e-mail: sandraperry@example.org For additional commands, e-mail: sandraperry@example.org From sandraperry@example.org Mon Mar 02 02:49:19 2009 Return-Path: <sandraperry@example.org> Delivered-To: sandraperry@example.org Received: (qmail 2020 invoked from network); 2 Mar 2009 02:49:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Mar 2009 02:49:19 -0000 Received: (qmail 19251 invoked by uid 500); 2 Mar 2009 02:49:09 -0000 Delivered-To: sandraperry@example.org Received: (qmail 19218 invoked by uid 500); 2 Mar 2009 02:49:08 -0000 Mailing-List: contact sandraperry@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:sandraperry@example.org> List-Help: <mailto:sandraperry@example.org> List-Post: <mailto:sandraperry@example.org> List-Id: "Struts Users Mailing List" <user.struts.apache.org> Reply-To: "Struts Users Mailing List" <sandraperry@example.org> Delivered-To: mailing list sandraperry@example.org Received: (qmail 19207 invoked by uid 99); 2 Mar 2009 02:49:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Mar 2009 18:49:08 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sandraperry@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO qw-out-2122.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 02:49:00 +0000 Received: by qw-out-2122.google.com with SMTP id 3so1716857qwe.59 for <sandraperry@example.org>; Sun, 01 Mar 2009 18:48:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:subject:date :message-id:mime-version:content-type:content-transfer-encoding :x-priority:x-msmail-priority:x-mailer:importance:thread-index :x-mimeole; bh=70OCQvB8QCVYYz9pZ1lWK4ycHsgmdwykqk7FDshFzBg=; b=ZUpuPvAn+67JC7c6N6CPYRkxI5xnJ6xCzPnNbQFQXm+nPg+djefg0TfWEi8qzUc1B3 uXtfD3rqfnyGUGvkvw4uIX1gPCSo/QwExauNUrEOoIGm2TSr9pq3Aw12z1N3mr0aqRA4 pTtCauDQ094juHkzuoUl8Hgy4nNImnqeWWYrw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding:x-priority:x-msmail-priority:x-mailer :importance:thread-index:x-mimeole; b=vgYn45Z0XJx1GTy0Sqn3usMI1TR8/FQtFck3+fzh03IUVJoXkbEOJs2m2QAo29Tj/V Xq1Ny+Yu6OABtSN58LdxJY9IdgUZwyg/pZXwP+B+PdgbpbYtFRn3gjXCT2Lr9MsNn95/ pdq1tQ27YCjIIH02XWnkwP4XRY/gAy1xXPO10= Received: by 83.161.120.155 with SMTP id p16mr6734678qai.214.1235962119546; Sun, 01 Mar 2009 18:48:39 -0800 (PST) Received: from loo (173-30-136-191.client.mchsi.com [83.161.120.155]) by mx.google.com with ESMTPS id 6sm8015032yxg.36.283.161.120.155.48.38 (version=SSLv3 cipher=RC4-MD5); Sun, 01 Mar 2009 18:48:38 -0800 (PST) Sender: Michael Finney <sandraperry@example.org> From: "Michael Finney" <sandraperry@example.org> To: <sandraperry@example.org> Subject: adding a content-length header Date: Sun, 1 Mar 2009 20:48:37 -0600 Message-ID: <DAD2983E25554323A59D524C1692B545@loo> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6838 Importance: Normal Thread-Index: Acma4WBzHuuu5LPWTiad3VRck5LRIg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Virus-Checked: Checked by ClamAV on apache.org Hi, Hypothetically: Let's say I am working with a server that does not always send a HTTP response with a content-length header or a Transfer-Encoding of chunked (with all the required other stuff set). The following thought came to mind: Shouldn't there be a way to get the length of the content I am sending back? I could just add the header content-length to the response if content-length and Transfer-Encoding headers are both missing from the HttpServletResponse. Could I create my own Result by subclassing the Dispatcher Result, and somehow get access to the length of the content which has been rendered? I could create an interceptor that after the invoke() I get the HttpServletResponse. The question remains: How can I get access to the content length of the content which has been rendered? Thanks. -- Michael Finney - "Always Striving To Serve You Better Every Day" sandraperry@example.org http://www.SmilingSoftwareSolutions.com --------------------------------------------------------------------- To unsubscribe, e-mail: sandraperry@example.org For additional commands, e-mail: sandraperry@example.org From sandraperry@example.org Mon Mar 02 03:17:13 2009 Return-Path: <sandraperry@example.org> Delivered-To: sandraperry@example.org Received: (qmail 5297 invoked from network); 2 Mar 2009 03:17:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Mar 2009 03:17:12 -0000 Received: (qmail 29830 invoked by uid 500); 2 Mar 2009 03:17:03 -0000 Delivered-To: sandraperry@example.org Received: (qmail 29801 invoked by uid 500); 2 Mar 2009 03:17:03 -0000 Mailing-List: contact sandraperry@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:sandraperry@example.org> List-Help: <mailto:sandraperry@example.org> List-Post: <mailto:sandraperry@example.org> List-Id: "Struts Users Mailing List" <user.struts.apache.org> Reply-To: "Struts Users Mailing List" <sandraperry@example.org> Delivered-To: mailing list sandraperry@example.org Received: (qmail 29790 invoked by uid 99); 2 Mar 2009 03:17:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Mar 2009 19:17:03 -0800 X-ASF-Spam-Status: No, hits=3.7 required=10.0 tests=DNS_FROM_OPENWHOIS,FORGED_HOTMAIL_RCVD2,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sandraperry@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO kuber.nabble.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 03:16:55 +0000 Received: from isper.nabble.com ([83.161.120.155]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from <sandraperry@example.org>) id 1Ldydu-0001tH-D1 for sandraperry@example.org; Sun, 01 Mar 2009 19:16:34 -0800 Message-ID: <sandraperry@example.org> Date: Sun, 1 Mar 2009 19:16:34 -0800 (PST) From: chumbobumbo <sandraperry@example.org> To: sandraperry@example.org Subject: Re: Struts Ajax Newbie In-Reply-To: <1235958425.11328.1.camel@milo-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: sandraperry@example.org References: <sandraperry@example.org> <1235958425.11328.1.camel@milo-laptop> X-Virus-Checked: Checked by ClamAV on apache.org Thanks for your help, however I think I may have miscommunicated, all I was trying to find out is what is the 'currently acceptable' approach for storing (and retrieveing) data between consecutive ajax calls seeing that one always gets a brand new instance for any (and every) given action. Does Struts provide some kind of mechanism other than http sesison to store dependant data? Thanks 99-L Blue Mileidys Gonzalez Prieto wrote: > > Well, for to do actions like that in my code I'm using AjaxTags. > > http://ajaxtags.sourceforge.net/ > > Is really easy to use... > > On Sun, 2009-03-01 at 15:47 -0800, chumbobumbo wrote: >> This is probably so basic - I'll put my flame proof suit just in case. >> >> I have a 2 combos and (yes ;-) I would like the second one to be loaded >> depending on what's been chosen in the first one, so in my action execute >> method I have: >> >> model.setList(service.getData1()); >> >> my struts.xml looks like this (note that I am using spring and I am >> hitting >> the same action 'class' (demoAction): >> >> <action name="firstAction" class="demoAction" >> method="execute"> >> <result name="success">jsp/output.jsp</result> >> <result name="error">jsp/error.jsp</result> >> </action> >> <action name="secondAction" class="demoAction" method="second"> >> <result name="success">jsp/second.jsp</result> >> <result name="error">jsp/error.jsp</result> >> </action> >> >> in my output jsp I have: >> >> ..... >> >> <td><s:select list="model.list" listKey="entry.code" >> listValue="entry.desc" name="selection.listCode" >> onchange="javascript:load_second_list();return >> false;"></s:select></td> >> </tr> >> >> <tr> >> <td> >> <s:url id="second_url" action="loadSecond.action" /> >> <s:div showLoadingText="false" id="second" href="%{second}" >> theme="ajax" >> listenTopics="load_second_list" formId="demo"/> >> </td> >> </tr> >> >> that's all fine and dandy, but when I call loadSecond.action I find that >> my >> model is re-initialised anew (i.e. as the action is marked 'prototype' in >> spring config, the data for the first combo is no longer there) >> >> obviously I need data in the 1st combo to be available in the resulting >> page, as the user should be allowed to change the first selection (that >> would in turn relaod the second combo again). >> >> Is there a way to serialize/cache the data that was retrieved in the >> first >> call so that it is available in the subsequent call other than putting it >> in >> the session? >> >> Thanks, >> >> 99-L Blue > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: sandraperry@example.org > For additional commands, e-mail: sandraperry@example.org > > > -- View this message in context: http://www.nabble.com/Struts-Ajax-Newbie-tp22279792p22281426.html Sent from the Struts - User mailing list sandraperry@example.org. --------------------------------------------------------------------- To unsubscribe, e-mail: sandraperry@example.org For additional commands, e-mail: sandraperry@example.org From sandraperry@example.org Mon Mar 02 03:43:26 2009 Return-Path: <sandraperry@example.org> Delivered-To: sandraperry@example.org Received: (qmail 12163 invoked from network); 2 Mar 2009 03:43:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Mar 2009 03:43:26 -0000 Received: (qmail 42926 invoked by uid 500); 2 Mar 2009 03:43:17 -0000 Delivered-To: sandraperry@example.org Received: (qmail 42286 invoked by uid 500); 2 Mar 2009 03:43:16 -0000 Mailing-List: contact sandraperry@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:sandraperry@example.org> List-Help: <mailto:sandraperry@example.org> List-Post: <mailto:sandraperry@example.org> List-Id: "Struts Users Mailing List" <user.struts.apache.org> Reply-To: "Struts Users Mailing List" <sandraperry@example.org> Delivered-To: mailing list sandraperry@example.org Received: (qmail 42274 invoked by uid 99); 2 Mar 2009 03:43:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Mar 2009 19:43:16 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sandraperry@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO kuber.nabble.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 03:43:07 +0000 Received: from isper.nabble.com ([83.161.120.155]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from <sandraperry@example.org>) id 1Ldz3G-0002fc-Os for sandraperry@example.org; Sun, 01 Mar 2009 19:42:46 -0800 Message-ID: <sandraperry@example.org> Date: Sun, 1 Mar 2009 19:42:46 -0800 (PST) From: Mohan Radhakrishnan <sandraperry@example.org> To: sandraperry@example.org Subject: Re: Acegi with Struts 2. In-Reply-To: <sandraperry@example.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: sandraperry@example.org References: <sandraperry@example.org> <sandraperry@example.org> <sandraperry@example.org> X-Virus-Checked: Checked by ClamAV on apache.org Hi, I was able to fix the Spring Security/Struts 2 filter issue by reordering the filter mappings. Now it works. Thanks, Mohan -- View this message in context: http://www.nabble.com/Acegi-with-Struts-2.-tp22259802p22281615.html Sent from the Struts - User mailing list sandraperry@example.org. --------------------------------------------------------------------- To unsubscribe, e-mail: sandraperry@example.org For additional commands, e-mail: sandraperry@example.org From sandraperry@example.org Mon Mar 02 05:59:47 2009 Return-Path: <sandraperry@example.org> Delivered-To: sandraperry@example.org Received: (qmail 59287 invoked from network); 2 Mar 2009 05:59:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Mar 2009 05:59:47 -0000 Received: (qmail 41233 invoked by uid 500); 2 Mar 2009 05:59:38 -0000 Delivered-To: sandraperry@example.org Received: (qmail 41209 invoked by uid 500); 2 Mar 2009 05:59:38 -0000 Mailing-List: contact sandraperry@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:sandraperry@example.org> List-Help: <mailto:sandraperry@example.org> List-Post: <mailto:sandraperry@example.org> List-Id: "Struts Users Mailing List" <user.struts.apache.org> Reply-To: "Struts Users Mailing List" <sandraperry@example.org> Delivered-To: mailing list sandraperry@example.org Received: (qmail 41198 invoked by uid 99); 2 Mar 2009 05:59:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Mar 2009 21:59:38 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sandraperry@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO kuber.nabble.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 05:59:28 +0000 Received: from isper.nabble.com ([83.161.120.155]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from <sandraperry@example.org>) id 1Le1BD-0007Gt-L7 for sandraperry@example.org; Sun, 01 Mar 2009 21:59:07 -0800 Message-ID: <sandraperry@example.org> Date: Sun, 1 Mar 2009 21:59:07 -0800 (PST) From: sajidbigler <sandraperry@example.org> To: sandraperry@example.org Subject: Re: Please help to get Arabic i18n(internationalization) using struts2.1.6 In-Reply-To: <sandraperry@example.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: sandraperry@example.org References: <sandraperry@example.org> <sandraperry@example.org> <sandraperry@example.org> <sandraperry@example.org> <sandraperry@example.org> <sandraperry@example.org> <sandraperry@example.org> <sandraperry@example.org> X-Virus-Checked: Checked by ClamAV on apache.org Hi Dave, Its like when i tried struts2-blank-2.1.6.war example and its working fine.here the logic is not much more complicated.here <s:text name="HelloWorld.message"/> returns proper i18n even Arabic. <s:property value="message" /> this tag wont return proper Arabic i18n .unless we do <s:property value="message" escape="false"/>. i really dint understand how come spanish ,german work but not Arabic. Next <s:textfield name="username" key="some.key" /> or <s:textfield name="username" label="%{getText('some.key1')}" /> wont even gives me proper i18n. When form is submitted <s:actionerror /> will be in i18n but not <s:fielderror />.i have declared validation as follows <field name="username"> <field-validator type="requiredstring"> true <message key="some.key8">Login name is required</message> </field-validator> </field> i used following link http://www.utf.ru/tables/arabic.html to get utf-8 characters.. MMSApplicationMessages_ar.properties error.password.match=&#1551; some.key1=&#1539; some.key=&#1580; some.key8=&#1594; MMSApplicationMessages.properties error.password.match= Sajid retype password some.key1=Login Name1 some.key=Login Name some.key8=Login Name8 struts.properties struts.multipart.maxSize=4194304 #struts.enable.DynamicMethodInvocation = false ### Parser to handle HTTP POST requests, encoded using the MIME-type multipart/form-data # struts.multipart.parser=cos # struts.multipart.parser=pell struts.multipart.parser=jakarta # uses javax.servlet.context.tempdir by default struts.multipart.saveDir=c:\gowri struts.devMode = true struts.i18n.reload=true struts.locale=ar_SA struts.i18n.encoding=UTF-8 struts.custom.i18n.resources=MMSApplicationMessages struts.ui.theme=xhtml struts.ui.templateDir=template Form <div id="content"> <h1>Welcome to "MMS Application "...</h1> <h2>Enter Login Details </h2> <s:form action="doLogin" method="POST" > <s:label label="SignIn"/> <s:actionerror /> <s:fielderror /> <s:textfield name="username" key="some.key" /> <!--<s:textfield name="username" label="%{getText('some.key1')}" />--> <s:password name="password" label="Password" /> <s:submit value="Login" align="center" /> </s:form> <s:a href="pages/SignUp.jsp" cssStyle="float:right">New User SignUP</s:a> </div> More over i am able to see following warnings in console Feb 28, 2009 12:56:15 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn WARNING: Could not find property [theme] Feb 28, 2009 12:56:15 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn WARNING: Could not find property [theme] Feb 28, 2009 12:56:15 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn WARNING: Could not find property [templateDir] Feb 28, 2009 12:56:15 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn WARNING: Could not find property [templateDir] Feb 28, 2009 12:56:15 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn WARNING: Could not find property [theme] Feb 28, 2009 12:56:15 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn WARNING: Could not find property [theme] Feb 28, 2009 12:56:15 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn WARNING: Could not find property [fieldErrors] Feb 28, 2009 12:56:15 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn WARNING: Could not find property [fieldErrors] Feb 28, 2009 12:56:15 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn WARNING: Could not find property [fieldErrors] Please help me to sort out this issue.. Thanks Sajid -- View this message in context: http://www.nabble.com/Please-help-to-get-Arabic-i18n%28internationalization%29-using-struts2.1.6-tp22222312p22282614.html Sent from the Struts - User mailing list sandraperry@example.org. --------------------------------------------------------------------- To unsubscribe, e-mail: sandraperry@example.org For additional commands, e-mail: sandraperry@example.org From sandraperry@example.org Mon Mar 02 06:52:52 2009 Return-Path: <sandraperry@example.org> Delivered-To: sandraperry@example.org Received: (qmail 91109 invoked from network); 2 Mar 2009 06:52:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Mar 2009 06:52:52 -0000 Received: (qmail 74912 invoked by uid 500); 2 Mar 2009 06:52:42 -0000 Delivered-To: sandraperry@example.org Received: (qmail 74891 invoked by uid 500); 2 Mar 2009 06:52:42 -0000 Mailing-List: contact sandraperry@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:sandraperry@example.org> List-Help: <mailto:sandraperry@example.org> List-Post: <mailto:sandraperry@example.org> List-Id: "Struts Users Mailing List" <user.struts.apache.org> Reply-To: "Struts Users Mailing List" <sandraperry@example.org> Delivered-To: mailing list sandraperry@example.org Received: (qmail 74879 invoked by uid 99); 2 Mar 2009 06:52:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Mar 2009 22:52:42 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO gw.reea.net) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 06:52:24 +0000 Received: from [83.161.120.155] ([83.161.120.155]) by gw.reea.net (8.13.8/8.12.11) with ESMTP id n226q3A6024790 for <sandraperry@example.org>; Mon, 2 Mar 2009 08:52:04 +0200 Message-ID: <sandraperry@example.org> Date: Mon, 02 Mar 2009 08:52:03 +0200 From: Andras Balogh <sandraperry@example.org> User-Agent: Thunderbird 83.161.120.155 (Windows/20081209) MIME-Version: 1.0 To: Struts Users Mailing List <sandraperry@example.org> Subject: Re: [S2] json-plugin: includeProperties being ignored? References: <sandraperry@example.org> In-Reply-To: <sandraperry@example.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, Try to specify the includeProperties at the <interceptor-ref name="json" > definition and not at the result type. BR, Andras sandraperry@example.org wrote: > Hello All, > > I'm having trouble getting the json-plugin 0.32 to behave as I'd > expected. The action is exposing a List of objects annotated as > "@JSON(name="items")" in the action. > > I have my result configured as: > <result type="json"> > <param name="excludeNullProperties">true</param> > <param name="includeProperties"> > items.*\.name > </param> > </result> > > However the returned JSON has all of the properties for the objects in > the list. Can someone please help me with what I'm doing wrong? > > Thanks! > > --john > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: sandraperry@example.org > For additional commands, e-mail: sandraperry@example.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: sandraperry@example.org For additional commands, e-mail: sandraperry@example.org From sandraperry@example.org Mon Mar 02 09:31:16 2009 Return-Path: <sandraperry@example.org> Delivered-To: sandraperry@example.org Received: (qmail 72146 invoked from network); 2 Mar 2009 09:31:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Mar 2009 09:31:16 -0000 Received: (qmail 24172 invoked by uid 500); 2 Mar 2009 09:31:06 -0000 Delivered-To: sandraperry@example.org Received: (qmail 24144 invoked by uid 500); 2 Mar 2009 09:31:06 -0000 Mailing-List: contact sandraperry@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:sandraperry@example.org> List-Help: <mailto:sandraperry@example.org> List-Post: <mailto:sandraperry@example.org> List-Id: "Struts Users Mailing List" <user.struts.apache.org> Reply-To: "Struts Users Mailing List" <sandraperry@example.org> Delivered-To: mailing list sandraperry@example.org Received: (qmail 24133 invoked by uid 99); 2 Mar 2009 09:31:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 01:31:06 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sandraperry@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO kuber.nabble.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 09:30:57 +0000 Received: from isper.nabble.com ([83.161.120.155]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from <sandraperry@example.org>) id 1Le4Ts-00064d-Gk for sandraperry@example.org; Mon, 02 Mar 2009 01:30:36 -0800 Message-ID: <sandraperry@example.org> Date: Mon, 2 Mar 2009 01:30:36 -0800 (PST) From: sajidbigler <sandraperry@example.org> To: sandraperry@example.org Subject: how can we apply style to label ? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: sandraperry@example.org X-Virus-Checked: Checked by ClamAV on apache.org Hi List, I was trying to apply style to my label as shown below.i want it to be in center of my form and bold how can i do it? <s:label label="Register " cssStyle="font-size:20;"></s:label> -- View this message in context: http://www.nabble.com/how-can-we-apply-style-to-label---tp22284249p22284249.html Sent from the Struts - User mailing list sandraperry@example.org. --------------------------------------------------------------------- To unsubscribe, e-mail: sandraperry@example.org For additional commands, e-mail: sandraperry@example.org From sandraperry@example.org Mon Mar 02 09:39:13 2009 Return-Path: <sandraperry@example.org> Delivered-To: sandraperry@example.org Received: (qmail 79531 invoked from network); 2 Mar 2009 09:39:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Mar 2009 09:39:13 -0000 Received: (qmail 31887 invoked by uid 500); 2 Mar 2009 09:39:03 -0000 Delivered-To: sandraperry@example.org Received: (qmail 31861 invoked by uid 500); 2 Mar 2009 09:39:03 -0000 Mailing-List: contact sandraperry@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:sandraperry@example.org> List-Help: <mailto:sandraperry@example.org> List-Post: <mailto:sandraperry@example.org> List-Id: "Struts Users Mailing List" <user.struts.apache.org> Reply-To: "Struts Users Mailing List" <sandraperry@example.org> Delivered-To: mailing list sandraperry@example.org Received: (qmail 31849 invoked by uid 99); 2 Mar 2009 09:39:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 01:39:03 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sandraperry@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO kuber.nabble.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 09:38:56 +0000 Received: from isper.nabble.com ([83.161.120.155]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from <sandraperry@example.org>) id 1Le4bb-0006O6-K8 for sandraperry@example.org; Mon, 02 Mar 2009 01:38:35 -0800 Message-ID: <sandraperry@example.org> Date: Mon, 2 Mar 2009 01:38:35 -0800 (PST) From: sajidbigler <sandraperry@example.org> To: sandraperry@example.org Subject: when we add any UI Tag how can we eliminate next line MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: sandraperry@example.org X-Virus-Checked: Checked by ClamAV on apache.org I want to add three button as shown below in a same row but i am not able to make it.i tried using table ,tr,td but still when ever i place <s:component(textfield,label,submit etc) next line will be taken how can i make it to come in same row? <s:submit value="Save" /> <s:submit value="Cancel" onclick="form.onsubmit=null" /> <s:reset onclick="alert('Resetting form now... Press OK to continue!');" /> -- View this message in context: http://www.nabble.com/when-we-add-any-UI-Tag-how-can-we-eliminate-next-line-tp22284662p22284662.html Sent from the Struts - User mailing list sandraperry@example.org. --------------------------------------------------------------------- To unsubscribe, e-mail: sandraperry@example.org For additional commands, e-mail: sandraperry@example.org From sandraperry@example.org Mon Mar 02 11:09:29 2009 Return-Path: <sandraperry@example.org> Delivered-To: sandraperry@example.org Received: (qmail 30319 invoked from network); 2 Mar 2009 11:09:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Mar 2009 11:09:29 -0000 Received: (qmail
{'source': 'Apache Software Foundation Public Mail Archives'}