• 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 ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Portlet

 
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) "
 
author and cow tipper
Posts: 5000
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
Posts: 5000
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
 
author
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
 
Because those who mind don't matter and those who matter don't mind - Seuss. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!