Home  >  Q&A  >  body text

java - servlet在tomcat运行时报错


servlet在tomcat运行时报错,错误及代码如图,新手求高手指点!不胜感激!

PHP中文网PHP中文网2741 days ago391

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2017-04-18 09:50:35

    The author should learn to debug by interrupting by himself.

    username 客户端有传这个值吗?这个是我猜的。
    楼主看一下 LogLet 22行的代码吧,有一个变量是 null.

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-18 09:50:35

    1. Check whether the Servlet configuration in web.xml is correct;
    2. Check whether the parameter name in the request URL is username;

    reply
    0
  • Cancelreply