How to use applet in jsp with tomcat ? Help me please

Hi all,

I've read lot of thread about JSP using Applet and it seems to be difficult to do.

My problem is that I'm using an applet into a jsp page, my jsp create the applet parameter.

The source returned by the jsp page seems to be good but the applet (which shall display a Pie Chart) display only a circle (correspond to init method). Is there any way to fix this problem ?

I've put my applet source and class into web-inf\classes\myclasses directory and I call it in the jsp page by using

<jsp:useBean id="PieChart" class="htmlgraph.PieChart" scope="request" />

I'm working with Tomcat 3.2 and jdk 1.2, the applet is working fine with fixed parameter (when I use it in a basic html file), but not in my jsp page.

Hope someone will be able to help me

Thanks in advance

Shamann

[870 byte] By [jshamann] at [2007-9-26 3:20:55]
# 1
Hi,don't use jsp:bean but that<jsp:plugin type="applet" code="htmlgraph.PieChart.class" width="500" height="300"><jsp:param name="name" value="value"/></jsp:plugin>
gentyt at 2007-6-29 11:37:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Thanks for your reply, I've tried it but tomcat return me an error as jsp:plugin not closed.Have you got any idea ?RgdsShamann
jshamann at 2007-6-29 11:37:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Well I forgot something for the parameters :

<jsp:plugin type="applet" code="htmlgraph.PieChart.class" width="500" height="300">

<jsp:params>

<jsp:param name="name" value="value"/>

</jsp:params>

<jsp:fallback>

Java not supported

</jsp:fallback>

</jsp:plugin>

It should now work, let me know if it doen't

gentyt at 2007-6-29 11:37:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...