Hey!

This may not be a servlet problem.  It may be your applet.
Does the applet work?

Q: Why are you serving up the applet this way?

Why not just launch the applet on the client browser
with some HTML.

More information is needed.  What kind of problem
are you having connecting to DB?

Sans adieu,
Danny Rubis

"PANKIL R. SHAH" wrote:

> Hi,
>
> I got a problem. I have an applet and I want to communicate with the
> database. The connection of the database is the run() method of the
> applet. I have embedded the applet within the servlet. i.e the servlet
> code looks like :
>
> public class Test1 extends HttpServlet
> {
>         public void doGet( HttpServletRequest request,
>                 HttpServletResponse response )
>                 throws ServletException, IOException
>         {
>                 PrintWriter output;
>                 response.setContentType("text/html");
>                 output=response.getWriter();
>
>                 StringBuffer buf = new StringBuffer();
>                 buf.append("<HTML>\n");
>                 buf.append("<applet code=PlayBack.class height = 500
> width = 500>\n");
>                 buf.append("</applet>\n");
>                 buf.append("</HTML>\n");
>                 output.println(buf.toString());
>                 output.close();
>         }
>       public void doPost( HttpServletRequest request,
>                 HttpServletResponse response )
>                 throws ServletException, IOException
>         {
>          doGet(request,response);
>       }
>
> }
>
> where PlayBack.java is the applet. Still I am having problem with the
> servlet connecting with the database. Anybody got a solution to this.
> Thanks for any help.
>
> Regards,
> Pankil.
>
> ___________________________________________________________________________
> 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

___________________________________________________________________________
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

Reply via email to