Howdy. I submitted this question last week, but I'm
hoping it got lost in the multiple-delivery storm, and
not that y'all are ingoring me ;-)
I have a web page which calls a servlet, and passes
parameters. I know he servlet is called (I see
it running), but it doesn't recieve any parameters.
Infact the in the servlet the query string is null.
Any suggestions?
Heres a snippet from the html page:
<A
href="datamaintenance?TABLENAME=ASSEMBLY_TEMPLATES">
Heres some of the code from the servlet: public void
doGet(HttpServletRequest req,HttpServletResponse res)
throws IOException, ServletException
{
System.out.println("request attributes: " +
req.getQueryString());
System.out.println("request attributes: " +
req.getServerName());
System.out.println("req.getParameter(thisParam)" +
req.getParameter("TABLENAME"));
All the debug lines print. The getQueryString returns
null; getServerName returns localhost (which is
correct), and the getParameter returns null (note that
the name matches the value in url that called the
servlet).
I'm perfectly willing to accept that I may have made a
stupid mistake here, but I sure am having trouble
finding it!!
Lauren
__________________________________________________
Do You Yahoo!?
Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
http://photos.yahoo.com/