Portal servlet ver. 1.4

This is a Java servlet supports portals building. You can use this servlet for developing your portal as well as for portal deployment.

the usage is:

http://your_host/servlet/PortalServlet

After that you can create (in the dialogue mode) a new portal or edit existing one. Portal here is a set of individual portlets. Each portlet has got own list of attributes, including URL source.

So any portal looks like a grid of portlets, for example some like this:
 
 
[]  [] 

1-st portlet

2-nd portlet
[]  [] 

3-rd portlet

4-th portlet

You can select grid, size for the each cell (portlet) and of course a source (url) for the each portlet.

As soon as you create your portal you can run it by using the same servlet:

http://your_host/servlet/PortalServlet?your_portal_id

(This id will be generated individually for the each created portal).

How to install servlet

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

b) describe PortalServlet in your web.xml file. Servlet reads some interface parameters from own 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>

Configuration file is a text file, each line describes one parameter in the form:

parameter=value

Empty lines and any line starts with // or # are ignored.

# your base directory. Describes any existing directory on your server
# This parameter is mandatory
dir=your_base_dir

# background color. Default value is #FFFFFF
bgcolor=#FFFFF

# foreground color. Default value is #000000
fgcolor=#000000

# font face. By default it is default browser's font
face=Arial

# font size. By default it is default browser's font
size=2

# title height for portlets. Default value is 30
theight=30

# Administrator's password. Default value is 'welcome'
admin=secret_word

# title. Default value is 'Coldbeans portal'
title=Acme portals
 

For downloading:   portalPackage.jar   

Sample of config file: prtconf
 

 © Coldbeans     Comments?

See also JSOS - the largest collection of servlets and filters.