Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 39431 invoked from network); 21 Oct 2008 13:12:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Oct 2008 13:12:50 -0000 Received: (qmail 86041 invoked by uid 500); 21 Oct 2008 13:12:42 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 86029 invoked by uid 500); 21 Oct 2008 13:12:42 -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 86018 invoked by uid 99); 21 Oct 2008 13:12:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Oct 2008 06:12:42 -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 [12.198.195.31] (HELO mx2.athnic.net) (12.198.195.31) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Oct 2008 13:11:33 +0000 Received: from [192.168.0.234] (host86-158-27-209.range86-158.btcentralplus.com [86.158.27.209]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx2.athnic.net (Postfix) with ESMTP id 69598328968 for ; Tue, 21 Oct 2008 14:12:10 +0100 (BST) Message-ID: <48FDD527.5040206@cyberspaceroad.com> Date: Tue, 21 Oct 2008 14:12:07 +0100 From: Adam Hardy User-Agent: Icedove 1.5.0.14eol (X11/20080724) MIME-Version: 1.0 To: Struts Users Mailing List Subject: xwork injecting parameters into requestScope Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I have an Action and corresponding JSP form with the property "portfolio". In my JSP, I have this JSTL tag test: stuff which works fine for my purposes. But then when I submit the form and validation fails and myAction.portfolio is not initialized, Struts2 injects the portfolio request parameter into the requestAttributes. Now my JSP blows up because: ${portfolio} = "0" and ${not empty portfolio} = true and then ${portfolio.id} ----> javax.servlet.jsp.JspException: javax.el.PropertyNotFoundException: Property 'id' not found on type java.lang.Character What influence can I have over this injection behaviour? Or perhaps, can I reformulate my test so that I can tell whether my "${portfolio}" is a string or a bean? Thanks! Adam --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org