I am new to Servlets (but not Java), and am trying to sort out what I
think must be a basic concept, but I am having trouble. I have read a
lot of servlet material, but haven't run into anything that would
explain what I am trying to do. I would appreciate any clarification on
this to help get me going.

I am using HTML to communicate to a servlet, and I need to be able to
go back and forth between HTML and the servlet to progress through this
user interactive application. I login using an HTML form with text
fields, invoke the servlet, verify the login using JDBC and, once
verified as a valid login, I use the PrintWriter to output a selectable
HTML list back to HTML. I then select the list item and click on the
process button. This is the form within which the list named
configtables is created:

out.println("<form method=GET
action='http://155.108.86.200:8000/servlet/LoginServlet'>");

That's where I am stuck. In my doGet(HttpServletRequest,
HttpServletResponse) function within the servlet I try to see the
select list item using:

        String values[] = req.getParameterValues("configtable");

I get the error:

        500 Internal Server Error
        LoginServlet:
        java.lang.NullPointerException


Is the problem that I am trying to use the same servlet to process
multiple HTML screens? Should I be doing this with:

 out.println("<form method=GET
action='http://155.108.86.200:8000/servlet/NewServlet'>");        ?

I've tried a bunch of things - any help will be appreciated, Mike Drummond

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to