Hean
Hean

Reputation: 1

<jsp:forward page=""> shows blank page

I am new to Java Programming and I am trying to do a in my control page, but the page is blank. Please help.

Codes for calling page is as follows:

if(strClashInd == "Y") {
  out.println("clash records detected!");    
%> 
  <jsp:forward page="displayClash.jsp">
    <jsp:param name="eventRsv" value="paramValue" />
  </jsp:forward>
<%
} else {
  out.println("proceed with bookings!");
}

Upvotes: 0

Views: 204

Answers (1)

Scary Wombat
Scary Wombat

Reputation: 44834

The way that you are comparing Strings is wrong

if(strClashInd == "Y")

whether this java code is in jsp or a POJO

use String.equals or even better in jsp use <c:if ....>

Upvotes: 2

Related Questions