Should a JSP 1.0 server have trouble with the following .jsp file or am I
missing something:

<%@ page import="HelloWorldBean" %>

<HTML>
  <HEAD>
    <TITLE>Hello, World! JSP</TITLE>
  </HEAD>
  <BODY>
    <jsp:useBean id="helloWorldBean" class="HelloWorldBean" />
    <H1>
      <jsp:getProperty name="helloWorldBean" propertyName="Msg" />
    </H1>
    <H2>
      <jsp:setProperty name="helloWorldBean" propertyName="Msg"
         value="Next Message" />
      <jsp:getProperty name="helloWorldBean" propertyName="Msg" />
    </H2>
  </BODY>
</HTML>

The HelloWorldBean.java file contains:

public class HelloWorldBean
{
  private String msg = "Hello, World!";

  public String getMsg () { return msg; }
  public void setMsg (String m) { if (m != null) msg = m; }
}

thanks,
richard
-+-----

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to