• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Portlet

 
Vicky Vijay
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have created and deployed it using Tomcat,

When an button is clicked in that Porlet, it needs to be moved to another

action, instead am getting the following Exception, can any one help me out..?

" java.lang.ClassCastException: com.liferay.portlet.ActionRequestImpl
at com.liferay.portal.apache.bridges.struts.LiferayRequestDispatcher.invoke(LiferayRequestDispatcher.java:89)
at com.liferay.portal.apache.bridges.struts.LiferayRequestDispatcher.include(LiferayRequestDispatcher.java:74)
at org.apache.portals.bridges.struts.StrutsPortlet.processRequest(StrutsPortlet.java:375)
at org.apache.portals.bridges.struts.StrutsPortlet.processAction(StrutsPortlet.java:279)
at com.sun.portal.portletcontainer.appengine.filter.FilterChainImpl.doFilter(FilterChainImpl.java:93) "
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When an button is clicked in that Porlet, it needs to be moved to another


What it is 'it', and what another is 'another.'

Does the button need to be moved to another portlet, or does the portlet need to be moved to another portlet? Not sure what you're trying to do.

Give us an update.

-Cameron McKenzie
 
Vicky Vijay
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks

When the Button in the portlet is clicked,

If suppose the button is "Edit" -> (Editing the Particular Customer Details) , then the process
should be forwarded to another JSP Page Displaying the Details of the
Customer with in the same portlet.

While Clicking on the "Edit" Button am getting the Exception
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A portlet can use any JSP that's accessible within its war file:



Here I use the welcome.jsp, but you could call anything depending upon your logic.

Be careful with the 'edit' button idea, as edit is also a portlet mode. You don't want to confuse users.

-Cameron McKenzie
 
Jonas X. Yuan
author
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guru,

I guess that you use Liferay enterprise portal EXT.

There is one good example: reports with training materials. It will be a big help to develop any new Struts portlets.

Please inform us if you have any more issues ......

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic