Re: variable i not found in XSP!

2003-02-06 Thread Cyril Vidal
Thanks  for your help Chris!
It's working fine now!

Cyril.


> On 06.Feb.2003 -- 05:09 PM, Cyril Vidal wrote:
> > Hi,
> >
> > Since yesterday, I'm still stuck on the following problem: I can't list
the
> > items contained in a session's attribute of type Vector:
> > Always the same following error is thrown:
> > Line 236, column 59:  variable i not found in class
> > org.apache.cocoon.www.mount.essai.session3_xsp
> >
> > Below is my code:
> > 
> >
> >  >
> > xmlns:xsp="http://apache.org/xsp";
> >
> > xmlns:xsp-session="http://apache.org/xsp/session/2.0";
> >
> > xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> >
> > create-session="true">
> >
> > 
> >
> > java.util.Vector
> >
> > 
> >
> > 
> >
> > 
> >
> > Vector items = (Vector);
> >
> > if (items == null) items = new Vector(10,5);
> >
> > items.add();
> >
> > session.setAttribute("cart.items",items);
> >
> > if (!) {
> >
> > 
>
>   When nesting logic inside markup inside logic, new xsp:logic tags
>   are needed! IOW, you can put markup inside logic without manually
>   switching to e.g. text mode. That is done automatically. But once
>   you are in text mode, logic needs to be escaped again. HTH.
>
>   
>
> > for (int i = 0; i < items.size(); i++) {
> >
> > items.get(i)
> >
> > }
>
>   
>
> > 
> >
> > }
> >
> >
> > 
> >
> > 
> >
> > 
>
> Chris.
> --
> C h r i s t i a n   H a u l
> [EMAIL PROTECTED]
> fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




Re: variable i not found in XSP!

2003-02-06 Thread Christian Haul
On 06.Feb.2003 -- 05:09 PM, Cyril Vidal wrote:
> Hi,
> 
> Since yesterday, I'm still stuck on the following problem: I can't list the
> items contained in a session's attribute of type Vector:
> Always the same following error is thrown:
> Line 236, column 59:  variable i not found in class
> org.apache.cocoon.www.mount.essai.session3_xsp
> 
> Below is my code:
> 
> 
>  
> xmlns:xsp="http://apache.org/xsp";
> 
> xmlns:xsp-session="http://apache.org/xsp/session/2.0";
> 
> xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> 
> create-session="true">
> 
> 
> 
> java.util.Vector
> 
> 
> 
> 
> 
> 
> 
> Vector items = (Vector);
> 
> if (items == null) items = new Vector(10,5);
> 
> items.add();
> 
> session.setAttribute("cart.items",items);
> 
> if (!) {
> 
> 

  When nesting logic inside markup inside logic, new xsp:logic tags
  are needed! IOW, you can put markup inside logic without manually
  switching to e.g. text mode. That is done automatically. But once
  you are in text mode, logic needs to be escaped again. HTH.

  

> for (int i = 0; i < items.size(); i++) {
> 
> items.get(i)
> 
> }

  

> 
> 
> }
> 
> 
> 
> 
> 
> 
> 

Chris.
-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

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

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




variable i not found in XSP!

2003-02-06 Thread Cyril Vidal
Hi,

Since yesterday, I'm still stuck on the following problem: I can't list the
items contained in a session's attribute of type Vector:
Always the same following error is thrown:
Line 236, column 59:  variable i not found in class
org.apache.cocoon.www.mount.essai.session3_xsp

Below is my code:


http://apache.org/xsp";

xmlns:xsp-session="http://apache.org/xsp/session/2.0";

xmlns:xsp-request="http://apache.org/xsp/request/2.0";

create-session="true">



java.util.Vector







Vector items = (Vector);

if (items == null) items = new Vector(10,5);

items.add();

session.setAttribute("cart.items",items);

 the snippet below works fine *


if (!) {



The list of items is: 



}

*** the snippet below doesn't work :-(( *

if (!) {



for (int i = 0; i < items.size(); i++) {

items.get(i)

}



}








SOmeone one can help me, please?

Regards,

Cyril.




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

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