I am currently checking compatibility between Railo and Adobe ColdFusion.

 <cfscript>
 param request.objCycle             = new model.cycle();
 ...

Just dies on Railo.

 Message string Invalid Identifier. 
有帮助吗?

解决方案

This is nothing to do with the new operator, it's to do with param. There's a bug in Railo in that it won't allow for scoped variables in that context. Details here.

You will have to use this syntax:

param name="request.objCycle" default="#new model.cycle()#";
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top