Hi everyone...
I am just getting my feet wet with JSP, so please bare with me with the
following question!

This is my bean:

package classwave.remedy.server.beans;

public class DBManager {

 public DBManager() {
  super();
 }

 public boolean getTheTruth() {
  return true;
 }

 public String getMore() {
  return "this is good!";
 }
}

And this is my JSP page:

<HTML>
<HEAD>
<TITLE>
Logon Page for Remedy
</TITLE>
</HEAD>
<BODY>
<%@ page language="java" %>
<jsp:useBean id="db" scope="session"
class="classwave.remedy.server.beans.DBManager" />
<% if (db.getTheTruth()) { %>
 THE TRUE IS HERE
<% } else { %>
 NO TRUTH AT ALL
<% } %>
This is my second jsp... and there is more : <%= db.getMore()%>
wow!
</BODY>
</HTML>

The page won't work as it fails on the following line:
<% if (db.getTheTruth()) { %>

My first guess was the syntax was wrong but if so couldn't come up with
the right one.  If someone would be so kind as to put me on the right
track, I would really appreciate it!

Regards,

Jean

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to