You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Irene Huang <ih...@acegain.com> on 2002/02/16 03:42:46 UTC
Servlet as a portlet?
Hello,
I was tring to add a servlet to work as a portlet in Jetspeed 1.3a2 (don't
really know how to write a portlet..)
I can see it on the portlet list. But after I click add portlet, the portlet
didn't show up.
***Here are my steps, please take a look:***
1. put the "FormTest.class" in <jetspeed>/WEB-INF/classes/
Q: Can I create a folder "Servlet" and put my servlet class there?
If I did, What will be the needed modification in step 2 and 3?
2. add following in <jetspeed>/WEB-INF/web.xml
<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. add following in <jetspeed>\WEB-INF\conf\xxx.xreg
<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 Servlet</title>
<description>FormTest Servlet</description>
</meta-info>
<parameter name="url" value="/FormTest" hidden="false"/>
<media-type ref="html"/>
</portlet-entry>
Thank you for your help!!
Irene
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: All user ids that are not used for 90 days will be deactivated.
Posted by todd tredeau <to...@wisernet.com>.
I agree, it would be a great feature to add..... just make the "dead"
user time settable in a parameter file...
Anyone figure out the Tomcat 4.0.2 .v.s. Tomcat 4.0.1 problem yet??
todd
http://www.wiserlabz.com
collaborative effort to promote Novell and Open Source Solutions
<!-- BEGIN LINK-TOOL CODE -->
<script LANGUAGE="JavaScript" SRC="http://get.link-tool.com/get.jsp?siteid=10068" TYPE="text/javascript"></SCRIPT>
<!-- END LINK-TOOL CODE -->
David Sean Taylor wrote:
>The easist way would be to check on logon (JLoginUser action)
>If the difference between last-logon and today is greater than 90 days,
>then disable the account and show the 'account disabled' screen. I've
>recently added account disabling feature.
>See
>http://jakarta.apache.org/jetspeed/site/config_guide.html#Account%20Disa
>bling
>
>Perhaps this is a useful enough feature to add to the base system.
>What do you all think?
>
>>-----Original Message-----
>>From: Anthony Smith [mailto:anthony.smith@fedex.com]
>>Sent: Tuesday, February 26, 2002 11:58 AM
>>To: Jetspeed Users List
>>Subject: All user ids that are not used for 90 days will be
>>deactivated.
>>
>>
>>What is the easiest way to implement this?
>>
>>--
>>To unsubscribe, e-mail:
>><mailto:jetspeed-user-> unsubscribe@jakarta.apache.org>
>>For
>>additional commands,
>>e-mail: <ma...@jakarta.apache.org>
>>
>>
>
>
>
>--
>To unsubscribe, e-mail: <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
Sending Encrpyted email
Posted by Anthony Smith <an...@fedex.com>.
Is there anyway I can send the username/password in a encrypted email,
without the receiver of the email having to have any special decrpytion
software?
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: All user ids that are not used for 90 days will be deactivated.
Posted by David Sean Taylor <da...@bluesunrise.com>.
The easist way would be to check on logon (JLoginUser action)
If the difference between last-logon and today is greater than 90 days,
then disable the account and show the 'account disabled' screen. I've
recently added account disabling feature.
See
http://jakarta.apache.org/jetspeed/site/config_guide.html#Account%20Disa
bling
Perhaps this is a useful enough feature to add to the base system.
What do you all think?
> -----Original Message-----
> From: Anthony Smith [mailto:anthony.smith@fedex.com]
> Sent: Tuesday, February 26, 2002 11:58 AM
> To: Jetspeed Users List
> Subject: All user ids that are not used for 90 days will be
> deactivated.
>
>
> What is the easiest way to implement this?
>
> --
> To unsubscribe, e-mail:
> <mailto:jetspeed-user-> unsubscribe@jakarta.apache.org>
> For
> additional commands,
> e-mail: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
All user ids that are not used for 90 days will be deactivated.
Posted by Anthony Smith <an...@fedex.com>.
What is the easiest way to implement this?
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Servlet as a portlet?
Posted by Irene Huang <ih...@acegain.com>.
Ozgur,
I didn't change the FormTest.java, and it is running fine stand-alone.
I think there's something wrong in my step 3, modify the .xreg.
Please check it:
3. add following in <jetspeed>\WEB-INF\conf\xxx.xreg
<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 Servlet</title>
<description>FormTest Servlet</description>
</meta-info>
<parameter name="url" value="/FormTest" hidden="false"/>
<media-type ref="html"/>
</portlet-entry>
Q: how will this find my servlet? through the parameter name="url", which
define in web.xml?
Thank you for the help!
Irene
-----Original Message-----
From: Ozgur Balsoy [mailto:balsoy@grids.ucs.indiana.edu]
Sent: Saturday, February 16, 2002 2:03 PM
To: 'Jetspeed Users List'
Subject: RE: Servlet as a portlet?
Irene,
Test if your servlet is running stand-alone. You should be able to test
it with URL: http://host/jetspeed/FormTest.
Your question:
a) If you define your class, FormTest, in a package called "myfolder"
then the class file must be in <jetspeed>/WEB-INF/classes/myfolder, and
in step 2, you need to change the servlet-class to:
<servlet-class>
myfolder.FormTest
</servlet-class>
b) If you want to change the URL of your servlet to, say,
/myservlets/FormTest, then you need to change the url-pattern in step 2
to
<url-pattern>
/myservlets/FormTest
</url-pattern>
and change your servlet entry so it reflects the change:
<parameter name="url" value="/myservlets/FormTest"
hidden="false"/>
a) and b) do not depend on each other because of the servlet mappings in
web.xml.
Did you change FormTest.java file? If so, you can send it to me. I can
take a look at it.
Ozgur
> -----Original Message-----
> From: Irene Huang [mailto:ihuang@acegain.com]
> Sent: Friday, February 15, 2002 9:43 PM
> To: Jetspeed user
> Subject: Servlet as a portlet?
>
> Hello,
>
> I was tring to add a servlet to work as a portlet in Jetspeed 1.3a2
(don't
> really know how to write a portlet..)
> I can see it on the portlet list. But after I click add portlet, the
> portlet
> didn't show up.
>
> ***Here are my steps, please take a look:***
>
> 1. put the "FormTest.class" in <jetspeed>/WEB-INF/classes/
>
> Q: Can I create a folder "Servlet" and put my servlet class there?
> If I did, What will be the needed modification in step 2 and 3?
>
>
> 2. add following in <jetspeed>/WEB-INF/web.xml
> <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. add following in <jetspeed>\WEB-INF\conf\xxx.xreg
> <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 Servlet</title>
> <description>FormTest Servlet</description>
> </meta-info>
> <parameter name="url" value="/FormTest" hidden="false"/>
> <media-type ref="html"/>
> </portlet-entry>
>
>
> Thank you for your help!!
>
>
> Irene
>
>
> --
> To unsubscribe, e-mail: <mailto:jetspeed-user-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:jetspeed-user-
> help@jakarta.apache.org>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Servlet as a portlet?
Posted by Ozgur Balsoy <ba...@grids.ucs.indiana.edu>.
Irene,
Test if your servlet is running stand-alone. You should be able to test
it with URL: http://host/jetspeed/FormTest.
Your question:
a) If you define your class, FormTest, in a package called "myfolder"
then the class file must be in <jetspeed>/WEB-INF/classes/myfolder, and
in step 2, you need to change the servlet-class to:
<servlet-class>
myfolder.FormTest
</servlet-class>
b) If you want to change the URL of your servlet to, say,
/myservlets/FormTest, then you need to change the url-pattern in step 2
to
<url-pattern>
/myservlets/FormTest
</url-pattern>
and change your servlet entry so it reflects the change:
<parameter name="url" value="/myservlets/FormTest"
hidden="false"/>
a) and b) do not depend on each other because of the servlet mappings in
web.xml.
Did you change FormTest.java file? If so, you can send it to me. I can
take a look at it.
Ozgur
> -----Original Message-----
> From: Irene Huang [mailto:ihuang@acegain.com]
> Sent: Friday, February 15, 2002 9:43 PM
> To: Jetspeed user
> Subject: Servlet as a portlet?
>
> Hello,
>
> I was tring to add a servlet to work as a portlet in Jetspeed 1.3a2
(don't
> really know how to write a portlet..)
> I can see it on the portlet list. But after I click add portlet, the
> portlet
> didn't show up.
>
> ***Here are my steps, please take a look:***
>
> 1. put the "FormTest.class" in <jetspeed>/WEB-INF/classes/
>
> Q: Can I create a folder "Servlet" and put my servlet class there?
> If I did, What will be the needed modification in step 2 and 3?
>
>
> 2. add following in <jetspeed>/WEB-INF/web.xml
> <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. add following in <jetspeed>\WEB-INF\conf\xxx.xreg
> <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 Servlet</title>
> <description>FormTest Servlet</description>
> </meta-info>
> <parameter name="url" value="/FormTest" hidden="false"/>
> <media-type ref="html"/>
> </portlet-entry>
>
>
> Thank you for your help!!
>
>
> Irene
>
>
> --
> To unsubscribe, e-mail: <mailto:jetspeed-user-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:jetspeed-user-
> help@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>