How to make a composer project to become a java related project?

Hi, Friend,

I tried to develop a backend jsp block in a composer project.
However, my jsp code can not be recognized as a java related code,
that means it will not be compiled automatically, it’s very hard to debug.
Is there anything I can do to make my composer project become a automatic compiled java related project?

Thanks in advance.

Kevin

another thing is if I add a external jar into this composer project, which directory should I put it in?

/include? /WEB-INF/lib ? /src ?

1 Like

myabe it should be put into tomcat’s lib directory, I found json.jar there.

Hi Kevin,

You can find the answer in Composer’s help:

If any custom backend logic pages use libraries, place the libraries in the Java Composer Project’s WEB-INF/lib directory. This directory typically contains JAR files that contain Java class files (and associated resources) required for the application. Note: The Tomcat application server should be restarted after changing any JAR files in this folder.
R.

Thank you, René.
I haven’t got a chance to put it in to composer project/WEB-INF/lib directory, At least, it works in tomcat’s common lib directory, since I found json.jar there.
However, it must be better to put jar into directory only related to project.

1 Like