Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 79267 invoked from network); 12 Feb 2008 16:58:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2008 16:58:15 -0000 Received: (qmail 3905 invoked by uid 500); 12 Feb 2008 16:57:59 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 3871 invoked by uid 500); 12 Feb 2008 16:57:59 -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 3860 invoked by uid 99); 12 Feb 2008 16:57:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2008 08:57:59 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2008 16:57:28 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JOyRr-00038V-RK for user@struts.apache.org; Tue, 12 Feb 2008 08:57:35 -0800 Message-ID: <15434537.post@talk.nabble.com> Date: Tue, 12 Feb 2008 08:57:35 -0800 (PST) From: Jneto To: user@struts.apache.org Subject: struts 2 request.getPramter - ActionContext MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: j.vieiraneto@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org Hi All I need a help about the ActionContext ActionContext context = ActionContext.getContext(); I work with struts 1 and I get paramters this way : String v_name = request.getParameter("name"); How do I do with struts 2 in my attached Action ? Thanks //=============================My Action============================== package example; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Map; import org.apache.struts2.interceptor.SessionAware; import com.opensymphony.xwork2.Action; import com.opensymphony.xwork2.ActionContext; import com.opensymphony.xwork2.ActionSupport; import example.ClienteBean; import example.ClienteDAO; import java.util.Map; public class teste extends ActionSupport implements SessionAware{ private static final long serialVersionUID = -300519118088286674L; public String execute(){ ActionContext context = ActionContext.getContext(); //=========I need to get the parameter right here, What do I do? return "sucess"; } @Override public void setSession(Map arg0) { // TODO Auto-generated method stub } } -- View this message in context: http://www.nabble.com/struts-2-request.getPramter---ActionContext-tp15434537p15434537.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org