I am making a web application on project management system.In that I used index.jsp, validation.jsp.
The problem is that when check username & password in validation.jsp,it just sends it welcome.jsp with Username as null without checking whether username or password is null or not.
Here My Each & Every JSP page I used please help me about how to I reslove this problem.Also tell me how to send username to welcome.jsp page using this code or another.
The above line should be, <%= session.getAttribute("loginname") %>, i guess...
Also, I can't understand why you are checking the username and password null condition in an JSP, you could just check it in an servlet and then forward to welcome.jsp, if the condition is met, which would make the code and logic more clear...
Regards, Prasad
SCJP 5 (93%)
dileep keely
Ranch Hand
Joined: Jun 28, 2010
Posts: 91
posted
0
Can you try doing this:
In VALIDATION.JSP replace 18th line
<jsp:param name="loginname" value="${param.loginname}"></jsp:param>
with <jsp:param name="loginname" value="${sessionScope.loginname}"></jsp:param>
because "
"param" will act as request.getParameter(String XXXX);
"sessionScope" as session.getAttribute(String XXXX);