This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Fowarding to velocity template in Liferay with Struts2

 
Siddhartha Muthiah
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 108
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic