What's the real meaning of "JavaBean"

What's its real meaning?
Are HttpRequest,HttpResponse JavaBeans?

What's its real meaning?
Are HttpRequest,HttpResponse JavaBeans?No.
http://java.sun.com/products/javabeans/
JavaBeans are intended to be platform-independent reuseable program chunks. They require their methods to follow naming conventions so they can be universally recognized and applied.
HttpServletRequest, and HttpServletResponse are dependent on Servlets. They are also interfaces. JavaBeans are classes (so they can carry their implementation around with them). These classes do have some methods that follow the JavaBeans specification, but (their wrapper classes) do not provide public empty constructor, the first requirenment of a JavaBean.
Although they are not javabeans, you can use the methods that they have that follow the naming conventions (like request.getMethod() and request.getRequestURL() or response.isCommitted() and response.setContentType()) through JavaBeans mechanisms, like EL and JSTL - if you already have an instance of the objects you are working on (which you do in Servlets/JSP). You would not have access to their other - non spec. following - methods.

Similar Messages

  • What is the diffrence between a javabean and  EJB

    hi!
    what is the diffrence between a javabean and entreprise jvaabeans! i mean which are the uitilization featires of eaxh one !

    i am seeking for a solution for my problem , in fact i ma trying to implement and develop an application with java that allows a certain range of IP adresses to be connected to a database server in order to extract the suitable data from the server .
    let me explain mor ethe suitation , in fact what i am loking for is to use javabeans to grant my application much more consistence and pertinence : si i am asking if it could be possible to use javabeans in my case especially if i am not trying to developp a web application but a cleint /server one allowing some services.
    The application is in fact dealing with a stock exchange market and what i am trying to do is to grant particilar registrated customers to have the informations that they need ( portofolio, currency's status, market indicators, .) also drawing some charts decribing rates, variations, and others specefic financial caracterestics .So , if we consider that this application is not a web application ( no HTTP request and no servers like apache or others ) how it is possible to use javabeans and not EJB to build the application? i mean what could be suitable and preferable to rely on and dvelop to ensure a good java application !!
    if you need more details to help you find the answer for me don't hesitate to answer me back !!
    Someone here gave me that answer
    use RMI to code the services and (Updateable) Value Objects to pass the information between tiers.
    RMI is an all-java distributed component framework (ie. EJB, CORBA, DCE/RPC, DCOM, etc.), that is very suitable for developing non-containerized multi-tier applications. Refer to the RMI trail in the Java Tutorial as a starting point for coding RMI solutions (http://java.sun.com/docs/books/tutorial/index.html). Under this scenario you would code the database access service as an RMI service (server-side). Client/server communication should be facilitated through the use of JavaBeans/classes that wrap the information being passed (customer information, portfolio details, market information, etc.) - these are refered to as 'Updateable Value Objects' (a design pattern). Graphing and charting would be handled in your client from the information received from the (RMI) server. GUI JavaBeans can be used to provide this functionality as well as other client-side services. There are numerous "shrink-wrapped" components for GUIs available on the market just peruse any Java magazine to find them.
    but how comes? how can i do it !! and where can i find more information please about 'Updateable Value Object "
    thanks

  • What is the difference of using JavaBean and regular classes?

    Experts,
    I am new to JavaBean(not EJB), and wondering what is the difference of using JavaBean for JSP page compared with using regular Java class?
    I know there are Bean tags which save some lines, what else?
    What does "serialization" mean compared with "not serializable"?
    thanks very much.

    No.
    A JavaBean is a regular JavaClass that:
    1) implements java.io.Serializable
    2) Its data members are private, and its data is accessed via getters and setters. You must define the getters and setters. Getters retrive the property, and must be in the format:
    public PropertyType getPropertyName()
    for most cases. The exception is when the PropertyType is a boolean, in which case you use:
    public boolean isPropertyName()
    Setters assign values to the property, and are in the form:
    public void setPropertyName(PropertyType propValue)
    3) There is also a PropertyChangeEvent model that needs to be followed.
    A marker interface has no methods you need to implement. It just marks the class as supporting certain operations. In the case of Serializable, it means the class can be written to be an ObjectOutputStream for persistant storage.
    As far as an example of JavaBean persistance, take a search on the java.sun.com site for Serializeable
    Also, take a look at this: http://java.sun.com/developer/onlineTraining/Beans/beans02/
    It concentrates mainly on gui component beans, but not all beans need to be gui parts... There are other pages to look at, but I can't find them at the moment, and I have to run...

  • What is the real ip address to the apple server? Someone changed the host file in windows/system32/drivers/ect, and now I can't do a restore on my iPhone 3gs.

    What is the real ip address to the apple server? Someone changed the host file in windows/system32/drivers/ect, and now I can't do a restore on my iPhone 3gs

    "You have to change your router's IP address to be able to access it. It will not give you the internet."
    I'm not sure what that means Richard, but I did change the router's IP address from 192.168.1.1 to 192.168.5.1- isn't that what you meant in your first post. I know that isn't reflected in my screen capture that I took last night, but I did do that this morning after I read your post.
    "Log on to your router and change two settings.
    Change the setting in Setup from PPPoE to Automatic Configuration-DHCP and click on save.
    Click on Advance Routing and change the setting from Gateway to Router then click on save."
    I did this and still same results as far as I can tell. Can't get online through the router.
    "Click on MAC address clone under setup tab ... click enable & click clone ...click save settings ... Check the IPaddress under WAN page ....
    If getting IP in public range .... try going online ...."
    I tried this- at least to the part about checking the IP address under WAN. I assume you mean the WAN page in the modem setup- nothing looked any different after trying what you suggested, and I'm not really sure where I would be "getting IP in public range" or what that means.
    I'm about to give up and just buy a new router to see if I can get the same lack of results with a different one. My ISP maintains that everything is set up correctly on their end and really can't do anything more for me. The Modem works and is set up correctly and they can give tech support for a router.
    Here's what my basic setup looks like now:
    http://i490.photobucket.com/albums/rr270/SukarUDL/BasicSetup.png
    Here's what the advanced tab looks like now:
    http://i490.photobucket.com/albums/rr270/SukarUDL/AdvancedRouting.png
    Modem setup looks the same
    Message Edited by Writersbloc on 09-25-2008 07:05 PM

  • What is the real time use of implicit and explicit cursors in pl/sql

    what is the real time use of implicit and explicit cursors in pl/sql.............please tell me

    You can check the following link ->
    http://www.smart-soft.co.uk/Oracle/oracle-plsql-tutorial-part5.htm
    But, i've a question ->
    Are you student?
    Regards.
    Satyaki De.

  • VGA vs DVI - What's the real difference?

    Hi everyone, quick question. I currently have my 19" LCD display hooked up to my MacBook via the Apple Mini-DVI to VGA adapter. Here's my question. What is the real image quality difference between VGA and DVI-D connections?
    I don't watch videos or do any video editing, so if that's the difference, I don't need it.
    Would I notice any additional display sharpness (especially text and pictures) by upgrading to a monitor with a DVI-D input?
    Thanks!
    Dave

    Read the Overview from this:
    http://en.wikipedia.org/wiki/Dvi
    That explain a bit of the benefit of DVI.
    I also use my Samsung LCD 19" widescreen with mini DVI to VGA, and so far I'm happy with it, so if you happy with your display color, why bother to spend abnother $19.99 for new adapter.
    Good Luck

  • What is the real scm latest version ?

    What is the real scm latest version/patchset ?
    10g, 9i or 9.0.4 ??

    There is a "latest' version of 6i and 9i and 10g. Each of these uses a similar underlying repository. Each is connected to a Designer that generates a specific release of Developer (6i gens Forms 6i, 9i gens Forms 9i, etc).
    About now, the latest 10g is 9.0.4.5, while the latest 9i is 9.0.2.9, and the latest 6i is 4.11.

  • What are the real minimum requirements for Mountain Lion?

    What are the real minimum requirements for Mountain Lion. Currently running Snow Leopard. I have a late 2006 Model: iMac6,1. Specs: 2.33 GHz Core 2 Duo, 3 GB 667 MHz DDR2, and the optional nVidia GeForce 7600GT c/w 256MB GDDR2. The advertisement is stating a 2007 model as the minumum, however the fastest 2006 Gen Plastic iMac should be faster then the slowest 2007 Gen Aluminum iMac7,1?

    From a previous posting from some else, I saw it was the 32bit versus 64bit video card driver being the issue. I was wondering if the optional video card I have installed also was limited to the 32bit issue. 64bit drivers exist for the 7600 GT GPU.

  • What does the "S" mean in reference to lenses? EF-S vs EF lens?

    I have both a digital camera, the 60D, and recently acquired an EOS 1N 35mm film camera.  I have bought lenses for my 60D but not the 1N film camera....was told that my 18-55mm lens for my 60D would not be interchangeable with the 1N?  So, EF-S vs EF lens, what is the S and what does it indicate?   What does the "S" mean in reference to lenses?  EF-S vs EF lens? 
    Thanks.....I am just getting started in photography and do not know all the different terms....
    James

    In the simlpest of terms think of the S as standing for SMALL sensor. The sensor in crop bodies is much smaller in physical size than the area your film camera needs covering with when the shutter opens. An EF S lens won't allow light to cover the full area in the film or FF body. This allows smaller & cheaper lenses but at the expense of limiting their use. 
    see
    https://forums.usa.canon.com/t5/Lenses/Using-a-lens-designed-for-crop-bodies-on-full-frame-SAMPLES/t...
    "A skill is developed through constant practice with a passion to improve, not bought."

  • What does the "other" mean?

    when you back up your iphone onto a mac and at the bottom of the screen in says. photos, videos, apps etc.  or  " other"  what does the "other" mean?

    See here: https://discussions.apple.com/message/22926419#22926419

  • What is the exact mean of  classname.class.

    what is the exact mean of classname.class. what situations it will be use ful . how to use . give me one example .

    Each class, interface, or enum loaded into the JVM has an associated Class object. This contains a lot of information about the class in question, including lists of fields and methods. <classname>.class gives you a reference to the Class object of the class mentioned.
    See the java.lang.Class javadocs for all the things you can do with a Class object.
    For example:
    theImage = new ImageIcon(MainClass.class.getResource("item.png"));to retrieve an image file from the directory containing the MainClass class file.

  • HT1535 what does the cloud mean for my movies

    For my ipad, I have a few movies I want on it.  Most of my movies have a cloud in the corner and I do not want them on my ipad.  What does the cloud mean?

    Go to Settings>iTunes and App Store>Show All>Videos>Off. The movies with the cloud icon are movies in the cloud and they should disappear when you do what I posted.

  • What does the ~ symbol mean next to an event?  I have never seen this before but today when I edited a few events this appeared next to the event.

    What does the ~ symbol mean next to an event?  I have never seen this before but today when I edited a few events this appeared next to the event.

    Greetings,
    Hm. I've never seen that in iCal.  In some other Applications the tilde "~" indicates a restore point or a before / after for a file.  My guess is there is a broken cache file in iCal.
    Try:
    Go to Apple Menu > System Preferences > Language & Text > Formats > Region. Region should be set to the country of your choice. Do not have it set to "Custom" as this can have unexpected results in the iCal window.
    If that doesn't resolve the issue:
    1. First make an iCal backup:  Click on each calendar on the left hand side of iCal one at a time highlighting it's name and then going to File Export > Export and saving the resulting calendar file to a logical location for safekeeping.
    2. Go to iCal > Quit iCal
    3. Remove the following to the trash and restart your computer:
    Home > Library > Caches > com.apple.ical
    Home > Library > Calendars > Calendar Cache, Cache, Cache 1, 2, 3, etc. (Do not remove Sync Cache or Theme Cache if present)
    --- NOTE: To get to "Home > Library" in Lion: Click anywhere on the desktop and then click on the "Go" menu at the top of the computer screen while holding down the "option" key on the keyboard.  You will see "Library" in the menu.
    4. Launch iCal and test.
    If the issue persists:
    1. Go to iCal > Quit iCal
    2. Remove the following to the trash and restart your computer:
    Home > Library > Caches > com.apple.ical
    Home > Library > Calendars > Calendar Cache, Cache, Cache 1, 2, 3, etc. (Do not remove Sync Cache or Theme Cache if present)
    Home > Library > Preferences > com.apple.ical (There may be more than one of these. Remove them all.)
    --- NOTE: Removing these files may remove any shared (CalDAV) calendars you may have access to. You will have to re-add those calendars to iCal > Preferences > Accounts.
    3. Launch iCal and test.
    Hope that helps.

  • What does the t3 mean in the url t3://aether.lccc.edu:7001/

    what does the t3 mean in the url t3://aether.lccc.edu:7001/... is this a linux thing..

    Well, the "t3:" signifies a transport scheme, similar to the way that "ftp:" and
    "http:" do:
    http://download.oracle.com/docs/cd/E13222_01/wls/docs90/client/t3.html

  • What is the CellValue mean in SDO_GEOR_GRAYSCALE

    hi!
    What is the CellValue mean in SDO_GEOR_GRAYSCALE and SDO_GEOR_COLORMAP? If the Raster data is continuous, how to enum them when use the SetGrayScale function?

    I don't have my doc with me, but, for instance, if your data is 8 bit unsigned then you would specify 0 to 255 for cell values, and map them to the grayscale. The requirement is that cell values be entered in ascending order, and gray scale values be between 0 and 255. There are two number arrays you fill in, one has the cell values (the actual numbers stored in the cells), the other has the gray scale values they map to.
    Colormap works in a similar fashion, where you specify a cell value and r/g/b/opacity using five number arrays.

Maybe you are looking for

  • 6120C, email getting stuck in outbox

    Hi, Until the end of last week I could send emails fine; then looking today I had half a dozen, all stuck in the outbox! When I try to manually send them, they just sit there.... staying in the outbox, flagged as 'Queued'. Anyway, I have two email ac

  • Problems with signatures in email preferences

    I move a bunch signatures from the "all signatures" to my email account (there are 6 different accounts). If I close the program or shut off the computer, I loose al the signatures in my account. I have to open preference again and move them from "al

  • Outlook2013 EAS connection

    Hi, I am using Outlook2013/Exchange Mail app in mobile devices to connect to Office365 in cloud. In doing this, I'm using my own relay server in between Outlook 2013 and Office365. The relay server accepts HTTP requests. Mobile clients are working fi

  • Windows 8 Compatability

    I am running Windows 8 Release Preview-Evaluation Copy. Build 8400. Is Firefox compatible with Windows 8? For weeks now, I have been having a problem with downloads and delays. On fresh install, I have decent speeds, but after a day or two, speeds bo

  • SAP time and attendance

    We are evaluating to implement time and attendance module of SAP for 5K+  users. Please help me to find technical or road map documentation. I need the information for proper project planning and costing, Thanks , Al Mamun