Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 98113 invoked from network); 30 Aug 2007 17:09:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Aug 2007 17:09:52 -0000 Received: (qmail 85212 invoked by uid 500); 30 Aug 2007 17:09:40 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 84404 invoked by uid 500); 30 Aug 2007 17:09:38 -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 84393 invoked by uid 99); 30 Aug 2007 17:09:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Aug 2007 10:09:38 -0700 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 [66.196.97.64] (HELO web56705.mail.re3.yahoo.com) (66.196.97.64) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 30 Aug 2007 17:09:33 +0000 Received: (qmail 23653 invoked by uid 60001); 30 Aug 2007 17:09:12 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=L5UYSaB9FhkUwqk2T0A+JDX2YrHE67YrL2dNCpgVR/7u8FZwErqtZVXLbIUuyzbBEvOssvEUkTL0ftsz6NCOkV26qlJuDDD0h8Bj9+9KRUwlCPhgJ2X0fNUYmqnNiGpV8HLkqWCTrNvPlz0N+7Bx4DydQ11T0MWpNcEKcXqkZiw=; X-YMail-OSG: uVFJaVEVM1kUmAhgGbgylVih5pe1LxdOUc5LNN8e1G0rR0STLS605IJ9KRl3e7txrvas6R7_G8xIWy4RWu64hAv1oaRAmeLlP_10zZsxoYOmYx18cqzBYrHaKG.tYCwLbo2FlRwBxVZUzkJyXUWbwbpH Received: from [63.166.14.2] by web56705.mail.re3.yahoo.com via HTTP; Thu, 30 Aug 2007 10:09:12 PDT Date: Thu, 30 Aug 2007 10:09:12 -0700 (PDT) From: Dave Newton Subject: Re: How to access request & session objects in jsp using struts2 tags To: Struts Users Mailing List In-Reply-To: <12411552.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <694553.21777.qm@web56705.mail.re3.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --- afp wrote: > [...] but really tat doesn't quite answer the > question. In general how do we access the request or > session in the jsp? http://struts.apache.org/2.x/docs/ognl.html > Will what I have given below work Does it work? > or what shud I be doing to make it work! I think the dot-notation will cause you problems, but I could be wrong about that--you might be able to coerce it somehow. Or you could set a flag in the action or expose an object that holds the request value. > The requirement is tat I need to access it in the jsp > and not in the action class method. Really? Or is the requirement that you be able to make decisions in the JSP based on which submit button was used? d. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org