Hi
I am trying to integrate Smartclient with struts 2.
when i am using the smart client objects in jsp file the system is not able to find the smart client objects.
e.g
Below is a small piece of code that i have writte.
when i try to execute it it says “CANVAS Is undefined”.
where as if i use the same piece of code (i.e script tag in HTML file it works).
i think there might be some problem in the way i have to use the taglib and i am not following the correct methodology.
I have added the isomorphic directory under webcontents.
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”>
<%@page language=“java” contentType=“text/html; charset=ISO-8859-1”
pageEncoding=“ISO-8859-1”%>
<%@ taglib uri=“/WEB-INF/iscTaglib.xml” prefix=“isomorphic” %>
<HEAD>
<SCRIPT SRC=${pageContext.request.contextPath}/isomorphic/system/modules/ISC_Core.js></SCRIPT>
<SCRIPT SRC=${pageContext.request.contextPath}/isomorphic/system/modules/ISC_Foundation.js></SCRIPT>
<SCRIPT SRC=${pageContext.request.contextPath}/isomorphic/system/modules/ISC_Containers.js></SCRIPT>
<SCRIPT SRC=${pageContext.request.contextPath}/isomorphic/system/modules/ISC_Grids.js></SCRIPT>
<SCRIPT SRC=${pageContext.request.contextPath}/isomorphic/system/modules/ISC_Forms.js></SCRIPT>
<SCRIPT SRC=${pageContext.request.contextPath}/isomorphic/system/modules/ISC_DataBinding.js></SCRIPT>
</HEAD>
<BODY>
<SCRIPT>
Canvas.create({
ID:“myFirstWidget”,
contents:“Hello world!”,
backgroundColor:“blue”
});
</SCRIPT>
</BODY>
</HTML>
Thanks & regards
Hemant