>
>  Hi,=20
>
>Is there a way to call a static method in a class from JSP, before =
>creating an instance of the object.

Sure.
Just call it via absolute class name

<%
        String s = x.y.z.MyClass.getStaticString();
%>

or import it via

<%@ page import="x.y.z.MyClass" %>

and use

<%
        String s = MyClass.getStaticString();
%>


>
>advance thanks,
>
>Dinesh Kumar=20

Ciao,
        Carsten Heyl

  Carsten Heyl                          [EMAIL PROTECTED]
  NADS - Solutions on Nets              http://www.nads.de/
  NADS GmbH                             http://www.pixelboxx.de/
  Hildebrandtstr. 4E                    Tel.: +49 211 933 02-90
D-40215 Duesseldorf                     Fax.: +49 211 933 02-93

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