You have to use ur bean id to access the getMessage() method instead of
accessing the method using the JSP filename (test.jsp)
for instance:
u need to instantiate, or use the existing bean if already present, a
SimpleBean in your jsp page 1st by writing
<jsp:useBean id="myBean" class="ravage.SimpleBean" />
after which u can access the bean using the bean id as in:
<jsp:getProperty name="myBean" property="message" />
alternatively, u can use <%= myBean.getMessage(); %>
<% Visit my HomePage %>
<zac:forward> http://prosurfr.tripod.com </zac:forward>
----- Original Message -----
From: "Dave McHale" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 13, 2001 11:59 PM
Subject: JSP, JRun, and Beans
> hi,
>
> I'm running a simple test.jsp file on our JRun server, everything has
been
> working fine until I try and use beans. I can compile the file fine, put
the
> class file on the server, and make sure that the classpath includes the
> directory where I'm storing the class. (well, the directory where I'm
> storing the subdirectory, since the class is in a package) So my class
file
> is in d:\jrun\jsm-default\classes\dave directory. Any time I try and use
the
> bean, I get a 500 error saying
>
> Found 1 semantic error compiling
> "d:/Jrun/jsm-default/services/jse/servlets/jsp/javadev/ravage/test.java":
> 89. test.getMessage();
> <--------------->
> *** Error: No method named "getMessage" was found in type
> "jsp/javadev/ravage/test"
>
> the getMessage method EXISTS, the classpath is set properly (from what I
can
> tell) and I see nothing glaring that I have done wrong. *Please* reply if
> you can help me, this is becoming more annoying than simply frustrating.
> Thanks in advance for any help. Below is the entire contents of my
> Bean........
>
> -Dave
>
> package ravage;
> public class SimpleBean {
> private String message = "No message specified";
> public String getMessage() {
> return(message);
> }
> public void setMessage(String message) {
> this.message = message;
> }
> }
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets