Foros de discusión

Getting liferay jsp to reconize my java class??

Patrick da Silva, modificado hace 12 años.

Getting liferay jsp to reconize my java class??

New Member Mensajes: 12 Fecha de incorporación: 28/09/11 Mensajes recientes
Hi I'm very new to Liferay, we are using CE 6.0.6 with Tomcat I'm working with a hook and inside my jsp page I would like to access a method from a java class that I created. Is there a way this can be done? The server throws back an error that it can't resolve the object to a type (for example ClassName cn = new ClassName(): I've tried exporting the java class I created from Eclipse as a jar file and placing the jar in our Liferay_6.0.6/sdk/lib directory. I've also tried placing the jar file in the lib directory of the hook itself but no luck. Should I create an ext?

Thanks
thumbnail
Ravi Kumar Gupta, modificado hace 12 años.

RE: Getting liferay jsp to reconize my java class?? (Respuesta)

Liferay Legend Mensajes: 1302 Fecha de incorporación: 24/06/09 Mensajes recientes
Can you try putting that lib in tomcat/lib/ or tomcat/lib/ext or tomcat/webapps/root/web-inf/lib
Patrick da Silva, modificado hace 12 años.

RE: Getting liferay jsp to reconize my java class??

New Member Mensajes: 12 Fecha de incorporación: 28/09/11 Mensajes recientes
Thank you, that worked!!