Novell Home

Including .jsp Files in iManager Custom Tasks

Novell Cool Solutions: Tip

Digg This - Slashdot This

Posted: 12 Jan 2005
 

So you're building a custom task for iManager, and you want to include some .jsp files. And then you realize you're not sure exactly where to put those files so iManager will find them ... Here's some advice from one of our experts:<


iManager will find all .jsp files under this location:

webapps/nps/portal/modules/<any module>/skins/default/devices/<any device>

In your .xml descriptor for registering your task, include your .jsp in the following format:

<merge-template>(moduleid).(jspfilewithoutjspending)</merge-template>

For example, in the following statement:

<merge-template>sdk.CustomCreateExampleTemplate</merge-template>

iManager would look for webapps/nps/portal/modules/sdk/skins/default/devices/default/CustomCreateExampleTemplate.jsp as well as the same named file under the different devices directories (browser, pocket, etc.).

Here is a sample task declaration:

   <task>
      <id>sdk.CustomCreate</id>
      <version>1.0</version>
      <required-version>1.0</required-version>
      <class-name>com.company.plugins.CustomCreateExampleTask</class-name>
     
<display-name-key>CustomCreateExample.TaskDisplayName</display-name-key>
      <description-key>CustomCreateExample.Description</description-key>
     
<resource-properties-file>com.company.plugins.iManagerCodeExamplesResources</resource-properties-file>
      <role-assignment>iManager Code Examples</role-assignment>
      <merge-template>sdk.CustomCreateExampleTemplate</merge-template>
      <error-template>dev.GenErr</error-template>
   </task>


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell