WebSphere Portal Server - Re: How to use PortletService from Struts actions

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > May 2006 > Re: How to use PortletService from Struts actions





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: How to use PortletService from Struts actions
Joydeep B

2006-05-03, 1:16 pm

Do this ...

try {
Context ctx = new InitialContext();
Object home =
ctx.lookup("portletservice/com.joy.portletservice.MyPortletService");
if (home != null) {
MyPortletServiceHome = (PortletServiceHome) home;
}
} catch (Exception ex) {
// can't find service home
}
MyPortletService service =
(MyPortletService) MyPortletServiceHome.getPortletService(MyPortletService.class);

bye,
Joydeep

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com