That's strange!

I am running JRun 2.3.3 JSP 1.0 - (.jsp10 files).
I have following method in my Bean.
 public  void    setCustomerName (String custname)

and I am using following line in my Jsp to set it. It works!.
 <jsp:setProperty name="crsBean" property="CustomerName"/>

After reading the following email, I tried changing it to lowercase, as in -
 <jsp:setProperty name="crsBean" property="customerName"/>
It does not work anymore.

Does JRun behave differently ?

- Rajesh

-----Original Message-----
From: Carsten Heyl [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 29, 1999 7:25 PM
To: [EMAIL PROTECTED]
Subject: Re: Simple JSP question


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

Yep.

>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" />

      <jsp:getProperty name="helloWorldBean" propertyName="msg" />

>    </H1>
>    <H2>
>      <jsp:setProperty name="helloWorldBean" propertyName="Msg"
>         value="Next Message" />

      <jsp:setProperty name="helloWorldBean" propertyName="msg"
         value="Next Message" />

>      <jsp:getProperty name="helloWorldBean" propertyName="Msg" />

      <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

Ciao,
        Carsten

===========================================================================
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

===========================================================================
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