Forums de discussion

call Jsp Object from Velocity Template

thumbnail
Nicolas Tamayo, modifié il y a 11 années.

call Jsp Object from Velocity Template

Junior Member Publications: 29 Date d'inscription: 03/10/12 Publications récentes
Hi All.

I need call the renderResponse and RenderRequest Object from velocity Templeate.

how i can do this?

Thanks and Regards.
thumbnail
Priyanka Dhingra, modifié il y a 11 années.

RE: call Jsp Object from Velocity Template

Liferay Master Publications: 501 Date d'inscription: 20/12/11 Publications récentes
you can directly use $renderRequest
Ref: http://www.liferay.com/community/wiki/-/wiki/Main/Access+Objects+from+Velocity
thumbnail
Nicolas Tamayo, modifié il y a 11 années.

RE: call Jsp Object from Velocity Template

Junior Member Publications: 29 Date d'inscription: 03/10/12 Publications récentes
HI Priyanka.

i tried this call in the Velocity Template, but the Object is null.

Note: this template is portal_normal.vm that is the Velocity Template by Theme Plugin
thumbnail
Juhi Kumari, modifié il y a 11 années.

RE: call Jsp Object from Velocity Template

Expert Publications: 347 Date d'inscription: 12/12/11 Publications récentes
Hi Nicolas,

Did u put this line in your portal-ext.properties ???
journal.template.velocity.restricted.variables=


Regards
Juhi
thumbnail
Nicolas Tamayo, modifié il y a 11 années.

RE: call Jsp Object from Velocity Template

Junior Member Publications: 29 Date d'inscription: 03/10/12 Publications récentes
Hi Juhi.

No this property not has been put to the portal-ext.properties yet.

i will try your reply.

Thanks for your reply.

regards.