Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JSP-Servlet jsp forward not functioning
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Sarbu Diana
jsp forward not functioning
0 Answer(s)      2 years and 4 months ago
Posted in : JSP-Servlet


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?


Advertisement
View Answers

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 action tag
jsp forward action tag  Defined jsp forward action tag ?   ... application context as the forwarding JSP file. Syntax of forward action Tag: <jsp:forward page="{relativeURL | <%= expression %>}" /> <jsp:forward
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 - JSP-Servlet
jsp:forward  Hi, I want check one condition if it is true the only I have forward it io jsp. My code is like this but it is not working please help...=formobject.formbeanvarable.value;(like /jsp/jspname.jsp) jsp name is captured from DB I
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
Struts ForwardAction vs Forward tag in jsp - Struts
Struts ForwardAction vs Forward tag in jsp  difference between struts ForwardAction class and Forward tag in jsp
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
disable backward and forward buttons of the browsers - JSP-Interview Questions
disable backward and forward buttons of the browsers  Dear, Thanks for your last reply. I want if you help me to disable the backward of forward... to any website when i logout, i can not do forward or backward. In this way I
disable backward and forward buttons of the browsers - JSP-Interview Questions
disable backward and forward buttons of the browsers  Dear, Please can you help me : I want to disable backward and forward buttons of the browsers (internet Explorere, Mozilla, Firefox, netscape and so). Is it possible
how to forward select query result to jsp page using struts action class
how to forward select query result to jsp page using struts action class  how to forward select query result to jsp page using struts action class
Forward - Struts
Forward  Hi how to get the return value of execute() in Action class. we will write return mapping.findForward("success"); how to get the value of forward. Is there any method to get the which forward is executing
Difference between forward and sendRedirect
to another jsp or servlet. sendRedirect() is more flexible than forward...Difference between forward and sendRedirect  What's the difference between forward and sendRedirect?   RequestDispatcher.forward
Conditional Forward using EL
Conditional Forward using EL          We can forward one page to another jsp page...;).equals("")) {%> <jsp:forward page = "
forward error message in struts
forward error message in struts  how to forward the error message got in struts from one jsp to other jsp?   Hello Friend, Use <%@ page... to the specified jsp page. For more information, visit here Thanks
Browser Back/Forward - Struts
Browser Back/Forward  Hi, Greetings to all. I have developed a web application using Struts 2. Now, i want to enable browser back/forward/bookmarking in that. Can anyone post me some links/tutorial/examples or how to go
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
j2me- forward a video - Java Beginners
j2me- forward a video  hi friends, i have play a video using J2ME. but, i have unable to forward a video. does anybody know about it?? please help me.. thanks, regards, sakthi  Hi Friend, Please
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
RequestDispatcher object, difference between include( ) and forward( ) method.
RequestDispatcher object, difference between include( ) and forward( ) method.  The RequestDispatcher object has two methods, include( ) and forward( ). What is the difference
@WebServlet RequestDispatcher Forward Example
@WebServlet RequestDispatcher Forward Example In this tutorial you will learn how forward to the another resources in the response. Sometimes it is required... will be required to forward directly to the another resource's/component
Should not logout after clicking the back/forward button
Should not logout after clicking the back/forward button  Hi all I have wrote a code for login now. User is able to login but after logging in when... if clicked the forward button user gets logged in..!! how can I solve this issue? What
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..."><
JDBC ResultSet Forward Type Example
JDBC ResultSet Forward Type Example: Through this ResultSet type the cursor only move forward in the result set and are non-scrollable. The following syntax are use for initialize the statement object to create a forward-only, read
Struts Warnings ...About FormBeanConfig & about Cancel Forward - Struts
have created the following jsp pages 1)Index.jsp containning the link which...)WARNING: Unable to find 'cancel' forward. the contents of struts-config.xml
Forward Log Records to Its Parent
Forward Log Records to Its Parent       This section describes how to forward log records... and this provides facility to forward log records to its parent. But it resumes
Advertisements
 

 

 

DMCA.com