Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 36362 invoked from network); 11 Jan 2001 10:59:00 -0000 Received: from hqvsbh1.ms.com (205.228.12.103) by h31.sny.collab.net with SMTP; 11 Jan 2001 10:59:00 -0000 Received: (from uucp@localhost) by hqvsbh1.ms.com (8.9.3/fw v1.30) id FAA21091; Thu, 11 Jan 2001 05:59:03 -0500 (EST) Received: from localhost(127.0.0.1) by hqvsbh1 via smap (4.1) id sma.9792107381.020928; Thu, 11 Jan 01 05:58:58 -0500 Received: (from uucp@localhost) by hqvsbh1.ms.com (8.9.3/8.9.3(vs)) id FAA20897; Thu, 11 Jan 2001 05:58:58 -0500 (EST) X-Authentication-Warning: hqvsbh1.ms.com: Processed from queue /var/spool/mqueue-vs X-Authentication-Warning: hqvsbh1.ms.com: Processed by uucp with -C /etc/mail/sendmail.vs.cf Received: from hasmh1.ms.com(138.20.197.23) by hqvsbh1 via smap (4.1) id sma.9792107331.020872; Thu, 11 Jan 01 05:58:53 -0500 Received: from msdw.com (cw017617.morgan.com [138.20.218.52]) by hasmh1.morgan.com (8.8.5/imap+ldap v2.4) with ESMTP id KAA03366; Thu, 11 Jan 2001 10:58:54 GMT Message-ID: <3A5D9134.D2A22A93@msdw.com> Date: Thu, 11 Jan 2001 10:55:48 +0000 From: Werner Guttmann Reply-To: Werner.Guttmann@msdw.com Organization: Morgan Stanley Dean Witter & Co. X-Mailer: Mozilla 4.75 [en]C-CCK-MCD MS4.75 V20001029.1 (WinNT; U) X-Accept-Language: en,ja MIME-Version: 1.0 To: Donald Ball CC: cocoon-users@xml.apache.org, Robin Green Subject: Re: Use of when calling a logicsheet References: Content-Type: multipart/mixed; boundary="------------4388CF2ED0EBEA4661AA3CE7" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N --------------4388CF2ED0EBEA4661AA3CE7 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Donald, tried both 'get-nested-content' and 'get-nested-string', and neither seems to yield the resulkt expected. Please find attached the generated java source when using get-nested-string as well as the complete logicsheet. Thanks for your help. Werner. Donald Ball wrote: > On Wed, 10 Jan 2001, Werner Guttmann wrote: > > > Followed your advise and switched to using elements for specifying the service > > to be affected and the action to be taken. The following xml fragment > > > > > > MQ > > stop > > > > > > works as planned. If I try to use the request taglib to substitute "MQ" and > > "stop" with values passed in via the HTTP request > > > > > > > > > > > > > > > > > > > > > > I still do not get the results as expected. > > > > Here's the relevant code from my logicsheet: > > > > > > > > > > > > > > > > > > > > > > > > > > > > About to service > select="$service"/>. > > > > > > > > Output still is > > > > About to service . > > > > , i.e. $service and $action are blank. > > try using get-nested-string from esql logicsheet. also, please send a > message with your generated java source attached. i know get-nested-string > will work, but i think get-nested-content should work for your simple > usage. > > - donald --------------4388CF2ED0EBEA4661AA3CE7 Content-Type: text/xml; charset=us-ascii; name="manageSubsystem.xsl" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="manageSubsystem.xsl" "" + + "" "" java.rmi.RMISecurityManager com.msdw.futopt.spider.SpiderSubsystemManager com.msdw.futopt.spider.SpiderConnector com.msdw.futopt.spider.SpiderConnectivityParameters com.msdw.futopt.spider.Service com.msdw.futopt.spider.poller.Poller com.msdw.futopt.spider.logger.Logger com.msdw.futopt.spider.SpiderException java.rmi.RemoteException protected static final String PROPSFILE_CONNECTIVITY = "propsFileConnectivity"; private SpiderSubsystemManager getManager (Service service) { SpiderSubsystemManager manager = null; SpiderConnectivityParameters connectivityParameters = null; String propertiesFile = servletContext.getInitParameter(PROPSFILE_CONNECTIVITY); InputStream in = servletContext.getResourceAsStream(propertiesFile); if (in != null) { // create an instance of SpiderConnectivityParameters, and load // its properties from the supplied InputStream connectivityParameters = new SpiderConnectivityParameters(in); try { /* remote service invocation */ SpiderConnector connector = new SpiderConnector(connectivityParameters); manager = (SpiderSubsystemManager) connector.connect(service); } catch (SpiderException e) { e.printStackTrace(); } } return manager; } private String actionManager(Service service, String action) { String retVal = null; try { SpiderSubsystemManager manager = getManager(service); if (action.equals("start")) manager.start(); else manager.stop(); retVal = "OK"; } catch (SpiderException e) { e.printStackTrace(); retVal = e.getMessage(); } catch (RemoteException e) { e.printStackTrace(); retVal = e.getMessage(); } return retVal; } private String serviceRequest (String serviceName, String action) { servletContext.log("serviceName = " + serviceName); String retVal = null; if (serviceName == null) { return new String ("Cannot resolve service."); } if (serviceName.equals("MQ")) { retVal = actionManager (Service.MQ, action); } if (serviceName.equals("POLLER")) { retVal = actionManager (Service.POLLER, action); } return retVal; } About to service . This mail was sent with an attachment containing encoding errors or a form of "executable" file (for example, a .exe or .com file). Because such file attachments often contain dangerous viruses, this attachment has been detached from the text of the mail and was not delivered to the recipient. Please note that the detached file has been discarded. If either the sender or the recipient deems the attachment to have contained vital business information, he or she should find an alternative method to deliver the information (for example, a virus-free .doc, .xls, or .pdf file). Any original headers are included below. --------------4388CF2ED0EBEA4661AA3CE7 Content-Type: message/rfc822; charset = "us-ascii" Content-Disposition: attachment; filename = "1.3" X-Attachment-Content-Type: application/x-javascript; name="generated.java" X-Attachment-Content-Transfer-Encoding: 7bit X-Attachment-Content-Disposition: inline; filename="generated.java" MIME-Version: 1.0 Subject: Please note: attachment discarded Content-Transfer-Encoding: quoted-printable Content suppressed: Blocked content type: application/x-javascript --------------4388CF2ED0EBEA4661AA3CE7--