Return-Path: Delivered-To: apmail-struts-dev-archive@www.apache.org Received: (qmail 36694 invoked from network); 8 Jun 2008 17:15:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Jun 2008 17:15:27 -0000 Received: (qmail 64797 invoked by uid 500); 8 Jun 2008 17:15:24 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 64752 invoked by uid 500); 8 Jun 2008 17:15:24 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 64741 invoked by uid 99); 8 Jun 2008 17:15:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Jun 2008 10:15:24 -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: domain of musachy@gmail.com designates 209.85.198.224 as permitted sender) Received: from [209.85.198.224] (HELO rv-out-0506.google.com) (209.85.198.224) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Jun 2008 17:14:35 +0000 Received: by rv-out-0506.google.com with SMTP id b25so1760166rvf.47 for ; Sun, 08 Jun 2008 10:14:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=jrlm8JqdTW0IAVL6Ot5QVHRtYdBFvTZfwrIwgJHP7Wk=; b=Fsi8PHwCGeuLNAxygs7URY8y7rs3obeLQJXmHLrRzriF9OdyhOk1yzlKyhmaMNWdsz +nGpai/dukGzNB433yuh2UluYLcfjn2Cly0x9Jqg9S5AUnTjXAnz9pncmml8ROpfSSLC eBl5Ktu7gLhUlzErsQOKOCzsNirbI08MpJlGc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=VHwNnH046mWIsBVz5XWAEdjeiZlZzfznizA2CXozciMlFwrVNoBLyQ4IGECOk99oBy JVQ8QxtATHaiiXgN/FCxZtfGOMSbZERam4kMyw3t+L0aEklawBSyLm2TvNYuvmRcSjeN +lnFIYYTjbzf9mlXpVFaOKJeHjIUKzuo46P/c= Received: by 10.141.15.19 with SMTP id s19mr1479707rvi.205.1212945292581; Sun, 08 Jun 2008 10:14:52 -0700 (PDT) Received: by 10.140.136.19 with HTTP; Sun, 8 Jun 2008 10:14:52 -0700 (PDT) Message-ID: Date: Sun, 8 Jun 2008 13:14:52 -0400 From: "Musachy Barroso" To: "Struts Developers List" Subject: Re: [Struts2] Convention Plugin - @Result In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <17655614.post@talk.nabble.com> <17696902.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Being there doesn't really mean that they need a location, there are also result types on external plugins that we won't know about. We could change the warning message, or remove it altogether. musachy On Sun, Jun 8, 2008 at 11:38 AM, Bob Tiernay wrote: > Can't you determine these from struts.convention.relative.result.types? > > -------------------------------------------------- > From: "Musachy Barroso" > Sent: Sunday, June 08, 2008 11:14 AM > To: "Struts Developers List" > Subject: Re: [Struts2] Convention Plugin - @Result > >> Well, there are a few result that require "location", like velocity, >> freemarker and others. There is no way to know which one do or do no. >> To play on the safe side, a warning was added, but it is kind of weak >> indeed. >> >> musachy >> >> On Sun, Jun 8, 2008 at 10:59 AM, Bob Tiernay wrote: >>> >>> I am trying to use the following in my LoginAction class: >>> >>> @Action(value = "login!login", results = {@Result(name = "success", >>> type = "redirectAction", params = {"actionName", "ListAccounts", >>> "namespace", "/account"} >>> )}) >>> public String login() throws Exception { >>> >>> However, this results in the following message: >>> >>> 0 [main] WARN org.apache.struts2.convention.DefaultResultMapBuilder - >>> Result [success] for action class [LoginAction] is missing the location >>> >>> To me, the location parameter is only applicable to a result of type >>> "dispatch" and thus the above use case should not result in a warning. >>> Maybe >>> there is some way to remove this without having to hardcode the >>> relationship >>> in the plugin? >>> >>> Bob >>> >>> >>> >>> >>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org >>> For additional commands, e-mail: dev-help@struts.apache.org >>> >>> >> >> >> >> -- >> "Hey you! Would you help me to carry the stone?" Pink Floyd >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org >> For additional commands, e-mail: dev-help@struts.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org > For additional commands, e-mail: dev-help@struts.apache.org > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org