----- Original Message -----
From: "Barbara Post" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 24, 2002 5:03 PM
Subject: Re: language variable, date formatting
> Hi, I used something that worked in a simple java class but here there
are
> errors:
>
> <xsp:logic>
> import java.util.*;
> import java.text.DateFormat;
> <xsp:expr>
> (DateFormat.getDateInstance(DateFormat.FULL, new
> Locale("FR"))).format(Calendar.getInstance().getTime());
> </xsp:expr>
> </xsp:logic>
>
>
> description org.apache.cocoon.ProcessingException: Language Exception:
> org.apache.cocoon.components.language.LanguageException: Error compiling
> date_xsp: Line 121, column 0: illegal start of expression Line 122,
column
> 0: illegal start of expression Line 126, column 104: ')' expected Line
127,
> column 1: illegal start of expression Line 126, column 71: variable
Calendar
> not found in class org.apache.cocoon.www.xsp.date_xsp Line 126, column
28:
> variable DateFormat not found in class
org.apache.cocoon.www.xsp.date_xsp
> Line 126, column 49: class Locale not found in class
> org.apache.cocoon.www.xsp.date_xsp Line 126, column 1: variable
DateFormat
> not found in class org.apache.cocoon.www.xsp.date_xsp Line 0, column 0:
8
> errors
>
> What's wrong ? Thanks
>
> Barbara
Just a guess: Do you remember that import's a re not allowed within
xsp:logic ? They go into xsp:structure ...
See here:
http://xml.apache.org/cocoon/userdocs/xsp/logicsheet.html
(search for structure, it nearly at the end of the page)
Jens
--
jens.lorenz at interface-projects dot de
interface:projects GmbH \\|//
Tolkewitzer Strasse 49 (o o)
01277 Dresden ~~~~oOOo~(_)~oOOo~~~~
Germany
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>