سؤال

I'm using magnolia and I have this variable:

${def.parameters.subTemplate}

I want to set the variable subPath, I'm doing the following below

<% String subPath= ${def.parameters.subTemplate};  %>

but it doesn't work

هل كانت مفيدة؟

المحلول

<c:set var="subPath" value="${def.perameters.subTemplate" />

and then

${subPath}
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top