I'm getting the following error message when attempting to set a variable with a
List type.

[error] RHS of #set statement is null. Context will not be modified. view.vm
[line 29, column 8]

#set ($car = $Driver.getCar())
#set ($mfr = $car.getManufacturer())
#set ($model = $car.getModel())
#set ($availableCars = $Inventory.getAllCars([$mfr, $model, $cars.CT_MANUAL])) 
##<= error line

$Driver is supplied by the servlet by: ctx.put("Driver", driver);

getManufacturer() returns a String

getModel() returns a String

CT_MANUAL is defined as: public static final int CT_MANUAL = 1;

getAllCars(String, String, int) returns a List of all available cars that match
the specifications.

Does this code even make sense?

Thanks in advance!


------------------------------------------------------------------------------
This message may contain confidential information, and is intended only for the use of 
the individual(s) to whom it is addressed.


==============================================================================


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

Reply via email to