Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 42734 invoked from network); 27 Oct 2007 23:40:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Oct 2007 23:40:05 -0000 Received: (qmail 79871 invoked by uid 500); 27 Oct 2007 23:39:41 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 79850 invoked by uid 500); 27 Oct 2007 23:39:41 -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 79834 invoked by uid 99); 27 Oct 2007 23:39:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Oct 2007 16:39:41 -0700 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 zoran@sparecreative.com designates 150.101.158.37 as permitted sender) Received: from [150.101.158.37] (HELO conads.com) (150.101.158.37) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Oct 2007 23:39:49 +0000 Received: from [60.242.126.136] (account webhosting HELO sparecreative.com) by conads.com (CommuniGate Pro SMTP 4.2.3) with ESMTP id 2803930 for user@struts.apache.org; Sun, 28 Oct 2007 10:39:17 +1100 Received: from [10.0.1.10] (account zoran [10.0.1.10] verified) by sparecreative.com (CommuniGate Pro SMTP 5.1.9) with ESMTPA id 969621 for user@struts.apache.org; Sun, 28 Oct 2007 10:39:16 +1100 User-Agent: Microsoft-Entourage/11.3.6.070618 Date: Sun, 28 Oct 2007 10:39:15 +1000 Subject: Re: [S2] - Types in form parameters From: Zoran Avtarovski To: Struts Users Mailing List Message-ID: Thread-Topic: [S2] - Types in form parameters Thread-Index: AcgY8pWJ1Bf5y4TlEdyYAgANkyympA== In-Reply-To: <13404859.post@talk.nabble.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, hits=-1.4 required=4.0 We had a need to do this in one situation where we couldn't place the object into session scope and put a pointer as a hidden field. Our solution was to serialise the object to a string, include the string as a hidden field and then recreate on form submission. From memory I think we used xstream. Z. > > I have quite a elementary question regarding passing parameters to the > server. > > In a form I have a parameter passed like: > > > > where sop is of class I created. > > When I execute the action I get: > > "No result defined for action myAction and result input" > > Does this have to do with the fact that the variable is of a custom type > (and not a string, int, etc)? > > An affirmative answer to this question leads me to the second question: how > does one send custom class variables back to the server? All I can think of > is putting the variable in Session. What other ways are there ? > > Thank you for the input. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org