Skip navigation.
Downloads | Product Documentation | Support

WebLogic Platform ISV Partners' Guide

# Configuration Files Required for File-Based Portal Applications

This appendix lists the following four configuration files that need to be copied into the `/WEB-INF` directory of each portal application you create using WebLogic Platform ISV Edition:

- Configuration File web.xml
- Configuration File weblogic.xml
- Configuration File netuix-config.xml
- Configuration File url-template-config.xml

For more information about these files and how to download them using a browser, see Building Portal Applications for Use with ISV Edition. These files are listed in this appendix for the convenience of those who are unable to download them using a browser.

Listing A-1 Configuration File web.xml

>     <?xml version="1.0" ?>
>     <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>      "http://java.sun.com/dtd/web-app_2_3.dtd">

>     <web-app>

>       <!-- NetUIx Servlet -->
>       <servlet>
>         <servlet-name>AppManagerServlet</servlet-name>
>         <servlet-class>com.bea.netuix.servlets.manager.PortalServlet</servlet-class>
>         <load-on-startup>1</load-on-startup>
>       </servlet>
>       <!-- NetUIx Portlet Servlet -->
>       <servlet>
>          <servlet-name>PortletServlet</servlet-name>
>          <servlet-class>com.bea.netuix.servlets.manager.PortletServlet</servlet-class>
>          <load-on-startup>1</load-on-startup>
>       </servlet>

