Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 87868 invoked from network); 25 Dec 2009 01:42:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Dec 2009 01:42:35 -0000 Received: (qmail 21935 invoked by uid 500); 25 Dec 2009 01:42:32 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 21887 invoked by uid 500); 25 Dec 2009 01:42:32 -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 21877 invoked by uid 99); 25 Dec 2009 01:42:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Dec 2009 01:42:32 +0000 X-ASF-Spam-Status: No, hits=3.4 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.221.81.30] (HELO fipsb03.cogeco.net) (216.221.81.30) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Dec 2009 01:42:23 +0000 X-SBRS: None X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmkFAHOnM0sYOQN4/2dsb2JhbACBSoIiwzGPEoNdVgSBZQ X-IronPort-AV: E=Sophos;i="4.47,452,1257138000"; d="scan'208,217";a="78333124" Received: from d24-57-3-120.home.cgocable.net (HELO windsor.rimptec.net) ([24.57.3.120]) by fipsb03.cogeco.net with ESMTP; 24 Dec 2009 20:42:00 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) by windsor.rimptec.net (8.14.3/8.14.3) with ESMTP id nBP1fx2U019814 for ; Thu, 24 Dec 2009 20:42:00 -0500 Subject: how to access struts2 propery from jsp or vice versa From: Parm Lehal To: Struts Users Mailing List In-Reply-To: References: <3c4be6e20912220236w12bb33b4n6c115a721bcd6130@mail.gmail.com> <579bc170912220246x62fefda9ge514281a7653100b@mail.gmail.com> <3c4be6e20912220305s4663f521waf287fa27f764c3f@mail.gmail.com> Content-Type: multipart/alternative; boundary="=-ooBasuBsvhsS0FE/MOkI" Date: Thu, 24 Dec 2009 20:41:59 -0500 Message-Id: <1261705319.25973.16.camel@windsor.rimptec.net> Mime-Version: 1.0 X-Mailer: Evolution 2.28.0 (2.28.0-2.fc12) X-Virus-Checked: Checked by ClamAV on apache.org --=-ooBasuBsvhsS0FE/MOkI Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Hello, I am stuck in trying to access some variables from value stack in jsp page. Is there anyway to do it easily? Is there anyway to communicate with a bean defined in jsp with .....); Please, tell me if and how can I accomplish something like this. Regards, Parminder Lehal ________________________________________________________________________ -----Original Message----- From: Wes Wannemacher Reply-to: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: if tag with #parameters Date: Wed, 23 Dec 2009 09:35:59 -0500 I have used a similar construct quite a bit, but normally, I refer to parameters like this - view not view In cases like this, I just want to affect the way a view is rendered. So, leaving the getter/setter off of the action is the way to go. -Wes On Tue, Dec 22, 2009 at 6:05 AM, foo bar wrote: > Hi, > > I would prefer not to use getter/setter. > What I really want to know is, why is this not working as expected ? > > Anyway, I solved it > > > > #parameters.messageKey is of type String[], which make sense now > > > On Tue, Dec 22, 2009 at 9:46 PM, Saeed Iqbal wrote: >> If it is a request parameter, then make a setter for it to get set and >> getter to retrieve it and use % instead of # >> >> If you want to have the parameter in the page context use the s:set with id >> >> >> >> On Tue, Dec 22, 2009 at 3:36 PM, foo bar wrote: >> >>> Hi all, >>> >>> I'm testing for the existence of a request parameter in a jsp page in >>> Struts 2 >>> >>> <%@ taglib prefix="s" uri="/struts-tags"%> >>> >> "http://www.w3.org/TR/html4/strict.dtd"> >>>
>>> >>> yes >>> >>> >>> no >>> >>> >>> But, whatever I do, result is always "no" >>> >>> Tested with these cases: >>> >>> test.jsp >>> test.jsp?messageKey= >>> test.jsp?messageKey=yes >>> test.jsp?messageKey=no >>> >>> Changed it to , same results >>> Changed it to , results >>> are negated as above, ie you got "no" when previously you got "yes" >>> >>> What's the solution here ? >>> >>> Cheers >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >>> For additional commands, e-mail: user-help@struts.apache.org >>> >>> >> >> >> -- >> Saeed Iqbal >> Independant Consultant >> J2EE - Application Architect / Developer >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > --=-ooBasuBsvhsS0FE/MOkI--