• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem of parameter

 
Gizzmo Zeuzere
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I try to pass a parameter, the jsp bean doesn't take it. Why ? (premiere=false all the time in my bean !!)
<html>
<head>
<%@ page import="java.util.*, java.io.*" %>
<%@ page session="true" %>
<%@ page errorPage="erreur.jsp" %>
</head>
<body>
<% boolean premiere;
if (session.isNew())
premiere=true;
else
premiere=false;
System.out.print(premiere);
%>
<jsp:useBean id="compteur" class="CompteurGL"/>
<jsp:setProperty name="compteur" property="premier" param="premiere" />
<h1> You have seen this page <%= compteur.getLocal() %> </h1>
<h1> during your <%= compteur.getGlobal() %> connections </h1>
</body>
</html><%@ page contentType="text/html;charset=WINDOWS-1252"%>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic