jsp forward not functioning

jsp forward not functioning

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?

View Answers

Ads









Related Tutorials/Questions & Answers:
jsp forward not functioning
jsp forward not functioning  If the form in AddStudent.jsp...". Is it because of that, the jsp:forward is not forwarding... the student in the database (works OK) } %>}else{%> <jsp
JSP Forward action
JSP Forward action  Jsp forward action tag examples
Advertisements
jsp:forward tag ussage
jsp:forward tag ussage  can you give me example of how to use jsp:forward tag... i intend to call action class   Hi Friend, Please visit the following links: http://www.roseindia.net/jsp/jsp-forward-request.shtml
jsp:forward tag usage and stntax
jsp:forward tag usage and stntax  jsp:forward tag usage and syntax with an example
Forward a Jsp Page
Forward a Jsp Page In this example program we will show you how to use the <jsp:forward tag in your jsp program. The <jsp:forward tag is used... is not logged in you can forward the user on the login page. Here is the use of <jsp
JSP forward
JSP forward       This section illustrates you how you can use JSP forward action to forward to servlet. Create jsp Page: To create a jsp page,  following steps
Passing parameters in JSP using forward.
Passing parameters in JSP using forward.  If a page is forwarded to another page using jsp:forward, is it necessary that the page should be already............   Pass Parameters using jsp:forward
How to forward the control from one jsp to another?
How to forward the control from one jsp to another?  Hi... is not communicate with the Third JSP. I want forward the control from first jsp to second...-forward-request.shtml http://www.roseindia.net/jsp/jspforwardtoservlet.shtml Thanks
How to validate a form in action class and forward errors to the jsp in struts?
How to validate a form in action class and forward errors to the jsp in struts?  How to validate a form in action class and forward errors to the jsp in struts
How to disable browser back and forward button after logout [in struts2 or jsp]
How to disable browser back and forward button after logout [in struts2 or jsp]  How to disable browser back and forward button after logout [in struts2 or jsp] I am using window.history.forward(); function
JSP
what is JSP forward tag for  what is JSP forward tag for   ... for the same:- <jsp:forward page="...url..." /> We can also forward parameter to the other page using the param tag <jsp:forward page="..url..."><
Conditional Forward using EL
Conditional Forward using EL          We can forward one page to another jsp page...;).equals("")) {%> <jsp:forward page = "
ModuleNotFoundError: No module named 'forward'
ModuleNotFoundError: No module named 'forward'  Hi, My Python... 'forward' How to remove the ModuleNotFoundError: No module named 'forward... to install padas library. You can install forward python with following command
Forward a JSP Page
Forward a JSP Page      ... of the program is given below:     <jsp:forward page="... then the controller decides by which jsp or servlet this request
JSP forwarding
JSP forwarding  What is JSP forwarding?   Hi, You can use the JSP forward tag for jsp forwarding. This will help you forward your request...: <jsp:forward page="anotherpage.jsp"/> Thanks
ModuleNotFoundError: No module named 'Flask-Forward'
ModuleNotFoundError: No module named 'Flask-Forward'  Hi, My... 'Flask-Forward' How to remove the ModuleNotFoundError: No module named 'Flask-Forward' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'gpg-forward'
ModuleNotFoundError: No module named 'gpg-forward'  Hi, My Python... 'gpg-forward' How to remove the ModuleNotFoundError: No module named 'gpg-forward' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'tcp-forward'
ModuleNotFoundError: No module named 'tcp-forward'  Hi, My Python... 'tcp-forward' How to remove the ModuleNotFoundError: No module named 'tcp-forward' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'tcp-forward'
ModuleNotFoundError: No module named 'tcp-forward'  Hi, My Python... 'tcp-forward' How to remove the ModuleNotFoundError: No module named 'tcp-forward' error? Thanks   Hi, In your python environment
how send nsnotification to forward class
how send nsnotification to forward class   how to send nsnotification to a forward class? i am sending a nsnotification to a class which is not loaded yet. example,there is a class A,where i am creating a dictionary and posting
Jsp Action Tags
Jsp Action Tags  how can i use jsp forward action tag?i want examples
jsp
jsp  how jsp translated into servlets
JSP
JSP  How to run jsp program in eclipse
jsp
jsp  how to create jsp page
Jsp
Jsp  Can I implement interface in jsp
jsp
jsp  how to include two jsp page
jsp
jsp  how to create a table in oracle using jsp and the table name is entered in text feild of jsp page
jsp
jsp  write a code for jsp file generator to generate a jsp page automatically taking html page as input
JSP
JSP  Hi, What is JSP? What is the use of JSP? Thanks   Hi, JSP Stands for Java Server Pages. It is Java technology for developing web applications. JSP is very easy to learn and it allows the developers to use Java
jsp
jsp  how to connect the database with jsp using mysql   Hi Friend, Please visit the following links: http://www.roseindia.net/jsp/connectjspwith_mysql.shtml http://www.roseindia.net/jsp/Accessingdatabase-fromJSP.shtml
jsp
jsp   what is the basic necessities reguired for running jsp using JDBC bridge?? and how to write a jsp code to access the detail present in microsoft access pls send link regarding above

Ads