Total members 10262 | Gratitudes |It is currently Wed May 23, 2012 9:32 pm Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 1 post ] 
Author Code Snippet
 Code subject: Restricted protected Access modifier in jsp
PostPosted: Sat Jan 10, 2009 1:43 am 
Offline
Mastermind
User avatar

Joined: Tue Mar 27, 2007 10:55 pm
Posts: 2279
Location: Earth
Has thanked: 39 time
Have thanks: 61 time

This code is an example about using protect access modifier in you jsp classes code

Code:
<HTML>
    <
HEAD>
        <
TITLE>Restricted protected Access(codemiles code)</TITLE>
    </
HEAD>

    <
BODY>

        <
H1>Restricted protected Access(codemiles code)</H1>
        <%!
            
javax.servlet.jsp.JspWriter localOut;

            class 
myobject
            
{
                protected 
void start()  throws java.io.IOException
                
{
                    
out.print("Am a new object <BR>");
                }
            }

            class  
book extends myobject
            
{
                public 
void open() 
                {
                    
out.println("Open book");
                }
            }
        %>     
        <%
                 

            
out.println("Creating a new book object and using a protected function...<BR>");
            
book a = new book();
            
a.start();
            
a.open();
        %>
    </
BODY>
</
HTML


I wish it is helpful for you

_________________
Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 1 post ] 
Quick reply


  

 Similar topics
 Connect to database Microsoft access within jsp servlet
 java code to open word doc attached in ms access.db
 Example of using access key with links
 servlet connectivity with ms access
 access element in array C++
 HOW CONNECT WEB DEVELOPER 2008 TO MS ACCESS
 Fax Services Access in Windows Server 2003
 Data Access Object in Servlets.............
 MS-Access with java
 HOW I Access the Parallel Port in Java?

All times are UTC [ DST ]


Users browsing similar codes

Users browsing this forum: No registered users and 1 guest



Jump to:  
Previous Code Snippet | Next Code Snippet  cron




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team