servlet'ing an Applet.
Hi,
I am trying to build a servlet/HTML page containing an Applet.
1._ This is how my code looks like:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class ServletApplet02 extends HttpServlet{
public void doGet(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException{
res.setContentType("text/html");
PrintWriter out = res.getWriter();
out.println("<HTML>");
out.println(" <HEAD><TITLE>Ripple free applet</TITLE></HEAD>");
out.println(" <BODY>");
out.println(" <APPLET CODE=ripple.class
CODEBASE=http://localhost:8080/Ripple.jar WITH=190 HEIGHT=147>");
out.println(" <PARAM NAME=image
value=http://localhost:8080/free-appletsRipple.gif>");
out.println(" <PARAM NAME=period value=25>");
out.println(" <PARAM NAME=frames value=12>");
out.println(" </APPLET>");
out.println(" </BODY>");
out.println("</HTML>");
}
}
2._ I place the servlet in <SERVER_ROOT>/servlets/
3._ and the jar file in <SERVER_ROOT> (http://localhost:8080/Ripple.jar)
4._ When I try to run the servlet as:
http://localhost:8080/servlet/ServletApplet02.
5._ I don't see any errors, just the browser telling "Applet started",
but I don't see it.
How can you do something like that, what s the error I am making here.
By the way I am using the trial Version of the Java Web Server
Thanks
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html