Class AppletStarter

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.eclnt.jsfserver.util.CCServletBase
org.eclnt.jsfserver.starter.AppletStarter
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class AppletStarter extends CCServletBase
Creates an html that calls the page contained in the requested URL.

There are some parameters that can be passed as URL parameters:

"cctemplate" is a pointer to the template resource file that is used for creating the html/jnlp file. The resource must be available within the class path.

"ccsamesession" is an indicator that the same http session that is used in the starter application is used for the processing within the CaptainCasa client.

"ccstyle" passes a server side style that is to be used for the page that is requested

"cctransfercookies" is an indicator that cookies of the request are transferred into client query parameters following a certain naming convention: if the cookie's name is "aaaa" and the value is "bbbb" then the query parameter will be "http-cookie:aaaa=bbbb".

"cclibs" defines what additional client side libraries are to be loaded in addition to eclnt.jar. The value you passe is a concatenation out of...
"swt" ==> ACTIVEX and BROWSER component
"pdf" ==> PDFRENDERED and PDFPRINTER component
"jasperreports" ==> Jasperreports components
"simplehtmleditor" ==> Simply HTML editor component
"comm" ==> Comm-API (serial connectivity)
"jssc" ==> Jssc-API (serial connectivity)
"osm" ==> Open Street Map Viewer
See Also:
  • Constructor Details

    • AppletStarter

      public AppletStarter()
  • Method Details

    • doGet

      protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
      Overrides:
      doGet in class javax.servlet.http.HttpServlet
      Throws:
      javax.servlet.ServletException
      IOException
    • calculateCodeBase

      protected String calculateCodeBase(javax.servlet.http.HttpServletRequest req)
      Calculation of codebase out of url