
If the form in AddStudent.jsp was completed, StudentsList.jsp shows all the students, else the MainMenu.html is displayed.
StudentsList.jsp
<%
if(request.getParameter("add_stud") != null){
//read parameters from the form in the AddStudents.jsp (works OK)
//inserting the student in the database (works OK)
}
%>}else{%>
<jsp:forward page = "MainMenu.html"/>
<%}%>
Also if one field of the form is not completed, a javascript alerts "Type this in the X field".
Is it because of that, the jsp:forward is not forwarding?