Hi all,

I want to know this.

When I am calling a Bean for the first time. That  is at the time of loading
the Bean I want to fire some method.

I will use that method's return values in my get, set Methods.

That is like this.

class Bean
{
        String Filename;
        Hashtable ht;
        public String GetTitle(String FileName)
        {
                *** I want to use the Hashtable here *****
                return (Title)';
        }

        public String GetString(String FileName)
        {
                *** I want to use the Hashtable here *****
                return String;

        }


        public void readfile(Filename)
        {

        ****This Method will load the data in to Hashtable ****
        I want this method to fire when the Bean is loaded for the first
time   and I don't want to call it in GetTitle method.

        This method should fire when the Bean is loaded.

        Remaining times I will use the Hashtable generated by this method.

        ******
        }


}

This is what i want.

Method readfile() should fire when the bean is loaded.

I will call gettitle() and getString() in JSP number of times.

Hope u understood the problem and help me ASAP.

Bye,

Thanx in Advance.

Ganesh

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