Hello All,
Am trying to embed an
applet inside a portlet
jsp. But when i access the jsp from the IE. I dont see the applet being rendered on the page. I think its the problem of my applet codebase but not sure how to get through. Below is my jsp code which is being rendered.
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
<%@taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>
<%@page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1" session="false"%>
<portlet
efineObjects />
<script type="text/javascript">
alert("test123");
alert("<%=renderResponse.encodeURL(renderRequest.getContextPath() + "/lib2")%>");
</script>
<applet WIDTH = "50%" HEIGHT = "92%" NAME = "Applet" ALIGN = "middle" BORDER = "0"
CODE = "com.test.MyApplet.class"
CODEBASE = 'renderResponse.encodeURL(renderRequest.getContextPath()) + "/lib2"'
ARCHIVE = "sao.jar,sAOClient.jar">
<param name= "scriptable" value="true">
<PARAM NAME = 'env' VALUE='local'>
</applet>
And i have copied all the required jars for the applet under
/WebContent/lib
and just for
testing i also copied the jars to
/WebContent/WEB-INF/lib2
and i tried the codebase as :
CODEBASE = 'renderResponse.encodeURL(renderRequest.getContextPath()) + "/lib2"'
or
CODEBASE = 'renderResponse.encodeURL(renderRequest.getContextPath()) + "/lib"'
both of the above statements dont work. And i dont even see anything on my
java console or my server logs.
Can someone please advise where i am getting it wrong.
I am using RAD7, WebSpherePortal 6.0 server
Thanks,