Hai All, How I can disply a JSP page inside the portlet. If there is an example let me know please.
Greetings, Nishar. -----Original Message----- From: Paul Spencer [mailto:[EMAIL PROTECTED]] Sent: Monday, September 02, 2002 4:58 PM To: Jetspeed Users List Subject: Re: Portlets Configuration : Urgent Nishar, Use security. The simplest is to set the security-ref="admin-only" in the psml. This will only allow user in with the role admin from viewing the portlet. Another approach it to use PortalAccessController.checkPermission() in you portlet to verify the user is allowed. See org.apache.jetspeed.services.security.PortalAccessController.java and the security proposal, http://cvs.apache.org/viewcvs.cgi/jakarta-jetspeed/proposals/Security.txt?rev=HEAD&content-type=text/vnd.viewcvs-markup Paul Spencer Aliyar, Nishar wrote: >Hai All, > I wrote a portlet and I wanted to display this portlet only when the admin loged in >how I can do this. How is the configuration for the portlet and which files. > >Greetings, >Nishar. > >/////////////////////////////////////////////////////////////////// > >public class LdapAdminPortlet extends AbstractPortlet{ > > public LdapAdminPortlet() { > } > > public ConcreteElement getContent(RunData data){ > > try{ > > return new StringElement ("test ") ; > > } > catch(Exception ee){ > > Log.info(" exception from LdapAdminPortlet : "+ee); > ee.printStackTrace(); > } > > return new StringElement ("test ") ; > } >} > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
