• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem of parameter

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"%>
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic