Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Nicolas Tamayo
call Jsp Object from Velocity Template
January 18, 2013 6:26 AM
Answer

Nicolas Tamayo

Rank: Junior Member

Posts: 29

Join Date: October 3, 2012

Recent Posts

Hi All.

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

how i can do this?

Thanks and Regards.
Priyanka Dhingra
RE: call Jsp Object from Velocity Template
January 21, 2013 6:27 AM
Answer

Priyanka Dhingra

Rank: Liferay Master

Posts: 501

Join Date: December 19, 2011

Recent Posts

you can directly use $renderRequest
Ref: http://www.liferay.com/community/wiki/-/wiki/Main/Access+Objects+from+Velocity
Nicolas Tamayo
RE: call Jsp Object from Velocity Template
January 26, 2013 11:04 AM
Answer

Nicolas Tamayo

Rank: Junior Member

Posts: 29

Join Date: October 3, 2012

Recent Posts

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
Juhi Kumari
RE: call Jsp Object from Velocity Template
January 27, 2013 8:53 PM
Answer

Juhi Kumari

Rank: Expert

Posts: 347

Join Date: December 12, 2011

Recent Posts

Hi Nicolas,

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


Regards
Juhi
Nicolas Tamayo
RE: call Jsp Object from Velocity Template
January 29, 2013 5:42 AM
Answer

Nicolas Tamayo

Rank: Junior Member

Posts: 29

Join Date: October 3, 2012

Recent Posts

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.