Calling a applet in JSF page
Hello Folks
I am having problem accesing the applet from the web application my applet runs fine if i run it in the IDE.
These are my methods in the bean
public String getApplet() {
applet = "<applet code=\"applet.PrinterApplet.class\"codebase=\".\" archive=\"SSignedPrinterApplet.jar\" width=\"400\" height=\"400\">"+
"<PARAM NAME=\"fileName\" VALUE=\"TITLE_12732.pdf\">"+
"<PARAM NAME=\"basePath\" VALUE=\"<%=basePath%>\">"+
"</applet>";
return applet;
//"<applet code=\"PrinterApplet.class\" width=\"300\" height=\"300\"/>";
}
public void setApplet(String applet) {
this.applet = applet;
}
here is my jsf call
<h:outputText value="#{activitySummaryBean.applet}" styleClass="labelTextBlack"></h:outputText>
it does not invoke the applet it just displays the text.
<applet code="applet.PrinterApplet.class" codebase="." archive="SSignedPrinterApplet.jar" width="400" height="400"><PARAM NAME="fileName" VALUE="TITLE_12732.pdf"><PARAM NAME="basePath" VALUE="<%=basePath%>"></applet>
I was refering to the link below
http://developers.sun.com/prodtech/javatools/jscreator/reference/techart/2/applet.html?feed=DSC
please let me know your thoughts
Thanks,
Surendra

