Portal servlet 1.6

A Java servlet
Portal servlet is a Java servlet lets you combine a set of sites on the same screen. Each site will be wrapped as a separate box (portlet). How to use it:

1) download portalPackage.jar and save it in WEB-INF/lib

2) describe PortalServlet in your web.xml file. Servlet reads own settings from the configuration file. You must set this configuration file as an initial parameter for servlet. Parameter name is config. E.g.:

 < servlet >
 < servlet-name >PortalServlet< /servlet-name >
 < servlet-class >com.jsos.portal.PortalServlet< /servlet-class >
 < init-param >
 < param-name >config< /param-name >
 < param-value >path_to_your_configuration_file< /param-value >
 < /init-param >
 < /servlet >


3) define a mapping:
 
 < servlet-mapping >
 < servlet-name >PortalServlet< /servlet-name >
 < url-pattern >/servlet/portal< /url-pattern >
 < /servlet-mapping >


and now you can use it:

http://your_host/servlet/portal

Configuration file is a xml file. It has got the following form:

< ?xml version="1.0" encoding="UTF-8"? >
< portal title="title_for your portal" >

< portlet title="title_for_this_portlet" url="URL_for_this_portlet"/ >
< portlet title="title_for_this_portlet" url="URL_for_this_portlet"/ >
...
< /portal >


for example:
 
< ?xml version="1.0" encoding="UTF-8"? >
< portal title="Search engines" >

< portlet title="Google" url="http://www.google.com"/ >
< portlet title="Yahoo" url="http://www.yahoo.com"/ >
< portlet title="Bing" url="http://www.bing.com"/ >

< /portal >

last updated on:
November 19th, 2009, 11:27 GMT
price:
FREE!
developed by:
Coldbeans
homepage:
www.servletsuite.com
license type:
Other/Proprietary License
category:
ROOT \ Internet \ HTTP (WWW)

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!

Add your review!

SUBMIT