Happy New Year Everybody...
i have a small problem in folloeing code
code
-----------------------------
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import Test2;
public class testsrevlet extends HttpServlet {
public void init(ServletConfig config)
throws ServletException {
//Always pass the ServletConfig object to super class
super.init(config);
}
//Process the Http Get request
public void doGet(HttpServletRequest request,HttpServletResponse response)
throws ServletException , IOException {
doPost(request, response);
}
//Process the Http Post request
public void doPost(HttpServletRequest request,HttpServletResponse response)
throws ServletException , IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
Enumeration parameters = request.getParameterNames();
String param = null;
if(parameters.hasMoreElements() ) {
param = (String)parameters.nextElement();
out.println("<
Applet code=Test.java height=113 width=115>");
out.println("<param name=item value= " + param + ">");
out.println("</Applet>");
out.println("</body></html>");
}
out.close();
}
//Get
Servlet information
public String getServletInfo() {
return "ex1 Information";
}
}
----------------------------------------------
in the above code the applet is not getting invoked properly
only the background is seen in the browser
please help
------------------
Sagar Surana
optimist