Please help to come to from this problem:
i had written a sample code to display Hello and imported as jar files then created new dynamic web project and using a hello.jsp page i am calling the applet class but its not display the applect please give me the solutions:
the code is as follows:

hello.jsp:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
Welcome to Applet
<br></br>....................................
<applet codebase="/WEB-INF" archive="SampleApplet.jar" code="com.Hello.class" width="400" height="400" align="MIDDLE" alt="Java needed to display this Applet.">
<param name="flavour" value="strawberry">
........................................................
</applet>
</body>
</html>

and
SampleApplet.jar fle stored as follows:

SampleWebApplication:-
- WebContent:-
- WEB-INF:-
-hello.jsp
-SampleApplet.jar
-web.xml

SampleApplet.jar Contains the Class like :

com :
Hello.class

Just run in browser.. in eclipse it wont show the applet so u have to run in Browser like IE or Mozilla

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.