cancel
Showing results for 
Search instead for 
Did you mean: 

[Solved] Store the JSP in a module

dranakan
Champ on-the-rise
Champ on-the-rise
Hello,

Can someone tell me where storing the JSP pages in a module ?

I use this way (see under) but the pages doesn't work if I want to use some ajax tools (like the Selector). The page JSP is accessible but when I confirm the selector, I receive an error (more details :http://forums.alfresco.com/en/viewtopic.php?f=10&t=12493#p60524)  . The same page work well if I put it in "/jsp/extension/actions/"

>config
   >alfresco
      >module
         >mymodule
            >ui
               >jsp
                  >actions
                     HERE
>source

Please…
1 REPLY 1

dranakan
Champ on-the-rise
Champ on-the-rise
To resolve it, man need to put the JSP in /jsp/extension/actions.

To do it, create a module like this :

Structure of the module
>config
>source
>web
       >jsp
             >extension
                          >actions
                                      HERE the jsp
Ant file (look at the line with "web")


<target name="package-amp" depends="mkdirs, package-jar" description="Package the Module">
      <zip destfile="${amp.file}">
         <fileset dir="${project.dir}/build" includes="lib/*.jar" />
         <fileset dir="${project.dir}" includes="web/**/*.*" />
         <fileset dir="${project.dir}" includes="config/**/*.*" excludes="**/module.properties" />
         <fileset dir="${project.dir}/config/alfresco/module/syslog" includes="module.properties" />
      </zip>
   </target>


I am sure that we can put the jsp anywhere… but I have not find what change to work with the ajax selector… perhaps someone will add the solution…