• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Fowarding to velocity template in Liferay with Struts2

Posts: 1
  • 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.
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may check this example (Struts 2 in Liferay portal)


It is working fine in Liferay 5.1 or above.


-- Jonas Yuan

Liferay Portal 5.2 Systems Development
Liferay Portal 5.0 Enterprise Intranets
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic