aspose file tools*
The moose likes Servlets and the fly likes Problem of parameter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem of parameter" Watch "Problem of parameter" New topic
Author

Problem of parameter

Gizzmo Zeuzere
Ranch Hand

Joined: May 11, 2001
Posts: 45
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"%>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem of parameter