----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Have I posted too many questions or is it just too stupid to 
bother with ??



> However, still BAD REQUEST return.
> 
> Here is my .html file in /usr/local/apache/htdocs
> 
> <HTML>
> <HEAD>
> <TITLE>Introductions</TITLE>
> </HEAD>
> <BODY>
> <FORM ACTION="/servlets/HelloName" method=GET>
> what is your name ?
> <INPUT TYPE=TEXT NAME="name"><P>
> <INPUT TYPE=SUBMIT>
> </FORM>
> </BODY>
> </HTML>
> 
> Her is my .java file in /usr/local/jserv/servlets
> 
> import java.io.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
> 
> public class HelloName extends HttpServlet {
>   public void deGet(HttpServletRequest req, HttpServletResponse res)
>                     throws ServletException, IOException {
> 
>    res.setContentType("text/html");
>    PrintWriter out = res.getWriter();
> 
>    String[] name = req.getParameterValues("name");
>    out.println("<HTML>");
>    out.println("<HEAD><TITLE>Hello, " + name[0] + "</TITLE></HEAD>");
>    out.println("<BODY>");
>    out.println("Hello," + name[0]);
>    out.println("</BODY></HTML>");
> }
> }
> 
> any help ??
> 
> regards
> 
> michael lim


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to