• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 149
  • Last Modified:

Call applet from a servelet

Could someone please tell me how to call an applet from a servelet.

Thanks in advance,
AW
0
Arnima
Asked:
Arnima
  • 2
1 Solution
 
Ravindra76Commented:


Hi,

out.println("<html><body>");
out.println("<applet codebase=yourserverdirectory code=yourappletclass height=someheight width=somewidth>");
out.println("</applet></body>");

Here out is

HttpServletResponse object (Assume res)

PrintWriter out = res.getWriter();

Best of luck




0
 
muraliramCommented:
Hi friend,


This is simple
In the service() method

HttpServletResponse object (Assume res)

PrintWriter out = res.getWriter();


output.println("<html><body>");
out.println("<applet codebase=yourserverdirectory code=yourappletclass height=someheight width=somewidth>");
out.println("</applet></body>");

Try it
0
 
Ravindra76Commented:
Hi Murali,


what is the difference between mine and your answer
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now