Trying to validate form entries using a
servlet and it's working fine. The problem is if a field wasn't filled out, I want to display it on another page. I have it printing what field wasn't filled in on
tomcat but can't get it to display on another page using the forward method. I'm receiving null instead of the field that wasn't filled in. The error messages are stored in the class. The System.out.println you see here are for displaying in the tomcat window. Any ideas? Here's the code -
if (valresult.equals("val")) {
RecordValClass.getInstance().insertUsers(rv);
request.getRequestDispatcher ("jsp/successpage.jsp").forward
(request,response);
}else{
request.getRequestDispatcher("jsp/errorpage.jsp?valerror= " +
valresult.toString()).forward (request,response);
System.out.println("result after 15: " + valresult.toString());
}
[ December 14, 2004: Message edited by: Jim Shapt ]