Return-Path: X-Original-To: apmail-struts-user-archive@www.apache.org Delivered-To: apmail-struts-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 16153F28A for ; Fri, 31 May 2013 18:27:18 +0000 (UTC) Received: (qmail 26069 invoked by uid 500); 31 May 2013 18:27:16 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 26042 invoked by uid 500); 31 May 2013 18:27:16 -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 26034 invoked by uid 99); 31 May 2013 18:27:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 May 2013 18:27:16 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,T_FRT_BELOW2 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ingantosan@gmail.com designates 74.125.82.45 as permitted sender) Received: from [74.125.82.45] (HELO mail-wg0-f45.google.com) (74.125.82.45) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 May 2013 18:27:10 +0000 Received: by mail-wg0-f45.google.com with SMTP id n12so1489064wgh.0 for ; Fri, 31 May 2013 11:26:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=2ApMoXJuz6GWXB6UoneBwZbvGKBCfxIsHwb9HFxU258=; b=UqBjviz0Io+JtR21k6ZzAY26Haiqq+pK7C24PhjUmoqfwrvuzLlGSB/2piKuwzx0uX GbPIk87mrn4Sv6TrI8x/a19Zzws4BZsXIFPu72FhJJ20QXVCM3V2/wR+SKNJih5hLKi1 imaK4pbi6NVwtPayX2R5Fq9F92cAw75uXJNqR6+iMm1aDIF13D0HANpWvRkJGWbLI6kr lZWUkbYxuek51sB5TzwUtQc6qD6tdhuwZ6QYbb+vpoeWwZWjMwvDGRcJjm3zCAw3ofjm qh/+4QNtCdF9NWkgEBTV1+Q1FgH8hPzzy9vDbQRCo3kZOSNc8MOY+OPolNuFFCVz0aDs bpvA== X-Received: by 10.194.58.11 with SMTP id m11mr8956463wjq.45.1370024809397; Fri, 31 May 2013 11:26:49 -0700 (PDT) Received: from [192.168.0.53] (254.43.77.188.dynamic.jazztel.es. [188.77.43.254]) by mx.google.com with ESMTPSA id eq15sm5709722wic.4.2013.05.31.11.26.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 May 2013 11:26:48 -0700 (PDT) Message-ID: <51A8EB66.6080601@gmail.com> Date: Fri, 31 May 2013 20:26:46 +0200 From: =?UTF-8?B?QW50b25pbyBTw6FuY2hleg==?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: Actions as welcome files References: <51A8E951.3050700@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Is it in JIRA as feature request? I guess I can still redirect "index.jsp" to "index.action", although it is not elegant, in my opinion. Newbies are then confused because the code in the examples are using this feature (index.action in welcome-files), but they don't work. A warning would help here. I think I will post this to JIRA. El 31/05/13 20:19, Paul Benedict escribió: > It's not possible at the moment. It's a feature that I would like to have > too. > > > On Fri, May 31, 2013 at 1:17 PM, Antonio Sánchez wrote: > >> Hello. >> >> My name is Antonio, I'm beginning with Struts2 and this is my first post. >> >> Where should store struts.xml if I need to use an action as a welcome file? >> >> In example "Hello World" (maven): >> >> http://struts.apache.org/**development/2.x/docs/hello-** >> world-using-struts-2.html >> >> I have to move struts.xml (originally inside resources folder) inside >> maven 'main' folder to make it work and avoid >> >> HTTP 404 - There is no Action mapped for namespace [/] and action name >> [] associated with context path [/Hello_World_Struts2_Mvn]. >> >> but then struts.xml is unreachable in Netbeans project window. >> >> In this crud example: >> >> http://struts.apache.org/**development/2.x/docs/hello-** >> world-using-struts-2.html >> >> I can't find the right way. I have updated libs to the latest ones. >> struts.xml is in WEB-INF/classes in war file deployed by Netbeans (Tomcat >> 7). >> >> Bellow struts and web xmls >> >> >> >> >> >> >> >> >> >> >> >> /WEB-INF/jsp/**employees.jsp >> >> >> >> > method="input"> >> index >> /WEB-INF/jsp/**employeeForm.jsp >> /WEB-INF/jsp/**error.jsp >> >> >> >> >> >> >> Struts 2 Demo >> >> >> index.action >> >> >> >> struts2 >> org.apache.**struts2.dispatcher.ng.filter.** >> StrutsPrepareAndExecuteFilter<**/filter-class> >> >> >> >> struts2 >> /* >> >> >> >> Thanks. >> >> >> >> >> ------------------------------**------------------------------**--------- >> To unsubscribe, e-mail: user-unsubscribe@struts.**apache.org >> For additional commands, e-mail: user-help@struts.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org