see the error ...when u try to call getMessage of test..it says that menthod
not found in type "/jsp/javadev/ravage/test"

but its not the type of the bean "test"...its is the file test.java ...
it is thinking that u wanna acces a static fn. of the class test which is
there in test.java....

while u r trying to access the bean whose id is "test"...so if u change the
id of the bean to something else..it shd work...

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


thanx & regards
Gurvinder
Software Engg.
Inter Carrier Settlements (RnD Cluster)
Amdocs Development Limited
Cyprus
Phone :-
office -    00357-5-845325
residence - 00357-5-584939
mobile -    00357-9-879567


-----Original Message-----
From: Sachin S. Khanna [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 11:19 AM
To: [EMAIL PROTECTED]
Subject: Re: JSP, JRun, and Beans


Hello Mr. Gurinder Singh,
        Could you please let us know in detail what is conflicting with the
id attribute value.
Have a nice day.
With regards,
Sachin S. Khanna.
www.emailanorder.com

----- Original Message -----
From: Gurvinder Singh <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 14, 2001 12:09 PM
Subject: Re: JSP, JRun, and Beans


> the problem is that ur id name conflicts with ur file name ...
> change the id of bean to something else..and it should work
>
> Gurvinder
> Amdocs Limited , Cyprus
>
>
> -----Original Message-----
> From: zac [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 14, 2001 7:33 AM
> To: [EMAIL PROTECTED]
> Subject: Re: JSP, JRun, and Beans
>
>
> 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
>
>
===========================================================================
> 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

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

Reply via email to