You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Stefan Geelen <st...@hotmail.com> on 2004/02/17 23:44:56 UTC

Bug in sendmail .xsp using ?

Hi, 

I have following .xsp sheet with the sendmail 

(...)

        <sendmail:send-mail>
          <sendmail:from><xsp:expr>request.get("from")</xsp:expr></sendmail:from> -->
          <sendmail:to>cocoon@some.com</sendmail:to>
          <sendmail:subject><xsp:expr>""+request.getParameter("action")+": " +request.getParameter("from")</xsp:expr></sendmail:subject>-->
          <sendmail:smtphost>localhost</sendmail:smtphost>
          <sendmail:body>test</sendmail:body>
          <sendmail:on-success>
            <xsp:logic>
              if (request.getParameter("action").equals("subscribe")) {
                <p>You have been subscribed !</p>
              } else {
               <p>You have been unsubscribed !</p>
              }
            </xsp:logic>

            <p>Thanks again and enjoy your day.</p>
          </sendmail:on-success>
          <sendmail:on-error>
            <p>An error occurred when trying to process your request:<br/>
              <b>
                <xsp:expr>request.get("to")</xsp:expr>
              </b>.</p>
            <p>The error-message is:</p>
           <sendmail:error-message/>
          </sendmail:on-error>
        </sendmail:send-mail>
(...)

This give a compile error:

org.apache.cocoon.ProcessingException: Failed to execute pipeline.: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling update_announcement_list_xsp: ERROR 1 (org\apache\cocoon\www\xmlmill\xsp\update_announcement_list_xsp.java): .. (_sendmail_mms.getException().getMessage()) // start error (lines 774-774) "Syntax error on keyword "this"; "=", "*=", "/=", "%=", "+=", "-=", "<<=", ">>=", ">>>=", "&=", "^=", "|=", "++", "--" expected" this.characters("\n "); // end error } }// sendmail .. Line 774, column 0: Syntax error on keyword "this"; "=", "*=", "/=", "%=", "+=", "-=", "<<=", ">>=", ">>>=", "&=", "^=", "|=", "++", "--" expected


When I put the error-message in comment : <!-- <sendmail:error-message/> -->

it compiles fine.

Is this a bug in Cocoon 2.1.4 ??

Regards,

Stefan