[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] [RAQ550] - URGENT PLZ - Servlets
- Subject: [cobalt-users] [RAQ550] - URGENT PLZ - Servlets
- From: "Laurent GROUSSET" <laurent.grousset@xxxxxxxxx>
- Date: Tue Jun 24 09:07:01 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
Hi all
i can't make working servlets on my box.
This is my architecture :
./index.jsp
/WEB-INF/classes/testServ.class
When i try to make a form with POST action
to /WEB-INF/classes/testServ ... it tell me than there is
a misconfiguration of my box ....
testServ is like this :
/* START */
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class IntsServlet extends HttpServlet {
/** Called when the form is filled in by the user. */
public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
resp.setContentType("text/html");
PrintWriter out = resp.getWriter( );
// The usual HTML setup stuff.
out.println("<HTML>");
out.println("<HEAD>");
out.println("<BODY BGCOLOR=\"white\">");
// HTML for this page
out.println("<TITLE>Your Personal Random Numbers</TITLE>");
out.println("<OL>");
}
}
/* END */
and the compilation is good ....
What is the pb plz ????
Thanks to all !!!!
Laurent GROUSSET.