which is the problem?

2001-06-19 Thread Simone Bortolaso



The compilator say:

java.lang.Exception: XSP Java Compiler: Compilation 
failed for _index.java
2385: Undefined variable: u
 
xspExpr(formatDate(u,1,viewer),document)
 

.
End the code is:



xsp:logic
thresholdlabelThresholds:/label 
date-headerDate/date-headerpre-alarm-headerPre-alarm 
Threshold 
/pre-alarm-headeralarm-headerAlarm 
Threshold /alarm-header  
xsp:contentfor(int 
u = 0; u lt; 
u++){value 
datexsp:exprformatDate(u,1,viewer)/xsp:expr/datepre-alarmxsp:exprformatDate(u,2,viewer)/xsp:expr/pre-alarm 
alarmxsp:exprformatDate(u,3,viewer)/xsp:expr/alarm/value}/xsp:content/threshold
xsp:logic



RE: which is the problem?

2001-06-19 Thread Morrison, John

I don't know for sure, but I believe that the xsp:content tag is the
cause.  Try...


  for(int u = 0; u lt; u++){
   xsp:content
   value   
datexsp:exprformatDate(u,1,viewer)/xsp:expr/date   
pre-alarmxsp:exprformatDate(u,2,viewer)/xsp:expr/pre-alarm

  alarmxsp:exprformatDate(u,3,viewer)/xsp:expr/alarm  
   /value  
/xsp:content   
  }

J.

-Original Message-
From: Simone Bortolaso [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 19 June 2001 08:53
To: [EMAIL PROTECTED]
Subject: which is the problem?


The compilator say:

java.lang.Exception: XSP Java Compiler: Compilation failed for _index.java
2385: Undefined variable: u
 xspExpr(formatDate(u,1,viewer),document)
 
 
.
End the code is:



xsp:logic
threshold
  labelThresholds:/label
  date-headerDate/date-header
  pre-alarm-headerPre-alarm Threshold /pre-alarm-header
  alarm-headerAlarm Threshold /alarm-header 
  
   
   xsp:content
  for(int u = 0; u lt; u++){
   value   
datexsp:exprformatDate(u,1,viewer)/xsp:expr/date   
pre-alarmxsp:exprformatDate(u,2,viewer)/xsp:expr/pre-alarm

  alarmxsp:exprformatDate(u,3,viewer)/xsp:expr/alarm  
   /value  
   
  }
/xsp:content

   /threshold

xsp:logic
 


===
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: which is the problem?

2001-06-19 Thread matthieu VIDAL

A xsp:logic is missing before your java code.
- Original Message -
From: Morrison, John [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 19, 2001 9:54 AM
Subject: RE: which is the problem?


 I don't know for sure, but I believe that the xsp:content tag is the
 cause.  Try...


   for(int u = 0; u lt; u++){
xsp:content
value
 datexsp:exprformatDate(u,1,viewer)/xsp:expr/date
 pre-alarmxsp:exprformatDate(u,2,viewer)/xsp:expr/pre-alarm

   alarmxsp:exprformatDate(u,3,viewer)/xsp:expr/alarm
/value
 /xsp:content
   }

 J.

 -Original Message-
 From: Simone Bortolaso [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, 19 June 2001 08:53
 To: [EMAIL PROTECTED]
 Subject: which is the problem?


 The compilator say:

 java.lang.Exception: XSP Java Compiler: Compilation failed for _index.java
 2385: Undefined variable: u
  xspExpr(formatDate(u,1,viewer),document)


 .
 End the code is:



 xsp:logic
 threshold
   labelThresholds:/label
   date-headerDate/date-header
   pre-alarm-headerPre-alarm Threshold /pre-alarm-header
   alarm-headerAlarm Threshold /alarm-header


xsp:content
   for(int u = 0; u lt; u++){
value
 datexsp:exprformatDate(u,1,viewer)/xsp:expr/date
 pre-alarmxsp:exprformatDate(u,2,viewer)/xsp:expr/pre-alarm

   alarmxsp:exprformatDate(u,3,viewer)/xsp:expr/alarm
/value

   }
 /xsp:content

/threshold

 xsp:logic



 ===
 Information in this email and any attachments are confidential, and may
 not be copied or used by anyone other than the addressee, nor disclosed
 to any third party without our permission.  There is no intention to
 create any legally binding contract or other commitment through the use
 of this email.

 Experian Limited (registration number 653331).
 Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html

 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: which is the problem?

2001-06-19 Thread Simone Bortolaso

if i write the same code without for and with variable the compiler says the
same things

int u = 10;
xsp:content
value
 datexsp:exprformatDate(u,1,viewer)/xsp:expr/date
 pre-alarmxsp:exprformatDate(u,2,viewer)/xsp:expr/pre-alarm

   alarmxsp:exprformatDate(u,3,viewer)/xsp:expr/alarm
/value
 /xsp:content
   }

why?

- Original Message -
From: Morrison, John [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 19, 2001 9:54 AM
Subject: RE: which is the problem?


 I don't know for sure, but I believe that the xsp:content tag is the
 cause.  Try...


   for(int u = 0; u lt; u++){
xsp:content
value
 datexsp:exprformatDate(u,1,viewer)/xsp:expr/date
 pre-alarmxsp:exprformatDate(u,2,viewer)/xsp:expr/pre-alarm

   alarmxsp:exprformatDate(u,3,viewer)/xsp:expr/alarm
/value
 /xsp:content
   }

 J.

 -Original Message-
 From: Simone Bortolaso [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, 19 June 2001 08:53
 To: [EMAIL PROTECTED]
 Subject: which is the problem?


 The compilator say:

 java.lang.Exception: XSP Java Compiler: Compilation failed for _index.java
 2385: Undefined variable: u
  xspExpr(formatDate(u,1,viewer),document)


 .
 End the code is:



 xsp:logic
 threshold
   labelThresholds:/label
   date-headerDate/date-header
   pre-alarm-headerPre-alarm Threshold /pre-alarm-header
   alarm-headerAlarm Threshold /alarm-header


xsp:content
   for(int u = 0; u lt; u++){
value
 datexsp:exprformatDate(u,1,viewer)/xsp:expr/date
 pre-alarmxsp:exprformatDate(u,2,viewer)/xsp:expr/pre-alarm

   alarmxsp:exprformatDate(u,3,viewer)/xsp:expr/alarm
/value

   }
 /xsp:content

/threshold

 xsp:logic



 ===
 Information in this email and any attachments are confidential, and may
 not be copied or used by anyone other than the addressee, nor disclosed
 to any third party without our permission.  There is no intention to
 create any legally binding contract or other commitment through the use
 of this email.

 Experian Limited (registration number 653331).
 Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html

 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]