Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 64188 invoked from network); 17 Aug 2010 19:40:47 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Aug 2010 19:40:47 -0000 Received: (qmail 87671 invoked by uid 500); 17 Aug 2010 19:40:44 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 87597 invoked by uid 500); 17 Aug 2010 19:40:44 -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 87589 invoked by uid 99); 17 Aug 2010 19:40:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Aug 2010 19:40:44 +0000 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=FORGED_YAHOO_RCVD,FREEMAIL_FROM,HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL 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, 17 Aug 2010 19:40:38 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1OlS1C-0003po-4S for user@struts.apache.org; Tue, 17 Aug 2010 12:40:18 -0700 Message-ID: <29449292.post@talk.nabble.com> Date: Tue, 17 Aug 2010 12:40:18 -0700 (PDT) From: E2241 To: user@struts.apache.org Subject: Calling Struts Action file through command line. MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_26511_19439660.1282074018133" X-Nabble-From: amuh41@yahoo.com ------=_Part_26511_19439660.1282074018133 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, 1.) I would like to know if it is possible to call the struts framework through a command line or a console application. Can one call an action class? Is there any possibility to do so? I think its not possible as everything would depend on the struts-config file and the Http Request object. From the config file the request would probably know which action class to invoke and the respective bean (if needed for any business logic) would be called. 2.) I have a web application which is based on the struts framework. I know for a fact that only once the request is submitted the struts-config would map the action and the bean. But what happens in a case where there would be no Http Servlet Request object, instead it would be a call from a console application trying to invoke an action class to perform the business logic; is that possible? 3.) What if i create a HttpServletRequest object in the console app and then call the action class? Can we call the action class in this manner by instantiating it and calling execute(). Then I would probably have to call the bean in the action class itself beating the MVC pattern framework and the use of the config file. Not sure if we can invoke the config file from command line. Please give your thoughts on this. I am not sure if I have been clear enough in explaining this. My main requirement is to try and see if i can call and execute the business logic implemented on the struts framework (in action and bean) through a console application -- View this message in context: http://old.nabble.com/Calling-Struts-Action-file-through-command-line.-tp29449292p29449292.html Sent from the Struts - User mailing list archive at Nabble.com. ------=_Part_26511_19439660.1282074018133--