Java Servlets

Forwarding from JSP

<% String destination;
  if (Math.random() > 0.5) {
     destination = "/examples/page1.jsp";
  } else {
     destination = "/examples/page2.jsp";
  }
%>
<jsp:forward page="<%= destination %>" />

José M. Vidal .

83 of 89