LaunchPad

From PlcWiki

(Difference between revisions)
Jump to: navigation, search
m (Installation)
m (Installation)
Line 9: Line 9:
<xml>
<xml>
-
<context-param>
 
-
<param-name>app_conf</param-name>
 
-
<param-value>/Users/mca/Documents/eclipse-workspace/CleverMenu/temp/config.json</param-value>
 
-
</context-param>
 
-
<context-param>
 
-
<param-name>remote_webapps</param-name>
 
-
<param-value>/var/tomcat/webapps</param-value>
 
-
</context-param>
 
<context-param>
<context-param>
<param-name>sasmenu</param-name>
<param-name>sasmenu</param-name>
Line 24: Line 16:
<param-name>clever</param-name>
<param-name>clever</param-name>
<param-value>http://www.clever.cz/asr.htm</param-value>
<param-value>http://www.clever.cz/asr.htm</param-value>
 +
</context-param>
 +
</xml>
 +
 +
* Setup method how to access remote Tomcat servers
 +
 +
<xml>
 +
<context-param>
 +
<param-name>remote_webapps</param-name>
 +
<param-value>/var/tomcat/webapps</param-value>
</context-param>
</context-param>
</xml>
</xml>

Revision as of 11:44, 7 September 2012

WEB 3 Menu (LaunchPad)

svn+ssh://caslavam@oko.clever.cz/java/CleverMenu

Installation

  • jdbc/PLCDB
  • web.xml
	<context-param>
		<param-name>sasmenu</param-name>
		<param-value>/SasMenu</param-value>
	</context-param>
	<context-param>
		<param-name>clever</param-name>
		<param-value>http://www.clever.cz/asr.htm</param-value>
	</context-param>
  • Setup method how to access remote Tomcat servers
	<context-param>
		<param-name>remote_webapps</param-name>
		<param-value>/var/tomcat/webapps</param-value>
	</context-param>

Application Requirements (how to add an app)

Add a static file into the document root if you have only one application language (i18n) or dynamically generated file by locale query parameter. The file name must be app.json. Example:

{
   "name": "Title",
   "description": "Lorem Ipsum",
   "iconURL": "http://www.smartclient.com/smartgwt/showcase/images/pieces/24/cube_green.png",
   "target": "_self",
   "project": Colorado,
   "tag": null
}

Notice: The file app.json must be excluded from authentication. Example:

<security-constraint>
  <web-resource-collection>
    <web-resource-name>Public</web-resource-name>
    <url-pattern>/app.json</url-pattern>
  </web-resource-collection>
  <!-- No auth-constraint means everybody has access! -->
</security-constraint>
Personal tools