JSP: Surcharge de méthodes en jsp

Author:
       


    
        Exemple de surchage des méthodes
    

    
        

Overloading Methods

        <%!             javax.servlet.jsp.JspWriter localOut;             void printText() throws java.io.IOException             {                 localOut.println("Hello!
");             }             void printText(String s) throws java.io.IOException             {                 localOut.println(s + "
");             }         %>              <%         localOut = out;              printText();         printText("Bienvenu sur JSP!");         %>                         

Leave a Reply

Your email address will not be published. Required fields are marked *