Question about custom tags

Hi All,
Please tell me what is differnce between javabean and custom tags.
thank you.

Javabean is a data object (or a data holder) whose properties can be accessed using getters, setters - ex getName() and setName()
JSP custom tags are merely Java classes that implement special interfaces (Tag interface). Once they are developed and deployed, their actions can be called from your HTML using XML syntax. Refer the article http://java.sun.com/developer/technicalArticles/xml/WebAppDev3/
Cheers,
Janesh

Similar Messages

  • Simple question about custom tags really easy!!

    I am trying to make my own custom tags, so far i have created simple one that have i use for heading or to set the page layout for a jsp page, My question is I want to make a custom tag with a body , with a start and end tag can anybody give a simple example of a custom tag which has a body.
    I do not mean write me a tag i mean what could a tag with a body be used for? Can you give me some example of what a tag of this kind could do?

    Thanks having read that and some other pages i have another question:
    would it be possible to put the following code into a custom tag so that i can pass in a list and have it output it to a table?
    <TABLE >
    <% 
    out.println("<TABLE >\n" +
                    "<TR BGCOLOR=\"#FFDDAA\">\n" +
                    "  <TH>ID Number\n" +
                    "  <TH>Artist\n"
    Iterator it = pricePassed.getpricePassed().iterator();
    while( it.hasNext() ){
       MySite.VideoBean vids = (MySite.VideoBean) it.next();
       out.println( "<TR>\n" +
                   "<TD><Center><B>" + vids.getRecId() + "</TD>" +
                    "<TD><Center><B>" + vids.getArtist() + "</TD>"
    </TD></TR>\n" );
    %></TABLE>At the moment i use the above in a jsp to put data into a table, would it be a massive task to undertake to put into a custom tag?

  • Question about Id3-tags and song managem

    Hello, I am getting ready to buy a Zen Touch 20GB in a couple of weeks and I have a few questions about the management software.
    (Correct me if I am wrong about something)
    ) Are songs organized into groups by Genre instead of just folders like on the Ipod?
    2) Are Id3-tags used instead of filename for identification?
    3) What parts of the tag are needed besides title and artist?
    4) Which version of tags does the Zen Touch recognize: Version or Version 2?
    5) If I edit my tags using an external program such as Id3-TagIT, will the tags carry over to the Creative software and to the player?
    Thanks a lot for your help. I want to make sure I have my music collection in order before I get my Zen Touch.

    euph_jay wrote:Ok, so lets say I have all my music in folders right now seperated into different categories on my hard dri've. Some folders denote the artist, some the album, and some a genre. Example: Folder: Chicago Contents: Chicago .mp3 files Folder: Techno Contents: various Techno artist's songs What is the best way of organizing my folder system, so that the transition will be easy to the player?
    Folders are pretty much irrelevant. What the software will do is look at the *tags* in the files and then use these to build the player's library.
    Will imbedded folders work on the player? (like Techno->Crystal Method->Cystal Method .mp3's)
    Again the player has no concept of folders, although if you set Techno as a Genre tag you will be able to view via this in the Music Library.
    Or, am I misunderstanding how music is stored into the mp3 player. Instead of storing music in a "folder like" system (like the Chicago folder or Techno folder), does it store all the songs individually on the device? Then you have to sort it by artist, album, or genre?
    Using your example, in the Music Library you have essentially three categories: Album, Artist, and Genre. So under Album you would see "Vegas" (the Crystal Method's album), under Artist you would see "The Crystal Method", and under Genre you would see "Techno" (and then either the album or artist under this... I forget which it is offhand).
    Make sense?

  • Questions in Custom Tag

    Hi,
    I have couple of questions in Custom Libraray Tags:
    1) How I can from Tag Java file to open a new JSP window without the toolbars and determine the window size.
    2) How I can read a JSP parameter from Tag Java file. For example I have a field called "x" in JSP is not connected to the TAG by setAttribute.
    3) How I can pass a dynamic value to custom tag. <route:routeList agentID = "1" >
    how I can change the "1" to a field. When I change it to: <route:routeList agentID = "<%=request.getParameter("agentID")%>" > or to <route:routeList agentID = <%=request.getParameter("agentID")%> > I get empty value, even though the field has a value.
    Thank you ...

    [email protected] ... Well, if you put something as an attribute in the pageContext object, you can get it... same as request or session scope attributes, but I thought the OP meant to do this (I guess not, though.. see below):
    <%
    String str = "...";
    %>
    <mytag:stuff .... />
    And within the stuff tag, use str as a variable. I don't believe that's possible, because the compiled page in effect becomes like this:
    String str = "...";
    doStuffTag(whatever the parameters are);
    Obviously that's not the right naming for the tag, but you get the idea...
    JavaUserProg....
    2) First, it's best to put quotes around the tag attributes...
    <INPUT readOnly style="WIDTH: 84px; HEIGHT: 22px" name="operation[<%= lineNum%>"] value="<%=operation%>">
    Second, do you mean you want to read from the tag what the HTML input field has in it? First, you have to submit the form, then the call request.getParameter("fieldname") to get the value. Otherwise, I'm not clear on what you are really trying to do.
    3) If the field in the tag is an int field: setAgentID(int)
    Then you can define the tag value as:
    <mytag:stuff agentID="1" />
    or
    <% int aid = 1; %>
    <mytag:stuff agentID="<%= aid %>" />
    If you just put a static string value like the first way, it converts it. If you put an expression, the expression has to match the type of value it really is. So int for int, String for String, Collection for Collection.

  • Noob question about DIV tags

    Learning DW and CSS so patience is in order .
    I've being reading numerous posts here and on the web about avoiding tables for laying out web pages. I can see the advantages in terms of cleaner codes and easiness of updating and changing sites at a later time. So I started learning about DIV tags (although tables is very easy for me) and have practice a few times with fairly good results, love the absolute positioning with it. Having said that, for the love of me, can't find a way of centering horizontally a page designed with DIV tags (due to ignorance), for example, 1 column/three rows page, after defining styles, size and colors I enclosed everything in another DIV tag, wrapper I think is called, but have not found a way of centering it on the page, text-aligment on the DIV tag only centers the text not the DIV itself, how to go about this? Help is appreciated.

    love the absolute positioning with it.
    Get over it.  It's a trojan horse.  Absolute positioning is not a general layout method.
    To center ANY block (non-absolutely positioned) element, use CSS to give it a width and left/right margins of 'auto'.  For example -
    <div id="foo">...</div>
    That div will be centered with this CSS -
    #foo { width:300px; margin:0 auto; }
    I think you are on the wrong path already, though.  Stick with tables (which you say are very easy for you) UNTIL you a) understand CSS well enough to understand what absolute positioning is and why I say it's bad, and b) understand how to use float, margin, and padding to place things on the page.  Then you are ready to move away from tables.

  • Question about Custom Escalation Function

    I want to use a Custom Escalation Function described on this document:
    http://docs.tpu.ru/docs/oracle/en/owl/E14571_01/integration.1111/e10224/bp_workflow.htm#BACHEFDH
    I want to execute a custom function on task EXPIRATION.
    Main Question: The "Custom Escalation Function" is just for Escalation or i can use too for EXPIRATION ?
    Thanks.
    Victor Jabur

    Okay Experts. The problem is solved. There was no problem with the custom key figure function. The problem was with the sales order data. The sales order details for the material in question were under the "make to order" segment and the other transaction data info was in the "make to stock" segment.
    Once i found this out , i tried loading someother material and it worked perfectly.
    Thanks
    Aparna

  • Question about cutom tag jars on Tomcat

    I have written a custom tag for data connection in Java and wrote a TLD to use it. My problem is a I have three applications that all use it, so I put the jar file in my CATALINA_HOME/common/lib and the tld finds the jar but the jar has a properties file it uses to get the DB name and user names. The jar can not find the properties file, I tried putting it in the common/lib/, I put it in the common/ and I also tried in the APP_DIR/WEB-INF/ and it still can not find them. Is there a place I can put the properties file that tomcat will have it available for the jar file.
    Thanks in advance

    Put the properties file inside the jar file. Then you can load it from your code using the classloader. Lets say you put the properties file in a subdirectory "props" inside the jar, you can then load it using this code:
    InputStream is = this.getClass().getClassLoader().getResourceAsStream("props/db.properties");
    Properties props = new Properties();
    props.load(is);
    is.close();Assuming you name your file "db.properties" of course.

  • Question about Custom Shape Files from newbie to PS

    My husband bought me PS CS4 Extended. That said, I have never used PS at all. I have always used PSP. Please don't hate me!
    I have figured out that one loads actions and presets. OK, got that. The question I have is if I can have my Custom Shapes and Actions on a completely different partition? I ask this because there is not enough room on the partition for me to continue adding shapes and such to PS in the program itself. I am figuring that I can since I have tio load them into the program anyway, but am asking to be sure so that I don't screw anything up.
    Another question I have is if I am able to point PS to where all of my plugins are that I already have installed in PSP, which also happen to be on a different partition. In PSP all one has to do is to point the program to where they are and all is good and they can be used within said program. Does PS allow for this also? If not, do I have to re-install all of the plugins into the PS program itself? I just don't have that much room on the partition that my PS resides on because of all of the other pregrams that I have. Also, does everything I load into PS just stay loaded or do I have to reload each time I want to use that particular preset?
    I do hope that ya'll can understand my questions and thank you for any help in advance.

    the benefit of having the presets in the proper folders is that you can select them from the fly-out menus instead of having to search for them using the Load command so yes, you can have them wherever you want. I doubt though that you don't have enough disk space for them, for instance, all the actions that come with Photoshop take up about 200kb, the custom shapes are about 700kb but that's because they come in duplicates. And yes, all that you load up stays in Photoshop until you remove them, no need to reload them at program start. For plug-ins you have the option to set an additional plug-in folder by going to Edit->Preferences->Plug-ins, don't know about needing to install them though as i don't use any

  • Question about id3 tags

    i had all of the fields of all my songs just how i liked them. i thought itunes had written everything i had edited into the id3 tags of all the songs. apparently, it didn't work.
    i am using another software called serato. i took the mp3's whose tags i edited in itunes and imported them into serato. i know this program is able to read all versions of tags, so i found a suggestion someone made to strip the id3 tags. this process called for selecting all the songs, converting the id3 tags to "none", then changing them back to a certain version (v2.3 or v2.4).
    after doing this, i take a look at my itunes library and about 80% of all my songs have their tags messed up. either the genre is back to what it was before i changed it a while ago, or (more annoyingly) the song titles are all truncated to a certain length.
    1. is there any way to undo this? or am i going to have to manually go back and re-edit all the fields?
    2. is there a better way of ensuring itunes is correctly changing the id3 tag fields? for example. if i edit the id3 tags on itunes on one profile on my mac, then take the same mp3 file and import it into itunes on another profile, the id3 tags seem to not have been changed at all.
    help anyone? this whole thing has got me really frustrated. thanks in advance.

    In Serato setup, check box Read iTunes Library. However this doesn't solve the problem, only creates yet another location for cleaning up....
    Having somewhat same issue: Converted all id3 from iTunes succesfully, but couldn't import files correct on other macbook in iTunes (same version)?!?!? Doesn't read id3...

  • Question about Hidden Tags

    I have two forms Page1.jsp and Page2.jsp
    when i invoke page1.jsp i pass a customer id to it ... the actionclass gets it and displays Page 1.jsp
    now when i click on Page 1.jsp i need to pass the same id to Page 2.jsp's Action class
    How do i do it
    Is it possible using <html:hidden> tag
    Thanks
    ~K

    that's certainly 1 way to do it, sure.

  • Few questions about customizing jwm

    Hello all,
    Coming from KDE, I found jwm and it runs so much better on this circa 2008 laptop. KDE runs OK but this is a lot faster. I have familiarized myself with .jwmrc and how to make basic changes and I've come across a few questions.
    1.) Is there any way to enable dragging and rearranging the open programs in the taskbar? I'm kind of OCD about the order of my running apps especially since restarting jwm after edits to the config file puts them in a random order.
    2.) I think I see a way to get programs to start maximized and such using Groups but is there a way to start a program with a specific size? Specifically I am referring to nedit - it always starts too small and I size it so be larger but not overlapping my conky.
    3.) Relating to #2, is there any way to get all programs to remember their window's size and position upon restarting? This has been a pet peeve of mine for years and KDE has the ability to remember this but most other Linux DEs and WMs don't.
    4.) I've been using slock to lock the screen but I need to run it manually. Is there any way to get slock to run automatically, ie after say 5 minutes of inactivity? As of now I've been using xscreensaver to power off the monitor - should I just use the "Lock screen" option here? I've been trying to keep this install as minimal as possible - I don't need a screensaver, just ideally to turn off the monitor and lock the screen after some time.

    1) I don't think you can - you can however disable the jwm taskbar and use xfce4-panel or similar.
    2/3) Devilspie
    4) xautolock

  • Question about customer line item clearing

    Hello everyone,
    There is one question here. Since from the result of FBL5N in SAP, the total amount of AR is zero, but the cleared /Open symbol still show these items are open. Itu2019s very strange because these should be shown as cleared items as the total amount is zero.
    Do we have to clear them manually? or does it take time to show effect in the system?
    Plz explain.
    Thanks
    Leena...

    Hi Leena,
    While pulling the customer report for open item by giving today's date if you are still finding open items being there total to zero, you need to manually clear them. Transaction Code-F-32
    Warm regards,
    Murukan Arunachalam
    Edited by: Murukan_A on Jan 5, 2012 10:21 AM

  • Questions about customizing e61i

    Hi
    I just plonked a huge bundle on my e61i and am less than satisfied for what should be a decent Qwerty phone. Here are some questions that I hope the nice experienced folks here can direct me on-
    1. Where do I change the menu items for the left and the right key (default: Camera and Notes respectively).
    2. Why is the customization of icons on the main home page (desktop?) possible only through the "Stand By" options!!?? What sense does that make?
    3. When I take a picture and want to set it as a wallpaper -- it only occupies about 75% of the wallpaper. What is this? How can I make sure that the pictures take up 100% of the wallpaper area?
    4. Why is it that speed dial is only for number keys? With a proper qwerty phone, I should be able to do a speed dial with every alphabet and every number! Where can I change this setting?
    5. Where can I change the receptivity of the keypad? The keypad is cushiony and when I am typing fast (what else is the point of spending on a qwerty phone?!) I miss many letters. Where can I make the keys more sensitive?
    6. In my email, when I mark all email and DELETE, and select "Delete from phone and server", the mails do not get deleted. Neither from the phone nor the server. It is a straightforward pop3 server, and these type of instructions work from every mail client in the world other than on my Nokia phone. How can I make sure that my deletion commands are heeded?
    7. How can I import all my feeds from Google Reader into my Nokia e61i? Or is there an OPML reader in the phone? Or what else can I do instead of manually entering the feeds one by one?
    Many thanks. All of the above are easily possible with my corporate qwerty phone (you know, the famous one; brand intentionally not mentioned here) so I am hoping this equally expensive Nokia can do at least some of these things!!
    Thanks for any thoughts or pointers!

    1. Go to Menu-> Tools-> Settings-> Phone-> Standby
    2. These are shortcuts for the your favorite applications.
    3. I think that only the theme picture occupies 100% of the screen area.
    4. Speed dial is a common feature for all phones. For Symbian phones (with or without a full keyboard) there is an only application to manage speed dials.
    5. I don’t see how one can chage this parameter.
    6. My E61 do this job witout any problem.
    7. No, there is not OPML/RSS reader installed by default.
    Rockado

  • Questions about Customer Service and Prepaid Phones

    Yes, I have had Straight Talk for over two years. The phone service its self was wonderful. I only came across three places within a 50 mile radios of not being able to get reception. After asking around I found out that Straight Talks service is through Verizon. Everyone I talk to says the Verizon Tower reception was the best. I have been waiting a total of 22 days for Straight Talk to send my replacement for my broken phone. I have had it and I am going to sell the phone on Ebay when I receive it. My service with Straight Talk ends in four days and I am really considering Verizon.. Wanting to do this over the weekend. I know if I purchase a phone from Verizon directly it will be shipped overnight.
    The main thing I want to know is if Verizon has a Customer Call Center in the United States? Where I can speak to someone that speaks "Fluent" English and actually cares if I get good service or not.
    I am older and I like basics with no change. So, these are the features I want on my new phone.
    A phone with a 3 megapix are larger camera with video.
    A phone with a touchscreen and a query keyboard.
    I want a speak to text feature. The last phone had it but I have been told that a app can be put on a phone to do it if it doesn't have it..
    I haven't never had any apps downloaded on my phone but still want options for some.
    A phone that has GPS.
    These are the main features I have got to have. Nothing else matters. Can anybody help a elderly old man find a basic phone with these features?
    I would greatly appreciate any input from Verizon Users about Verizon's Customer Service Department and any suggestions for a good phone under $50. Of course I am not looking for necessarily a new phone with a lot of extras. Thanks and have a "Wonderful and Blessed Day". Chris

    The docs haven't been moved over to the 8.1 docsite, but the 7.0 docs
    for campaigns are still pretty much valid in 8.1. Look at:
    http://e-docs.bea.com/wlp/docs70/dev/cmpaign.htm#998197
    for more information.
    Basic answers:
    1. You can't from a campaign. It will always batch emails in the database.
    2. Use the bea/weblogic81/portal/bin/mainmanager.bat|sh script, which
    uses the com.bea.p13n.mail.MailManager command-line java class (JavaDoc
    at http://e-docs.bea.com/wlp/docs81/javadoc/index.html). This can be
    invoked from cron or at for regular email delivery. Also, the emails are
    deposited in the MAIL_* tables
    (http://e-docs.bea.com/wlp/docs81/db/4Schemas.html#1064602), so you
    could implement a delivery system from that as well.
    3. There are no parameters since the email delivery is invoked from a
    command-line process.
    Greg
    surfboy wrote:
    1.How to disable batch mode email in portal 8.1 Mail Service using
    Campaign?
    2.For batch mode email, when will it deliver?
    3.Where can I admin those parameter besides the fields mapping in
    portal Admin->Campaign Server and Mail Service?

  • Question about Custom Periodic IO Servers

    I have some single-precision.  Are they also converted to 'variant', as stated here: (From Labview Help)
    Use double-precision, string, and Boolean data types when you create a VI to convert into a custom I/O server. These data types are the most efficient to use when publishing data items. LabVIEW converts other data types to variants, which can slow down the performance of the server.

    Thanks for the info.  Another question!!!  I actually have a total of 5 I/O Servers, communicating with different com ports, etc.
    I have to have them launch in a certain order, so I have a Windows system service that launches first, upon reboot, and that task deploys each library associsted with the IO Servers.  I have come to the conclusion that I have to launch the library we have been discussing first.  If it is not first, it does not launch properly - I get Error Code: 1003.  As I said, it does return alot of values - 48 of them, mostly double, some string.  But otherwise, I have tried to make it as simple a VI as possible.  Any ideas as to why it has to be launched first?  I would really rather it be the 2nd one.  I have a I/O Server that controls an APC Switch, and one outlet on the switch turns on the power for the monitored hardware points, so that one really needs to launch first.
    I might as well post my other question/concern.  My last IO Server is one that does not talk to any hardware.  It reads values from the other servers, does some math, and returns the values.  It contains my alarms variables.  It has no shared variables.  I read the variables via Open Variable Connection / Read Variable under the Shared Variable Node palette.  It runs properly if I launch it manually, but I get Error 1 when my Windows system Service launches it.  It contains no other subVIs besides the Shared Variable VIs I mentioned.  The IO Server VI only returns 4 values.  The rest of the shared variables in the library require no calculation, so they are bound to shared variables in other libraries - which have already been deployed by the time my Windows System Service launches this last one.  I have waits in my system service, to ensure that the other libraries have been launched.
    Gretchen

Maybe you are looking for