Can't you make the method public.
Have a nice day.
With regards,
Sachin S. Khanna
http://www.emailanorder.com
----- Original Message -----
From: Parag Patwa <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 14, 2001 5:07 PM
Subject: Re: Calling a Static Method in JSP


> That does not work, i keep getting the following error
> method is not public in the class cannot be accessed from outside package
> regards
> Parag
>
>
>
>
> "Sachin S. Khanna" <[EMAIL PROTECTED]> on 14/09/2001 10:25:56
>
> Please respond to A mailing list about Java Server Pages specification and
>       reference <[EMAIL PROTECTED]>
>
> To:   [EMAIL PROTECTED]
> cc:    (bcc: Parag Patwa/LON/WLB)
>
> Subject:  Re: Calling a Static Method in JSP
>
>
>
> Just as you would do it in a normal java program:
> a) Import the requisite class.
> b) Call the static method of that class.
> It is assumed that the class file is under the WEB-INF/classes folder.
> Have a nice day.
> With regards,
> Sachin S. Khanna
> http://www.emailanorder.com
> ----- Original Message -----
> From: Parag Patwa <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, September 14, 2001 4:12 PM
> Subject: Calling a Static Method in JSP
>
>
> > My scenario is as follows:
> >
> > >From /admin/test.jsp, am trying to call a static method which is in a
> class in
> > com.x.y.z.
> >
> > How can I do this?
> > any help much appreciated.
> >
> >
> >
> >
> >
> >
> >
> > Diese Nachricht ist vertraulich. Sie ist ausschliesslich fuer
> > den im Adressfeld ausgewiesenen Adressaten bestimmt.
> > Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten
> > wir um eine kurze Nachricht. Jede unbefugte Weiterleitung
> > oder Fertigung einer Kopie ist unzulaessig. Da wir nicht die
> > Echtheit oder Vollstaendigkeit der in dieser Nachricht
> > enthaltenen Informationen garantieren koennen, schliessen wir
> > die rechtliche Verbindlichkeit der vorstehenden Erklaerungen
> > und Aeusserungen aus. Wir verweisen in diesem Zusammenhang
> > auch auf die  fuer die Bank geltenden Regelungen ueber die
> > Verbindlichkeit von Willenserklaerungen mit verpflichtendem
> > Inhalt, die in den bankueblichen Unterschriftenverzeichnissen
> > bekannt gemacht werden.
> >
> > This message is confidential and may be privileged. It is
> > intended solely for the named  addressee. If you are not the
> > intended recipient please inform us. Any unauthorised
> > dissemination, distribution or copying hereof is prohibited.
> > As we cannot guarantee the  genuineness or completeness of
> > the information contained in this message, the statements
> > set forth above are not legally binding. In connection
> > therewith, we also refer to the governing regulations of
> > WestLB concerning signatory authority published in the
> > standard bank signature lists with regard to the legally
> > binding effect of statements made with the intent to
> > obligate WestLB.
> >
> >
>
===========================================================================
> > 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
>
>
>
>
>
>
>
>
>
>
>
> Diese Nachricht ist vertraulich. Sie ist ausschliesslich fuer
> den im Adressfeld ausgewiesenen Adressaten bestimmt.
> Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten
> wir um eine kurze Nachricht. Jede unbefugte Weiterleitung
> oder Fertigung einer Kopie ist unzulaessig. Da wir nicht die
> Echtheit oder Vollstaendigkeit der in dieser Nachricht
> enthaltenen Informationen garantieren koennen, schliessen wir
> die rechtliche Verbindlichkeit der vorstehenden Erklaerungen
> und Aeusserungen aus. Wir verweisen in diesem Zusammenhang
> auch auf die  fuer die Bank geltenden Regelungen ueber die
> Verbindlichkeit von Willenserklaerungen mit verpflichtendem
> Inhalt, die in den bankueblichen Unterschriftenverzeichnissen
> bekannt gemacht werden.
>
> This message is confidential and may be privileged. It is
> intended solely for the named  addressee. If you are not the
> intended recipient please inform us. Any unauthorised
> dissemination, distribution or copying hereof is prohibited.
> As we cannot guarantee the  genuineness or completeness of
> the information contained in this message, the statements
> set forth above are not legally binding. In connection
> therewith, we also refer to the governing regulations of
> WestLB concerning signatory authority published in the
> standard bank signature lists with regard to the legally
> binding effect of statements made with the intent to
> obligate WestLB.
>
>
===========================================================================
> 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