JavaBeans and tags awareness of their environment

Hi
I read somewhere that tags are more aware of their environment when compared to javabeans. Could any one
explain this? What do tags have access to that beans do not.
Thank you

Tags are a JSP concept and have access to pageContext which lets them then access request, session, servlet context etc.
Beans are java classes and are used to encapsulate business or application specific logic. A bean should be completely unaware of its environment. The same bean can then be used regardless of the container and the presentation. e.g. as part of a JSP, a Java application, an applet etc.

Similar Messages

  • JavaBeans and Tags in JSP pages

    I have a java package and some code that already works but I need to "Webify" it. I have heard the words Tag Libraries and Beans to use with JSP pages instead of writing out the java code in the page. I have read the tutorial on Tag Libraries and it still makes no sense. I need some kind of beginners guide and instruction. I already have the java in the .jar file and have Tomcat setup. I know I need to make a tag library and stuff, but beyond that I'm a bit lost. I'm just not sure where to put what. Also, I did do a practice JSP page but it won't automatically find the jar file - they are in the WEB-INF/lib directory. I actually have to set the CLASSPATH separately by doing export CLASSPATH=.... which I know can't be right - is there a way to do this in the actual JSP program itself - like set the classpath just for that webpage?

    Here's a good basic tutorial that helped me when I was getting started with tags:
    http://www.theserverside.com/resources/article.jsp?l=JSP-XML3

  • Are captions and tags in backup when reloading after a computer crash?

    I have Adobe photoshop 11. I have backed up my photos in an external hard drive and also on carbonite. If my computer crashes and I need to reload my photos back onto my computer will the captions and tags still be there? I was wondering because when I just look at my photos on the hard drive it does not look the captions are there. Is there a special way to save them so they are there?

    If you use the backup command in the organizer file menu, all your media files will be saved, as well as the catalog which contains all the information about your media files : their location (path), exif camera data, your tags, captions etc. The restore command in the organizer will let you recover everything where you want to (same computer or not).
    If you are using any other external backup solution, only your media files will be saved, not the catalog and its data, unless you also backup the catalog; it's a folder containing the database and associated files. You find its location in the Help, System Info menu.
    You could also use the file menu of the organizer to 'save metadata to files', which would write the tags and captions in the header of the files themselves. If you reimport those files in the organizer, tags and captions will be recovered.

  • What is a javabean and how to compose it?

    Q1:although have used many java class in jsp within tomcat, but i don't is it a standard javabean. I mean is any java class can be an javabean, or what is the different between javabean and java class.
    for now i found some problem with 'javabean' used in jsp.
    Q2:what is ther difference between use jsp:setProperty,jsp:getProperty and direct give value like 'myBean.variable=100'?
    thanks!

    javabeans are standard classes but have :
    - default constructor
    - getter and setter methods
    javabean can be used on custom tags, so no code on your jsp !
    why don't directly use attributes ?
    look this thread :
    http://forum.java.sun.com/thread.jsp?forum=45&thread=314643
    this is one, but it's not the only, reason.
    Regards.

  • Understanding (default) archiving and retention policies and tags

    I am taking a look at archiving and policies and tags and am a bit confused. 
    If I look at the "Default Archive and Retention Policy", I see a lot of Tags assigned to this policy. On the Mailboxes tab, I see no mailboxes listed.
    although no mailboxes are listed in there, are all users that (will) have archive enabled still using this default Policy?
    I see a lot of Personal Tags in there assigned. 1 Month Delete, 1 Week Delete; Are all these tags active, or is the list you see there all tags that a user CAN personally use and assign to his folder?
    For example, what does the tag do: "1 Month Delete", Personal Tag, Delete and Alllow Recovery, Age limit for Retention 30, Retention Enable True?
    there is also a tag called "Default 2 year move to archive", with type All other folders in the mailbox. Does this mean that all users that have this policy assigned, that all their mail older than 2 years will be moved to their archive? Or can
    the user enable this tag?
    The longer I look at this list, the less I understand.... Maybe someone can give a short explanation?
    Thanks!
    Olaf

    Hi,
    For the question 1:
    Yes. Exchange Setup creates the retention policy Default Archive and Retention Policy. When you enable a personal archive for a mailbox, the Default Archive and Retention Policy is automatically applied to the mailbox if it doesn't already have a retention
    policy. 
    For the question 2:
    Users can apply these personal tags to folders they create or individual items.
    For the question 3:
    First, we should know what the "Delete and Allow Recovery" retention action do.
    Delete and Allow Recovery: This action emulates the behavior when the Deleted Items folder is emptied. Tags that have this action applied are known as deletion tags. When this action occurs, and deleted item retention is configured for the mailbox database
    or the user, messages move to the Recoverable Items folder. The Recoverable Items folder (previously known as the dumpster) provides the user another chance to recover deleted messages.
    So about the tag you mentioned above, it's a personal tag, when a mailbox item reaches its retention age(here is 30 days), the items will be deleted in the source folder and moved to the Recoverable Items folder.
    For the question 4:
    If you choose the type "All other folders in the mailbox", then this would be a Default Policy Tag (DPT). This DPT is applied to all other items where a RPT is not applied.
    For example, if you have created a retention policy tag and apply it to default folder Inbox, then Inbox folder won't be affected by a default policy tag whose type is "All other folders in the mailbox".
    Please note that a mailbox can't have more than one retention policy. If you later apply a retention policy to the mailbox, tags from the Default Archive and Retention Policy are no longer available to the mailbox.
    Best regards,
    Belinda
    Belinda Ma
    TechNet Community Support

  • Spiceworks Implemented and Used in a Business Environment

    Are there any spiceheads near Jasper, IN that has Spiceworks set up and using in a business environment that would be willing to demonstrate capabilities and their setup?
    I have a setup at home but I do not have many devices to manage or a multitude of applications. Additionally, I do not have much time to do anything with my setup.
    I am not sure the extent of Spiceworks. There seems like there would be many nice features that could be very beneficial in a business environment. Unfortunately, I have not been able to get Spiceworks implemented into my current working environment. 
    I would love to get it implemented there but have not found the key reason why we would need it or how it will make us more productive or efficient.
    This topic first appeared in the Spiceworks Community

    And that is exactly meant to mean what? You need to be a lot more specific. You know, I could play dumb and pretend I didn't even know what "Citrix" is (A toilet cleaner based on Citric acid perhaps?). You have to provide exact version numbers, system specs, configurations and what you plan to do. There are specific technical limitations on running CS products in virtual environments and it may even be a breach of the licensing terms depending on what licesne you actually have. A lot more to it than just your generic question.
    Mylenium

  • Exporting Categories and Tag Associations to New PSE Installations

    Hi,
    Traditionally I have always organised my photos in folders.  Although there are definite limitations with this method I can move my photos to different PC's without loss of the organisation.  Since I am a software developer I oftern rebuild my PC and try out new windows OS's.
    Last night I played around with Catagorizing and Taging photos.  Due to the number of photos I have it will be a huge task to get them all done.  With that thought I do not want to put 'all that time in' if I cannot migrate the catagory and tag associations with the photos to a new installation of PSE.
    I have been unable to see how this is done in the literature.  Any help would be much appreciated.
    Geordie

    PSE versions 5 and earlier were pretty good about not corrupting their database files.  I think PSE versions 6 and later are even better -- they are built using a very well-regarded database technology called SQLite that is used by many commercial products, include Apple's OS X.  I've seen no reports of users losing their catalog information.
    However, the PSE application does have bugs which in some circumstances writes incorrect information into the catalog database files (e.g. the wrong drive where your photos are stored).    Also, since PSE 6 Adobe has provided very poor support for upgrading to new versions of PSE, and some people have had a lot of trouble upgrading and/or have lost information when they upgrade.  Strictly speaking, this is not "database corruption" as engineers would use the term, though many users would probably called it "corruption".

  • 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

  • I have Firefox 6.0 running under Windows XL. When I forward an email with a URL in it, my recipients tell me the URL is not highlighted and they have to cut and paste it into their browser. Why? How can I get my forwarded URLs to be highlighted?

    I have Firefox 6.0 running under Windows XL. When I forward an email with a URL in it, my recipients tell me the URL is not highlighted and they have to cut and paste it into their browser. Why? How can I get my forwarded URLs to be highlighted?

    If you think getting your web pages to appear OK in all the major browsers is tricky then dealing with email clients is way worse. There are so many of them.
    If you want to bulk email yourself, there are apps for it and their templates will work in most cases...
    http://www.iwebformusicians.com/Website-Email-Marketing/EBlast.html
    This one will create the form, database and send out the emails...
    http://www.iwebformusicians.com/Website-Email-Marketing/MailShoot.html
    The alternative is to use a marketing service if your business can justify the cost. Their templates are tested in all the common email clients...
    http://www.iwebformusicians.com/Website-Email-Marketing/Email-Marketing-Service. html
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

  • I have been sharing my iTunes account with my kids...now they are getting older and want to have their own accounts, how do I share the songs I purchased for them on my account with them on their new accounts?

    I have been sharing my iTunes account with my kids...now they are getting older and want to have their own accounts, how do I share the songs I purchased for them on my account with them on their new accounts?  Is there a way to transer from my main account their new accounts?  And can I share music from my account with them?

    You can't currently transfer content from one account to another account. As long as the tracks are on the computer's iTunes that they use/sync to, and your account is authorised on that iTunes, then they should be able to continue to use them.

  • How can we remove the Calender,Active tasks,Recent activity and tags sectio

    Hi
    I want my landing page of my workspace (Keppel_Energy_EAP) to have only the WIKI home screen and want to remove the other sections like calender, Activie Tasks, Recent Activity and tags section.
    Can you please let me know how i can remove these sections.
    Thanks
    Ashok

    Hi,
    The teamcollab client is not modifiable unfortunately - what you have on the page is always there.
    Phil

  • HT4191 iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.

    iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.  I've seen reference to the  "My iPhone" local storage put no mention on how you create this folder or access this folder within the Notes app.  I realize storing information in a local storage like this provides no syncing between other iDevices but that is exactly what I'm looking for.  I'm running iOS7.0.4 on a iPhone 5S, and a iPad Air.  Any help would be greatly appreciated.

    If you go to Settings > Notes > Default Account you will see "On My iPhone" as the default account and the only choice if you have not enabled syncing Notes in Settings >iCloud or Settings > Mail, Contacts, Calendars. If you have enabled syncing you can still select "On My iPhone" as the default account. When you are in the Notes app you won't see any accounts listed if you have not enabled syncing because they are all in the On My iPhone account and that is the only place possible. It is not a folder that you create.

  • I want to move the move my photoshop elements photo database from an old pc to a new pc without losing the modified dates and tags created, what is the best way to transfer the database with all the information about the photos

    an old pc to a new one. How to I transfer the database file to save dates that have been modified and tags that have been created

    See:
    Use Backup, Restore to move catalog | Organizer | Elements 6 or later

  • Save Catalog and Tags etc,as I want to uninstall PSE6, then re-install

    I have just used the "Backup and Restore" in Pse 6 and backedup to an external F drive.But I didn;t put it into a special folder. Will I have trouble Restoring it, when I re-install pse6 back on the computer. Will it restore the catalog etc as it was before, tagged and catagorized? I have about 10.000 photos in the catalog..    Or do you suggest I use the "Backup and Restore" function again, only this time creating a folder for it..before sending it to the external F drive.   I have plenty of room on the external drive.   I look forward to a response
                                                                                      Thanks Pattie.
    If the 2nd option is the way to go, I will then have to delete the first backup from Ex F drive, how will I know what to delete. How will I recognize it, as the EX F drive is structured to backup  other files outside of PSE6.

    Thanks di,
              but do you mean I can uninstall pse than reinstall pse, and all my catagorized and tagged photos will remain the same.
    Also the reason I want to uninstall both pse and premier elements, and a few other things is, as recently I tried to delete a few files I thought were not needed, I think I deleted something important, because I could not get just the organizer to open.  I have since been able to open it by renaming it from thumb.5.cache to old.5.cache.  But since then a few more problems have arisen. Like when using Premier el 4 to make a movie, it's very slow. and not recognizing myDVD burner .  It has more in it's name now. Like HL-DT-ST  DVDRAM  GH20NS10  ATA Device.  I'm sure it didn't have the DVDRAM written there before.  When I go to Burn to Disk it won't recognize either the DVD drive or the Inserted DVD.    Everything has changed so I though I would remove both programs completly from computer then re-install them to see if that may help

  • I set up iPhoto v9.6 to copy items to library. Now I would like to change it to not copy. Do I have to start completely over? I have 106GB of photos and tags in my library. Will I lose all that work?

    I set up iPhoto v9.6 to copy items to library. Now I would like to change it to not copy. Do I have to start completely over? I have 106GB of photos and tags in my library. Will I lose all that work? Originally I thought by copying items to library I would be making an exact copy of my originals and that would serve as a duplicate or backup copy. My originals are on my EHD#1 and my iPhoto library is on my EHD#2. But now I realize that I can not view my iPhoto library unless my EHD#2 is connected to my computer (duh!!) So now I would like to NOT copy times to library and I want to have the library in the Pictures folder on my laptop HD. So I guess my question is do I have to start completely over? Is there some way to salvage all the work I've done so far?

    Yes you would have to start over from scratch.
    But you should really think this through very carefully. Experienced users do not recommend iPhoto used in this mode, and with very good reasons. Among them
    1. It's more work for exactly no gain
    2. It's unreliable - especially - when the library is on one volume and the photos are on another. One change to the path between the files and the library and you'll be reconnecting every photo in the Library back to the database, one by one.
    For more on iPhoto and file management see this User Tip:
    https://discussions.apple.com/docs/DOC-6361

