Sponsered Links
Categories
Sponsered Links

Using Restricted Access

 

JSP Using Restricted Access

<HTML>
    <HEAD>
        <TITLE>Using Restricted Access</TITLE>
    </HEAD>

    <BODY>
        <H1>Using Restricted Access</H1>
        <%!
            javax.servlet.jsp.JspWriter localOut;

            class vehicle
            {
                protected void start()  throws java.io.IOException
                {
                    localOut.println("Starting...<BR>");
                }
            }

            class automobile extends vehicle
            {
                public void drive() throws java.io.IOException 
                {
                    localOut.println("Driving...<BR>");
                }
            }
        %>     
        <%
            localOut = out;     

            out.println("Creating an automobile...<BR>");
            automobile a = new automobile();
            a.start();
            a.drive();
        %>
    </BODY>
</HTML>

 
 
Sponsered Links
Latest Updates
 
All Content of this site is for learning only. We do not warrant the correctness of its content. The risk from using it lies entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright © 2009 JSPSERVLETTUTORIAL.INFO All Right Reserved