velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marc <>
Subject Problem getting variables from objects in a arraylist
Date Wed, 06 Jul 2005 10:12:43 GMT
I have this code in a actionservlet(using struts):
itx = new InitialContext();
SupportCaseHome ejbcasehome = (SupportCaseHome) 
SupportCase ejbcase = ejbcasehome.create();

cases = ejbcase.getCasesForUser(login.getUser().getWdk());

return mapping.findForward("mycases");

then I have this in a .vm file:
     #foreach ($case in $cases)

why do It get this output():
case.getSupportcase().getCreateBy()  	case.getSupportcase().getProblem()

and not the right the data??

The classes are avalible, because if I put this in the servlet:
SupportcaseDocument scd =(SupportcaseDocument) cases.get(0);
System.out.println("TEST AF SCD "+scd.getSupportcase().getCaseId());

I get: TEST AF SCD 10003

anybody have anything?

regards //Marc>>

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

View raw message