Maybe you are looking for

  • Save iPhoto 6 book to open in iPhoto 5

    Is there a way to create a book (in iPhoto) on a Mac running 10.3.9 and iPhoto 6 so that the book can be opened and edited on a Mac running 10.4 and iPhoto 5? The reason I ask is that I have a friend who created the book on 10.3.9 (w/iPhoto6), but he

  • Hints and tips for creating a wireless network with windows

    G'day All, I am trying to setup up a wireless network so I can share large files between my Macbook Pro and my housemates Windows XP machine. I have no problem actually creating the network on my Macbook Pro and his windows machine can "see" it butI'

  • Cf unexpectedly  restarts itself

    Our CF server restarted itself twice within 20 minutes today. The only hint I could find about what had happened was in the cf-out.log. That pointed us to two hs_errpidxxx.log files. Here's the last one: hs_err_pid7292.log: An unexpected exception ha

  • Unable to view the form in Mobile which was created using LiveCycle

    When I click on the link to view the dynamic form it says "Please Wait" . please let me know your valuable thoughts. Thanks, Anusha

  • Creative cloud login prob.!

    Why i cant login in creative cloud ???? theres only one email what even doesnt have mine ?! how i change it??( its saying click continue to verified your email)(then i have to go to email) but how the hell i go if its not my email.  + when i close cr