JSP FAQ

How do you pass control from one JSP page to another?

Use the following ways to pass control of a request from one servlet to another or one jsp to another. 
The RequestDispatcher object ?s forward method to pass the control. 
Ex. <jsp:forward page="b.jsp" /> 
The response.sendRedirect method 
Ex. response.sendRedirect("b.jsp");

—————

What is a Visible and Hidden Comment in jsp?

On view source (browser) the Hidden Comment is not visible to end user. 

On view source (browser) the Visible Comment is visible to end user. 

Examples 
<%-- This comment will not be visible in the page source --%> 

<!-- This comment will visible in the page source --> 

—————


Topic: JSP FAQ

Date: 23/12/2023

By: 1

Subject: Mr.

1

—————

Date: 23/12/2023

By: 1

Subject: Mr.

1

—————

Date: 23/12/2023

By: 1

Subject: Mr.

1

—————

Date: 23/12/2023

By: 1

Subject: Mr.

1

—————

Date: 23/12/2023

By: 1

Subject: Mr.

1

—————

Date: 23/12/2023

By: 1

Subject: Mr.

1

—————

Date: 23/12/2023

By: 1

Subject: Mr.

1

—————

Date: 23/12/2023

By: 1

Subject: Mr.

1

—————

Date: 23/12/2023

By: 1

Subject: Mr.

1

—————

Date: 23/12/2023

By: 1

Subject: Mr.

1

—————