cancel
Showing results for 
Search instead for 
Did you mean: 

Execute java code from within the client

skontopo
Champ in-the-making
Champ in-the-making
Hi all!

Since I am an Alfresco newbie, I would like to ask how I can execute a piece of Java code from within the Alfresco web client.
Where should the corresponding jar be placed and what type of alterations have to be made to the various xml files?

Thanks a lot in advance!
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
If you mean the JSF client?   Then I'd suggest finding some tutorials on the web about JSP and JSF before confusing the issue with using JSF with Alfresco.

There are 3 ways main ways of executing java from a JSP: scriptlets, useBean and tags.   Do the tutorials until you understand what these terms mean.  Start playing with scriptlets although longer term you will want to avoid them.

XML comes into play with Java Server Faces.   Again find and follow the tutorials.    And then look at the alfresco code to see how it fits together.

To find your class you need to put the jar or classes onto the application server's classpath.   Each AS tends to have a    
directory that is shared by all applications, start by adding your jar file to that dir.

skontopo
Champ in-the-making
Champ in-the-making
Thanks a lot for the prompt and quick reply!
I am definitely going to start reading the tutorials you suggested!!