Home > Back-end >  The Servlet service () for the Servlet JSP threw the exception. Java lang. NullPointerException
The Servlet service () for the Servlet JSP threw the exception. Java lang. NullPointerException

Time:09-21


I really can't find where the problem is, yeah?

CodePudding user response:

Null pointer! See what message JSP 534 lines of writing

CodePudding user response:

Message JSP no line 534

CodePudding user response:

reference 1st floor YangjulongTrue response:
null pointer! See what message JSP 534 lines of writing

No line 534 message JSP

CodePudding user response:

reference 1st floor YangjulongTrue response:
null pointer! See what message JSP 534 lines of writing

Can you help me to look at which there is something wrong with the
<% @ page language="Java" import="Java. Util. *, com. Findu. Entity. *, com. Findu. Dao. *" contentType="text/HTML. Charset=utf-8 "% & gt;

<%
The String go="";

String regmsg=(String) request. GetAttribute (" registerMsg ");
If (regmsg==null) {
Regmsg="";
} else {
Go="/FindU/HTML/signin. JSP";
}

String loginmsg=(String) request. GetAttribute (" loginmsg ");
If (loginmsg==null) {
Loginmsg="";
} else {
Go="/FindU/HTML/index. The JSP";
}

String appmsg=(String) request. GetAttribute (" appmsg ");
If (appmsg==null) {
appmsg

CodePudding user response:


reference quietly listen to reply: * the rainy season, 4/f
Quote: refer to 1st floor YangjulongTrue response:
null pointer! See what message JSP 534 lines of writing

Can you help me to look at which there is something wrong with the
<% @ page language="Java" import="Java. Util. *, com. Findu. Entity. *, com. Findu. Dao. *" contentType="text/HTML. Charset=utf-8 "% & gt;

<%
The String go="";

String regmsg=(String) request. GetAttribute (" registerMsg ");
If (regmsg==null) {
Regmsg="";
} else {
Go="/FindU/HTML/signin. JSP";
}

String loginmsg=(String) request. GetAttribute (" loginmsg ");
If (loginmsg==null) {
Loginmsg="";
} else {
Go="/FindU/HTML/index. The JSP";
}

String appmsg=(String) request. GetAttribute (" appmsg ");
If (appmsg==null) {
Appmsg

I feel (String) request. GetAttribute (" registerMsg ");
For the first sentence is turn is empty or null String error
 
If (request. GetAttribute (" registerMsg ")!=null) {

}

You write the code,,, I see a good fan
Personally, I feel you are the one above is worse than a setAttribute HashMap (a) it can directly map

CodePudding user response:

Said to me the message of JSP 534 refers to the JSP compiled into a Java source file number of rows
Is not a JSP template the number of rows
  • Related