How to print and int with a c:out tag

Hi there,
Just a silly question. I am trying to print out the size() of a List using the tag below.<c:out value="${list.size}"/>But I am getting the following error: "An error occurred while evaluating custom action attribute "value" with value "${activityCtrl.openActivitiesForResource.size}": The "." operator was supplied with an index value of type "java.lang.String" to be applied to a List or array, but that value cannot be converted to an integer. (null)"
Can this tag not print int's or is it that I am calling "size()" which is not a get/set property. Please help.
Thanks,
Marius Botha

Hi there,
Just a silly question. I am trying to print out the
size() of a List using the tag below.<c:out
value="${list.size}"/>But I am getting the following error: "An error
occurred while evaluating custom action attribute
"value" with value
"${activityCtrl.openActivitiesForResource.size}": The
"." operator was supplied with an index value of type
"java.lang.String" to be applied to a List or array,
but that value cannot be converted to an integer.
(null)"
Can this tag not print int's or is it that I am
calling "size()" which is not a get/set property.
Please help.It is because size() does not follow the JavaBeans naming convention (getSize()).
If you have JSP 2.0 container like Tomcat 5, and JSTL 1.1 then you can use the function library to get the size of the list:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<c:out value="${fn:length(list)}"/>Otherwise you will have to use scriptlets of make some utility JavaBean or CustomTag that does the job.
>
Thanks,
Marius Botha

