cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mirco Bharpalania" <>
Subject problems with a logicsheet
Date Tue, 20 Nov 2001 14:54:05 GMT
I am new to cocoon and xsp and logicsheets. I want to use a mail logicsheet
in order to display mails on a browser. I don't know exactly how to use this
logicsheet and how to handle the parameters.
I will attach the logicsheet and my xsp-file to show what I mean
exactly.Maybe I my xsp-file is completely wrong ?!

I would be very happy for an answer to my question!!!

mail logicsheet:
<xsl:template match="mail:execute-query">
 <xsl:variable name="protocol">
  <xsl:call-template name="get-nested-string">
   <xsl:with-param name="content" select="mail:protocol"/>
 <xsl:variable name="host">
  <xsl:call-template name="get-nested-string">
   <xsl:with-param name="content" select="mail:host"/>
 <xsl:variable name="port">    <!-- POP3 is conventionally on port 110 -->
  <xsl:call-template name="get-nested-string">
   <xsl:with-param name="content" select="mail:port"/>
 <xsl:variable name="username">
  <xsl:call-template name="get-nested-string">
   <xsl:with-param name="content" select="mail:username"/>
 <xsl:variable name="password">
  <xsl:call-template name="get-nested-string">
   <xsl:with-param name="content" select="mail:password"/>
 <xsl:variable name="mbox">
  <xsl:call-template name="get-nested-string">
   <xsl:with-param name="content" select="mail:mbox"/>
   Properties _mail_properties = new Properties();
   Session _mail_session =
    <xsl:when test="$protocol">
     Store _mail_store = _mail_session.getStore(String.valueOf(<xsl:copy-of
     Store _mail_store = _mail_session.getStore();
   Integer _mail_port = null;
   try {
    _mail_port = new Integer(String.valueOf(<xsl:copy-of select="$port"/>));
   } catch (Exception e) {}
    String.valueOf(<xsl:copy-of select="$host"/>),
    _mail_port == null ? -1 : _mail_port.intValue(),
    String.valueOf(<xsl:copy-of select="$username"/>),
    String.valueOf(<xsl:copy-of select="$password"/>));
   Folder _mail_folder = _mail_store.getDefaultFolder();
   _mail_folder = _mail_folder.getFolder(String.valueOf(<xsl:copy-of
   <xsl:apply-templates select="mail:results/*"/>

and this is my xsp-file:
		String POP3="POP3";
		String localhost="localhost";
		String portm="110";
		String test="test";
		String inbox="inbox";


Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message