help on applet/jsp communication!

Hi all,

I have an applet embedded in a JSP page using the <jsp:plugin> tag. I want to have the applet return a string (using url connection and outputstream) to the same JSP page when it's done loading but it's not working. The applet starts with no problem but after it's done loading and writes the value to the outputstream, the JSP page does not see the value and hangs instead. I'd like to find out if this is possble to do at all, if so, what am I doing wrong?

Thanks!

E

[518 byte] By [evelynwang] at [2007-9-26 3:27:46]
# 1

Have you tried this example from the j2eetutorial. Is this working for u? For me it is not working. Could you please. Just reply me in yes or no.

Thanks

Raj

Code is given below.

<body bgcolor="#FFFFFF">

<center>

<hr>

<h1>

<font size="+3" color="#CC0066">Duke's</font>

<img src="duke.books.gif">

<font size="+3" color="black">Bookstore</font>

</h1>

<jsp:plugin type="applet" code="data.DigitalClock.class" codebase="." jreversion="1.3" align="center" height="25" width="300"

nspluginurl="http://java.sun.com/products/plugin/1.3.0_01/plugin-install.html"

iepluginurl="http://java.sun.com/products/plugin/1.3.0_01/jinstall-130_01-win32.cab#Version=1,3,0,1" >

<jsp:params>

<jsp:param name="language" value="<%=request.getLocale().getLanguage()%>" />

<jsp:param name="country" value="<%=request.getLocale().getCountry()%>" />

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

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

</jsp:params>

<jsp:fallback>

<p>Unable to start plugin.</p>

</jsp:fallback>

</jsp:plugin>

</center>

<hr>

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