>       <!-- NetUIx Servlet Mapping -->
>       <servlet-mapping>
>         <servlet-name>AppManagerServlet</servlet-name>
>         <url-pattern>/appmanager/*</url-pattern>
>       </servlet-mapping>
>       <servlet-mapping>
>         <servlet-name>AppManagerServlet</servlet-name>
>         <url-pattern>*.portion</url-pattern>
>       </servlet-mapping>
>       <servlet-mapping>
>         <servlet-name>AppManagerServlet</servlet-name>
>         <url-pattern>*.portal</url-pattern>
>       </servlet-mapping>
>         <servlet-mapping>
>             <servlet-name>PortletServlet</servlet-name>
>             <url-pattern>/portletmanager/*</url-pattern>
>         </servlet-mapping>
>         <servlet-mapping>
>             <servlet-name>PortletServlet</servlet-name>
>             <url-pattern>*.portlet</url-pattern>
>         </servlet-mapping>

>       <!-- Welcome files -->
>       <welcome-file-list>
>         <welcome-file>index.jsp</welcome-file>
>       </welcome-file-list>

>       <!-- Define the netuix tag library tld -->
>       <taglib>
>         <taglib-uri>http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0</taglib-uri>
>         <taglib-location>/WEB-INF/lib/netuix_taglib.jar</taglib-location>
>       </taglib>

>       <!-- Define the html tag library tld -->
>       <taglib>
>         <taglib-uri>http://www.w3.org/1999/xhtml-netuix-modified/1.0.0</taglib-uri>
>         <taglib-location>/WEB-INF/lib/html_taglib.jar</taglib-location>
>       </taglib>

>       <!-- Render Control Tag Library Descriptor -->
>       <taglib>
>         <taglib-uri>render.tld</taglib-uri>
>         <taglib-location>/WEB-INF/lib/render_taglib.jar</taglib-location>
>       </taglib>

>       <!-- Localization Tag Library Descriptor -->
>       <taglib>
>         <taglib-uri>l10n.tld</taglib-uri>
>         <taglib-location>/WEB-INF/lib/l10n_taglib.jar</taglib-location>
>       </taglib>

>       <login-config>
>           <auth-method>BASIC</auth-method>
>       </login-config>

>     </web-app>

Listing A-2 Configuration File weblogic.xml

>     <?xml version="1.0" ?>
>     <!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN"
>     "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">

>     <weblogic-web-app>

>       <jsp-descriptor>
>         <jsp-param>
>           <param-name>jspServlet</param-name>
>           <param-value>weblogic.servlet.WlwJSPServlet</param-value>
>         </jsp-param>
>         <jsp-param>
>           <param-name>debug</param-name>
>           <param-value>true</param-value>
>         </jsp-param>
>         <jsp-param>
>           <param-name>keepgenerated</param-name>
>           <param-value>true</param-value>
>         </jsp-param>
>         <jsp-param>
>           <param-name>pageCheckSeconds</param-name>
>           <param-value>1</param-value>
>         </jsp-param>
>         <jsp-param>
>           <param-name>encoding</param-name>
>           <param-value>UTF8</param-value>
>         </jsp-param>
>       </jsp-descriptor>

>     </weblogic-web-app>

Listing A-3 Configuration File netuix-config.xml

>     <?xml version="1.0" encoding="UTF-8"?>
>     <weblogic-portal-app
>         xmlns="http://www.bea.com/servers/portal/weblogic-portal/8.0"
>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>         xsi:schemaLocation="http://www.bea.com/servers/portal/weblogic-portal/8.0 netuix-config.xsd">

>       <!-- Turn customization on or off -->
>       <customization>
>         <enable>false</enable>
>         <propagate-preferences-on-deploy propagate-to-instances="false"/>
>       </customization>

>       <!-- Turn off netui dependancy -->
>       <pageflow>
>         <enable>false</enable>
>       </pageflow>

>       <!-- Turn off entitlement dependency and runtime check -->
>       <entitlements>
>         <enable>false</enable>
>       </entitlements>

>       <!-- Enable or disable localization -->
>       <localization>
>           <enable>true</enable>
>       </localization>

>         <!-- Container supported widow states -->
>         <window-state name="minimized">
>             <activate-image>titlebar-button-minimize.gif</activate-image>
>             <deactivate-image>titlebar-button-unminimize.gif</deactivate-image>
>             <alt-text>
>                 <locale language="en">
>                     <activate>Minimize</activate>
>                     <deactivate>Restore</deactivate>
>                 </locale>
>             </alt-text>
>         </window-state>
>         <window-state name="maximized">
>             <activate-image>titlebar-button-maximize.gif</activate-image>
>             <deactivate-image>titlebar-button-unmaximize.gif</deactivate-image>
>             <alt-text>
>                 <locale language="en">
>                     <activate>Maximize</activate>
>                     <deactivate>Restore</deactivate>
>                 </locale>
>             </alt-text>
>         </window-state>
>         <window-state name="delete">
>             <activate-image>titlebar-button-delete.gif</activate-image>
>             <alt-text>
>                 <locale language="en">
>                     <activate>Delete</activate>
>                 </locale>
>             </alt-text>
>         </window-state>
>         <window-state name="float">
>             <activate-image>titlebar-button-float.gif</activate-image>
>             <alt-text>
>                 <locale language="en">
>                     <activate>Float</activate>
>                 </locale>
>             </alt-text>
>         </window-state>

>         <!-- Container supported window modes -->
>         <window-mode name="help">
>             <activate-image>titlebar-button-help.gif</activate-image>
>             <deactivate-image>titlebar-button-help-exit.gif</deactivate-image>
>             <alt-text>
>                 <locale language="en">
>                     <activate>Help</activate>
>                     <deactivate>Leave Help</deactivate>
>                 </locale>
>             </alt-text>
>         </window-mode>
>         <window-mode name="edit">
>             <activate-image>titlebar-button-edit.gif</activate-image>
>             <deactivate-image>titlebar-button-edit-exit.gif</deactivate-image>
>             <alt-text>
>                 <locale language="en">
>                     <activate>Edit</activate>
>                     <deactivate>Leave Edit</deactivate>
>                 </locale>
>             </alt-text>
>         </window-mode>

>     </weblogic-portal-app>

Listing A-4 Configuration File url-template-config.xml

>     <?xml version="1.0" encoding="UTF-8"?>
>     <url-template-config
>         xmlns="http://www.bea.com/servers/weblogic/url-template-config/8.0"
>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>         xsi:schemaLocation="http://www.bea.com/servers/weblogic/url-template-config/8.0 url-template-config.xsd">

>         <!-- URL templates -->
>         <url-template name="default">
>             {url:scheme}://{url:domain}:{url:port}/{url:path}?{url:queryString}
>         </url-template>
>         <url-template name="proxyurl">
>             {url:scheme}://{url:domain}:{url:port}/{url:prefix}/{url:path}?{url:queryString}
>         </url-template>
>         <url-template name="finurl">
>             https://fin.domain.com:7004/{url:prefix}/{url:path}?{url:queryString}&amp;dept=finance
>         </url-template>
>         <url-template name="default-complete">
>             {url:scheme}://{url:domain}:{url:port}/{url:prefix}/{url:path}?{url:queryString}
>         </url-template>
>         <url-template name="jpf-default">
>             http://{url:domain}:{url:port}/{url:path}?{url:queryString}{url:currentPage}
>         </url-template>
>         <url-template name="jpf-action">
>             http://{url:domain}:{url:port}/{url:path}?{url:queryString}
>         </url-template>
>         <url-template name="jpf-secure-action">
>             https://{url:domain}:{url:securePort}/{url:path}?{url:queryString}
>         </url-template>
>         <url-template name="jpf-resource">
>             http://{url:domain}:{url:port}/{url:path}?{url:queryString}
>         </url-template>
>         <url-template name="jpf-secure-resource">
>             https://{url:domain}:{url:securePort}/{url:path}?{url:queryString}
>         </url-template>
>         <url-template name="extraVarTemplate">
>             {url:scheme}://{url:domain}:{url:port}/{url:path}?{url:queryString}&amp;{foo:bar}
>         </url-template>
>         <url-template name="cr124687Template">
>             foo://fooDomain:9999/{url:path}?{url:queryString}&amp;{foo:bar}
>         </url-template>
>         <url-template name="cr126105Template">
>             foo://fooDomain:9999/{url:path}?{url:queryString}{url:currentPage}
>         </url-template>
>         <jpf-url-templates>
>             <url-template-ref type="action" name="jpf-default"/>
>             <url-template-ref type="secure-action" name="jpf-default"/>
>             <url-template-ref type="resource" name="jpf-default"/>
>             <url-template-ref type="secure-resource" name="jpf-default"/>
>         </jpf-url-templates>

>         <java-portlet-url-templates>
>             <url-template-ref type="action" name="portlet-default"/>
>             <url-template-ref type="secure-action" name="portlet-default"/>
>             <url-template-ref type="resource" name="portlet-default"/>
>             <url-template-ref type="secure-resource" name="portlet-default"/>
>         </java-portlet-url-templates>

>     </url-template-config>