Ozgur, I've followed your instructions, after I click "add" portlet, the "FormTestDemo" appeared in the customize pane. After I click "Save&Apply", all the portlets still there but the "FormTestDemo" didn't show up. any idea?
thank you for quick reply :) Irene -----Original Message----- From: Ozgur Balsoy [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 5:05 PM To: 'Jetspeed Users List' Subject: RE: Attn: Ozgur RE:Q:Servlets and Database search in Jetspeed Irene, 1) The portlet entry for my test servlet should be similar to this: <portlet-entry name="Servlet" hidden="false" type="abstract" application="false"> <classname>org.apache.jetspeed.portal.portlets.ServletInvokerPortlet </classname> </portlet-entry> <portlet-entry name="FormTestServlet" hidden="false" type="ref" parent="Servlet" application="false"> <meta-info> <title>FormTest Demo</title> <description>FormTest Demo</description> </meta-info> <parameter name="url" value="/formtest" hidden="false"/> <media-type ref="html"/> </portlet-entry> 2) Add these entries to your jetspeed\WEB-INF\web.xml file: <servlet> <servlet-name> formtest </servlet-name> <servlet-class> FormTest </servlet-class> </servlet> <servlet-mapping> <servlet-name> formtest </servlet-name> <url-pattern> /formtest </url-pattern> </servlet-mapping> 3) Put FormTest.class file into WEB-INF\classes if you have no package name for it. If you have a package name, it must be put properly, and the servlet entry in web.xml must reflect that. 4) Restart Tomcat. Let me know if these fail. Ozgur -----Original Message----- From: Irene Huang [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 3:14 PM To: Jetspeed Users List Subject: Attn: Ozgur RE:Q:Servlets and Database search in Jetspeed Ozgur, I've tried the attached servlet sample you post, but I still couldn't run it as a portlet. my steps: 1. add this into one of my .xreg: <portlet-entry name="Servlet Testing ..." hidden="false" type="instance" application="false"> <meta-info> <description>Servlet Testing again</description> </meta-info> <classname>com.bluesunrise.portal.portlets.FormTest</classname> <media-type ref="html"/> </portlet-entry> 2. put the class file of this servlet in <jetspeed-home>\WEB-INF\classes\com\bluesunrise\portal\portlets 3. Start Tomcat, Log in, and try to add portlet but when I try to add this servlet after I click "save & apply", the portlets all disappear. Can you tell me the steps to make this servlet running as a Jetspeed portlet? Where should I put the class file of this servlet at? Do I need to modify this web.xml file? //jetspeed/WEB-INF/web.xml Thank you for help!! Irene -- 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]>