Similar Messages

  • How to read a C structure with string and int with a java server using sock

    I ve made a C agent returning some information and I want to get them with my java server. I ve settled communication with connected socket but I m only able to read strings.
    I want to know how can I read strings and int with the same stream because they are sent at the same time:
    C pgm sent structure :
    char* chaine1;
    char* chaine2;
    int nb1;
    int nb2;
    I want to read this with my java stream I know readline methode to get the first two string but after two readline how should I do to get the two int values ?
    Any idea would be a good help...
    thanks.
    Nicolas (France)

    Does the server sent the ints in little endian or big endian format?
    The class java.io.DataInputStream (with the method readInt()) can be used to read ints as binary from the stream - see if you can use it.

  • How to print a string with out using main method??

    how to print a string with out using main method??
    if we can tell me with example?
    thanks in adavance
    raja

    Hi,
    actually there's none. The UITableView class needs to "know" the tableView's height so either it can calc <number of rows> times <row height> or it has to sum the height of each single row.
    If the row which needs to be of different size always is the first or the last row you can user a tableHeader or tableFoot view.
    Regards
    Dirk

  • How to print interest along with dunning letter

    HI  guys  plz
    How to print interest along with dunning letter
    Many thanks to you
    Raju

    Hi,
    ABAP development is required for your requirement. Ask your abaper to develop the programme to print dunning letter along with interest
    Regards,
    Satish Muvva.

  • How to declare and work with select-option in screen painter?

    hello there,
    can anybody plz suggest me ,how to declare and work with select-option in screen painter?
    neon

    Hi Blue,
    Please check these threads which will help you a lot..
    module pool programming " to add selection-option on screen"
    Re: Select option in Dialog program screen
    Re: SELECT-OPTIONS in Screen
    Good luck
    Narin

  • Typically, How many back and forths with Creative Support before they acknowledge your questi

    Typically, how many times does one have to go back and forth with Creative Support before they acknowledge an issue or question?
    This is ridiculous.
    I'm on the forth reply now.
    All I want to know is if there is a?64-bit ASIO driver for the X-Fi Titanium on 64-bit Vista?
    They will not answer me.
    All of my testing indicates that there is not a 64-bit ASIO driver for Vista, but they will not confirm or deny.
    :angry:

    dRe: Typically, How many back and forths with Creative Support before they acknowledge your question?U I don't know what Creative would have written if you asked SUpport these days?
    I assume, they lied when they wrote this. There are several walkarounds for XFI cards
    with beta drivers. In releas drivers they exclude the ASIOx64, but in beta it's included!
    Creative has a very awkward marketing strategy. This was with Vista not having EAX on Audigy as
    the said it is impossible. The newer X-FI was able to?do it and after a few weeks the Audigy also could-
    after paying for it. The same with DolbyDigital Li've... and now with x64 ASIO. They reduce features
    in cases the cheaper card had same possibilities as the more expensi've EMUs...
    Shame on them. I?baught a creative Card for the 4th time (SB, SB AWE32,Audigy2, and now Titanium).
    I'm going to thinking about selling it...

  • How to zoom and pan with Edge animate?

    Hi,
    I have been trying to make a project with Edge Animate, it is all about an image, but I want to be able to zoom and pan the image. Can you please send me an example if there is any around? or Can you explain me how to zoom and pan with Edge Animate?
    Thanks,
    Guasch

    I am having this same issue! I am searching through forums on what tools to use to create a good zoom and pan on an image that contains hyperlinks an other things, developed in Adobe Edge Animate.
    So far, here are some solutions I have come across:
    http://craigfrancis.github.io/zoomify/
    http://zynga.github.io/scroller/demo/dom.html
    These two seem to be the closest solutions to what I'm looking for. Now I just have to integrate the javascript into my adobe ege animate composition. Hopefully that won't be too hard. Are there any suggestions from the adobe community on how to do this?

  • Hp Officejet Pro 8500 Q910a looks like it is printing and copying but pages come out blank.

    Hp Officejet Pro 8500 Q910a looks like it is printing and copying but pages come out blank. I have used genuine HP cartridges. All four cartridges have have over 40% ink levels as per Self Test Diagnostic page.Printhead diagnostic says the print heads are "GOOD". Scanner  works fine.  Self Test Diagnostic Page prints in PINK color.Print quality TEST does not have black print on page.Printing and phot copying all come out blank.HELP.

    Hi Equi_nut,
    Do you have the same printer as the user above? 

  • HT2729 I bought a TV episode from iTunes (I have version 10 installed), but when I try to play it on my laptop, it keeps stopping and starting, with the voices out of sync with the action.  The action is stop/start as well.  What settings can I change to

    I bought a TV episode from iTunes (I have version 10 installed), but when I try to play it on my laptop, it keeps stopping and starting, with the voices out of sync with the action.  The action is stop/start as well., and occasionally it skips 5 or 10 seconds altogether, making it impossible to watch.  What settings can I change to fix the problem.

    Repair your QuickTime.
    Control Panel > Programs n Features > highlight QuickTime and click CHANGE then REPAIR.

  • How to print double sided with macbook pro on Samsung CLX-3180?

    Hi,
    I recently switched to using a macbook pro but cannot figure out how to print double sided/two-sided.
    The printer I am using is Samsung CLX-3180 and it allows double-sided printing. I was able to do this with my windows computer previously.
    The frustrating thing is that I see the two-sided feature but I cannot figure out how to turn it on. There is no option to change it.
    It is listed here.
    First, I go to "show presets."
    Then, I click on "copies & pages" but I cannot turn it on.
    Does anyone know how to turn it on?
    Any suggestions would be highly appreciated.
    Thanks.

    Hi nat.the.musical,
    If you are having issues selecting two-sided printing from the Print window, you may find the following article helpful (it is aimed at Mountain Lion, but should also apply to Mavericks):
    OS X Mountain Lion: If your printer has features that aren’t in the Print dialog
    http://support.apple.com/kb/PH11477
    Regards,
    - Brenden

  • How to print PDF file with PLD

    Hi Experts,
    We have three Annexure copy in PDF and wants to print with sales quotation PLD.
    Pls tell me how to print this.
    Regards,
    Datta Kharat

    Hi Jennifer,
    I dont want to print the PLD in PDF.
    I have Annexture copy in PDF which has to along print with PLD at the end of PLD print.
    I have stored this PDF in attachment folder on B1_SHR.
    and given the link option in UDF on Sales Quotation.
    Now I want If i click on PLD print first PLD should be print then automatcally the PDF has to print which has to attached with UDF.
    Regards,
    Datta kharat

  • How to print PDF file with hp-ux 11.31 on itanium

    We finished upgrade from 11.5.7 to 12.1.1.
    With 11.5.7 ( pa-risc hp-ux 11.23 ) we print our pdf file in using acroread to convert them in postscript and print them to printer.
    In our 12.1.1 environment ( itanium hp-ux 11.31 ) ; acroread is not available on itanium.
    Which tool can we use to be able to print PDF file on itanium ( itanium pdf to postscript tool ) free
    Thanks
    Marc

    Pl see MOS Doc 778970.1 (How to Print PDF/UTF8 in R12?)
    HTH
    Srini

  • How to print devlievery document with out condition record mess type

    Hi,
    Actually user want to take the sample print out  ( Hard copy ) of the delivery note and other documents for reference, even the message type processed, not processed and even ended with errors also
    I have written a program to display the delivery document numbers  with check boxses and added one button in application tool bar.
    onece user executed the program, he will able to see all the delivery or sales numbers with checkboxes.
    now requirement is, users will select check box and click on the print button it should fire printouts in local printer of user location.
    for this what we are planning is we want to maintian the entries in NAST by RV_MESSAGE_* function modules and printing the output immedaietly
    If any one worked on this kind of requirement, please suggest step by step, how we can print the documents with directly maitaining the message types with out condition records
    Thanks in advance.
    Raju

    Hi,
    Generally if we create any document ( sales or delivery ), based on the condition record message type will be created and with message type details print will be triggered when the medium is 1, date time 4
    But in my case i want to take the printout irrespective of the message and condition records
    i want to take printout even if the message processed,not processed and ended with error.
    is there any way to take the print of the documents by using function modules or updation of NAST table.
    Please help me.
    Thanks in advance
    Raju

  • Printing and Proofing with multiple profiles

    I have a book project where two kinds of papers is used.
    One more yellow than the other.
    For both of these papers I have a different profile.
    Is there any way that I could define different output/proofing profiles for different parts of the document?
    If not then what about combining 2 documents into a book.
    Can I print/export the book so that it ends up having two different profiles in the resulting pdf?

    Solution for the OP, as tested by CS2:
    Convert by Photoshop:
    Image1 RGB to CMYK1 (for instance ISOCoated for white paper)
    and embed profile CMYK1
    Image2 RGB to CMYK2 (for instance for yellowish paper)
    and embed profile CMYK2
    Define Document CMYK space CMYK0 in InDesign.
    CMYK0 is CMYK1 or CMYK2 or something different.
    Place CMYK-image1 and assign explicitly profile CMYK1
    Place CMYK-image2 and assign explicitly profile CMYK2
    Assignment by
    >Object >Image Color Settings >Profile and Rendering Intent
    InDesign does not honour the embedded profiles automatically.
    Without explicit assignment the document color space is
    implicitly assigned (CMYK0).
    These are the settings for Export to PDF:
    No Color Conversion
    Include All Profiles
    No Output Intent
    No compression or ZIP/LZW compression
    Downsampling as required (here 288ppi if above 288ppi)
    The PDF contains the two images, and the CMYK profiles
    are embedded. Style like PDF/X-3. Test by Preflight.
    For offset printing the profiles are not required.
    So far it's assumed that both profiles CMYK1 and CMYK2
    are valid for the printing process with the same ink
    but for different paper. CMYK-numbers are print-ready.
    For proof printing one needs a RIP with this feature:
    For tagged images use the embedded profile as input
    profile (as defined by PDF/X-3).
    Output profile is that of the proof printer.
    RIP Colorgate ProductionServer5 works as described,
    additionally per image for RGB and Gray images.
    How to test this workflow:
    Source image is the same AdobeRGB(98) color pattern,
    first converted to CMYK1=ISOCoated, then to CMYK2=Toner-
    Printer-Profile.
    The AdobeRGB image and the two CMYK images were printed
    by inkjet as described. For patches which are in-gamut
    for all profiles the appearance is the same (we have the
    same physical colors but different encoding).
    Best regards --Gernot Hoffmann

  • How to print a form with digital signatures

    I created a form that was signed digitally and submitted electronically. When I look in my summary table, the signature shows, but when I create a pdf of the form, the signature does not show. How can I print the forms with the digital signature showing?

    Yu -
    There is no need to post the same question repeatedly - this does not affect how quickly we can respond.
    Merging with:
    How to print a form in a UIX page and
    how to print a form in a UIX page?
    Andy

Maybe you are looking for

  • I had to change my Apple ID because it was using an email I no longer have access to.  I cannot update apps.  HELP

    I had to change my Apple ID because it was using an email I no longer have access to.  I was able to change it just fine.  Now when I try an upodate my apps, it brings up my old Aple ID name so I am unable to update my apps.  How do I change the that

  • Unable to print PDF with landscape orientation

    This print problem seems to be unique only to Mac when printing a PDF from Acrobat or Reader. All the pages come out in portrait (tall) orientation when the doc orientation is landscape and all the print setup is checked for landscape printing. I hav

  • How to dequeue a message automatically by getting a notification

    If there is some data falls in the queue table.How to dequeue a message automatically by getting a notification in my application side . Below is the link i am following for enqueuing the message into a queue table, its happening successfully. http:/

  • Linking to an external swf file problem

    I have one flash presentation which contains a movie clip button with all three events (onRelease, onRollOut and onRollOver) which links to a video which is contained in another swf. The button appears to be temperamental with the onRelease event. It

  • Working with ripped MPEG in FCP

    Bad form I know but what is the best way to get DVD video m2v into a format I can use in FCP projects DV PAL? I've been playing with MAC MPEG2Encoder but am struggling with quality and settings. Also I tried compressor and got initially excited but l