HI all,
I add the jboss-portlet.xml file;
<portlet-app>
<service-name>UserModule</service-name>
<service-class>org.jboss.portal.identity.UserModule</service-class>
<service-ref>:service=Module,type=User</service-ref>
</portlet-app>
and use
UserModule userModule = (UserModule)
getPortletContext().getAttribute("UserModule");
String userId = request.getParameters().getParameter("userid");
User user = userModule.findUserById(userId);
in the portlet, but it throw many exceptions.
so I try to print out what's userModule.
it's print [service=Module,type=User], how I can use UserModule in the portlet?
can you example that to me? Thanks very much!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974211#3974211
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974211
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user