wood burning stoves 2.0*
The moose likes Portals and Portlets and the fly likes Fowarding to velocity template in Liferay with Struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Fowarding to velocity template in Liferay with Struts2" Watch "Fowarding to velocity template in Liferay with Struts2" New topic
Author

Fowarding to velocity template in Liferay with Struts2

Siddhartha Muthiah
Greenhorn

Joined: Jan 15, 2008
Posts: 1
We have problem in forward to a velocity template.

I am using:
1.Portlets(286) on LifeRay(5.2.3)-Tomcat5.2.27
2.Struts2 portlet plugin
3.Velocity (we are just evaluating this for our candidate architecture)...trying to replace JSP's

its scenario is simple.

we have search.vm which calls an action on form submit, which then forwards to a result.vm with a "success" forward name.

I am having problems with this. I get an exception. (java.lang.IllegalStateException: Not allowed in a portlet)

Need help/direction.
Jonas X. Yuan
author
Ranch Hand

Joined: May 18, 2008
Posts: 108
You may check this example (Struts 2 in Liferay portal)

http://www.liferay.com/web/guest/community/forums/-/message_boards/message/1350331

It is working fine in Liferay 5.1 or above.

Thanks

-- Jonas Yuan

Books:
Liferay Portal 5.2 Systems Development
Liferay Portal 5.0 Enterprise Intranets
 
 
subject: Fowarding to velocity template in Liferay with Struts2
 
Similar Threads
Working with Struts2
In struts2
Struts2 with Portlet
struts2