Help with Printing on a JSP dynamically

Hi
I am using a bean to list customer information like this on a JSP page
The bean has different customer information and the products purchased
I iterate thru the bean on the jsp and i need to print it in the following format
Customer Price
CUstomer1........................................................................................$20.00/month
Cutomer238899................................................................................$59.00/month
check....................................................................................................$45.00/Month
Now the biggest problem i have is printing the dots so that the price and customer stay fixed...How do I figure out dynamically how many dots to display????
Can someone help me out thanks
~K

I agree with that other person in that you should just use a TABLE (without using dots). BUT, if you are really persistent, you can use the <pre> tag so that every character displayed will take the same space. Figuring out the number of dots then just becomes a problem of calculating the length of each customer and the price subtracted by the total length of the whole thing.
Easy as pie. =)
~ Joe

Similar Messages

  • Help with Print Layout Designer

    Hi all,
    I'm not sure if I should post this here or not, I already posted it in the Business One Forum.  Moderator(s)  if this is not the proper place please delete it and let me know that it is not the appropriate venue.
    I need some help with Print Layout Designer.  I am running 2005A SP01, and my customer wants a modification to the Sales Backorder Report.  They want to add the column "In Stock" to both the report as displayed on the screen and the printed document.  The report rendered to the screen has the In Stock, but it is not checked as visible.  I check it and In Stock shows up as designed.  The part I am having problems with is the printed document. I opened the PLD from the Backorder Report, and saved it under a different name.  I resized some of the columns in the repetitive area (header and data) to make room for the In Stock column.  I CAN add the text field Instock as free text and enter "In Stock" as the content.  I looked at the "backorder" column in the PLD, and it is a text field with the source System Variable and the variable is 109.  I would assume that all I need to do in my added column is to set the source to System Variable and enter the variable number.  That is the problem; I can't find the variable number for that column.  I looked on the report rendered to the screen with system information on and the variable is "3 #000027825,OnHand".  I looked at the Back Order column of the report rendered to the screen and the variable is "3 #000028725,OpenCreQty".  I found a spreadsheet that is supposed to contain a list of system variables for 2007A, but the document type for this report is BRDR and that document type does not appear in the list of document types in that spreadsheet.  I looked for a similar spreadsheet for 2005A SP01 but didn't find one.  I DID find a document "How To Customize Printing Templates with the Print Layout Designer".  According to that document, I should be able to get the system variable from the report rendered to the screen with System Information turned on.  Can anyone help?
    TIA,
    Steve

    I haven't dealt with this before so I can't be certain, but here are my thoughts.
    The Backordered Qty is probably a calculated field, so that's why it's a system variable. The In Stock is a defined field, so you probably can use the file and field number, OITM, OnHand. I would look at maybe the stock number or description to see how those are setup on the form instead of the backordered qty field.

  • I need help with printing labels.  please

    I need help with printing labels.  thanks in advance

    Welcome to Apple Support Communities.
    In Address Book, first select a name or group of names to print.
    Then File, Print, select Style, Mailing Labels, then Layout to select a specific target label (such as an Avery number), or define your own...

  • Need help with Printer Setup conventions

    I can't get my Brother printer to print from one computer--but it prints okay from the other computer on my network. I need to know the conventions for the Printer Setup Utility.
    There's a checkbox by every printer on the list. What does it mean when the checkbox is grayed out?
    Some printer names appear in bold. What does that mean?
    Thanx.

    Thank you for your reply. I appreciate your help in this and just want to understand what you're saying.
    As I say, the printer is displayed in the print dialog box but the checkbox is grayed out. I'm assuming that when you say "...it can't find/see them now," you mean the print dialogue can't see them (the drivers). Your last sentence confuses me. You say, "Do you maybe have Printer Sharing enabled & they aren't actually directly connected? If so you have to reboot after turning it off." A little confusion about your antecedents here. What isn't actually connected? The printer? So I have to reboot after turning it off, "it" I suppose is the printer, is that right? I will try that. So turn printer off, reboot, turn printer on. Right?
    I will describe my problem. l thought that if I understood why the checkbox was grayed out I might see what my problem was. If you want me to start another topic I can do that.
    Problem: I have a network with 2 computers and the Brother
    multifunction fax/printer. I'm using an Apple airport hub. The printer
    and one computer (Mac tower) are connected to the airport base via
    ethernet. The 2nd computer (Apple laptop) is on the wireless network.
    Until recently i could print from both computers. Now I can't print from
    the tower. But I can still print from the laptop.
    When I try to print from the tower I get an error message that says, "Cannot print from current printer." I have rebooted, reinstalled printer drivers, checked cables, deleted printer from printer list and re-added printer all to no avail. But as I say, I can still print from the laptop which is using Airport. So the printer prints, the hub connects to the printer okay (ethernet) and I know the tower connects to the hub (I can ping the printer okay from the tower.)
    I am conversing to Brother support via email and their first suggestions I have already tried. Perhaps there's some problem in the network, but I can't figure it out. Worse yet, now when I go to the Network preferences I get an error message which says, "Your network settings have been changed by another application." THIS ERROR MESSAGE WON'T GO AWAY! I can click 'okay' but it reappears. I have to force quit the System Preferences to get out. If you can help with any of these problems I surely appreciate it.

  • Need some help with printing Templates

    Hi All,
         So I was hoping for a bit of help. I am currently doing all illustrator work for my new job. I have not been on the program in a long time and the version I am using is CS4. I have been creating brochures and flyers all A4 size and i have hit a bump in the road. I need a 6pp A4 Z folded (Inside) and 6pp A4 Z folded (outside) template. I Have been using the A3 folded to A4 guides to great affect for a two page brochure. But i cannot for the life of me find a template guides for 6pp A4 brochure.
    This was the best i could do, its a pdf but I prefer working with the guides. I have just been downloading the previous templates from commercial printing websites. I found one that was right but not compatible with CS4.
    Any help with finding one or any ideas on a path to take would be greatly appreciated.

    Why don't you just setup the file you need?
    Create your guidelines and there you go.

  • Help with printing hard copy from Acrobat PDF

    Copy created in InDesign and printed to Adobe PDF is OK on screen but printing hard copy with random chunks of text missing. Same on both my printers, doesn't happen with doPDF. Any ideas? Thanks

    I suspect that what you are asking is simply to print to a new PDF with print as image selected. You can also save as an image file and then open the images as a new PDF.

  • Help with printing static page on even pages of dynamic form

    Hi folks in the OD universe!
    I am relatively new to OD and I am trying like the dickens to get a form to duplex in a very specific way. I have slogged through all of the messages on duplexing and related issues, but haven't seen a solution that fits my problem.
    I have an page of instructions that needs to print on the even (or odd don't really care as long as it is always there) pages of an existing dynamic PO form (with 4 subgroups - header, detail header, data, and footer).
    So I made a working copy of the PO form and added the instructions page. My first thought was to try and use the instructions page as an extra footer piece, so I pointed to it from the footer on the old PO form in the At End-Of-Page part of the subform thing and then pointed the instruction page back to the headers of the PO form so it could continue on. Right now, the instructions are on page 1, so it prints the instructions, then the first page of a PO, then a bunch of instruction pages (infinite - I have to cancel the job on the printer). Making it duplex was the easy part.
    So is this possible using the Subform Page Full and At End-Of-Page stuff or do I need to do some scripting to accomplish this (if so, any ideas on how to proceed). I am trying to make multi-page POs have the instructions on the front or back of each page of the PO.
    Any advice on how to tackle this would be appreciated. I am going to continue my efforts and will reply to this thread once I figure something out.
    Cheers!
    Lucas

    Hi Lucas,
    The information below is from the print_ag.pdf which can be found on your server in the documentation directory
    \checksurface (Duplex Mode and Surface)
    Format
    \checksurface
    To check which surface of a page is currently printing, use the \checksurface command.
    \checksurface detects the current print surface and causes a group event handler to activate.
    Depending upon the actual surface, the event handler is one of:
    A typical use for \checksurface is to force the printer to switch to a new front page when
    printing in duplex mode, by conditionally inserting a blank surface on the back of the current
    page. For example:
    ^define group:SECTION \checksurface\page1\fieldPOS
    ^define group:SECTION!DuplexFront \page3
    Here the group SECTION uses the \checksurface command to determine the current duplex
    surface. The event handler for the !DuplexFront event activates when the current print surface
    is a front page. The event handler inserts page 3 from the current template as a filler surface on
    the back before moving to page 1 on the next front surface. As a result, the new page 1 will be
    on a duplex front surface, regardless of whether the previous page was a front or a back
    surface. The filler surface may be entirely blank, contain static text, such as “This page
    intentionally left blank”, or contain fields which are filled by global definitions active at the time
    \checksurface is used. It may also contain a dummy field that can trigger a !FieldNotAvail
    event specific to the insertion. In any case, Intelligent Pagination commands directly
    referencing fields on that page should not be depended on, because the page is only
    conditionally inserted.
    For another method of performing surface specific processing, see “$duplexsurface (Duplex
    Mode and Surface)” on page 281.
    Regards,
    Matt

  • Need Help with Print a Report

    Hi,
    I am building a database application in Java and now i need to print some reports ....
    I need to get the data from the database .. do some calculations , and then print in on paper.
    I checked online and got some tools like JasperReports, jfreereports, ReportCat, etc. so I was wondering if somebody can suggest whats the best.
    In my report I will have to print more than one table on one page.
    for example:
    if I have 4 Invoices. then i will have 4 tables .. one for each invoice.. and each table will contain
    the elements for that Invoice.If all can't fit on one page then it needs to go next page.
    I would like to do all this stuff in Java without using any reporting tool ... but I am not really sure how this can be
    done .. can someone give me an idea ... as per how this can be done .. will really appriciate all the help.
    Thanks in advance,
    sandsouza

    Hi,
    Can somebody please help me with this.
    Thanks in advance
    sandsouza

  • Need help with printing edocs with a laserjet1320. Wont print large jobs. installed 10.7 update.Help

    i am trying to print 50 page(5mb) document package on legal paper and the printer is printing one page at a time. I am using a macbook pro  10.7 and I have installed the update. however, it seems as though the computer is not correctly communicating with the printer. A four page job was no problem. I believe these printers are capable of high volume printing. Can I reinstall the firmware? Adobe acrobat will not even communicate with the printer. It just says "waiting for printer to become available." Using "preview", it sends the job to the printer, however, it is printing about 5pages per minute. It is connected through a usb cable. thanks for your help.
    Randy

    Randys714 welcome to the forum
    Your laserjet1320 is a commercial product. I will suggest posting in the forum for HP Business Support as well for yet a better chance at finding a prompt solution.
    You may find the commercial Laserjet board here.
    http://h30499.www3.hp.com/t5/Printers-LaserJet/bd-p/bsc-413
    Thanks;
    RobertoR
    You can say THANKS by clicking the KUDOS STAR. If my suggestion resolves your issue Mark as a "SOLUTION" this way others can benefit Thanks in Advance!

  • Help with printing text to Text Edit

    -- Here is a applescript that generates prime numbers up to a certain number. I tried to get the script to print out every number up to the number defined in a text edit document. I got a -1700 error that says (error "Can’t make result of 3 into type Unicode text." number -1700 from result of 3 to Unicode text). If anyone has any help that they can offer me it will be greatly appreciated.
    Heres the Script
    local min, max, neverZero, maxDiv, divTry, res
    set {min, max} to {1, 503}
    set res to {}
    if min = 1 then set min to 2
    if min = 2 then set {res, min} to {{2}, 3}
    if min mod 2 = 0 then set min to min + 1
    repeat until min > max
        set maxDiv to intsqrt(min)
        set {neverZero, divTry} to {true, 3}
        repeat until divTry > maxDiv
            if min mod divTry = 0 then
                set neverZero to false
                exit repeat
            end if
            set divTry to divTry + 2
        end repeat
        if neverZero then
            set res to res & min
            log min
            set resultinfo to "" & result of min
            tell application "TextEdit"
                activate
                set nme_file to ""
                set the_file to (open for access nme_file with write permission)
                write "" & resultinfo to the_file
                write return & resultinfo to the_file starting at eof
                close access the file
            end tell
        end if
        set min to min + 2
    end repeat
    on intsqrt(N)
        return (do shell script "echo 'sqrt (" & N & " )' | /usr/bin/bc")
    end intsqrt

    You're confusing two different steps.  If you want to write the data to an open textedit window, you build a text string of the integers and then write it out to the window like this:
    tell application "TextEdit"
              set text of document 1 to text_string
    end tell
    After that you'll have to save the document.  On the other hand, if you want to write directly to the file on disk, don't use a textedit tell block - just write to the file at the script level (i.e. your code looks correct, but shouldn't be in a tell block).  then you'll have to convince the open textedit window to refresh (which might be a bit tricky).

  • Help with print booklet to PostScript, Distiller

    Please help if you can.
    I am printing a booklet from InDesign CS3 to a PostScript file to then create tabloid-size imposed pages to send to a client for printing. It works when I do it with a legal-half booklet, but is failing with letter-size pages going to tabloid imposed pages (1 & 8, 2 & 7, etc.)
    All I get is a log. Here is the log:
    %%[ Error: invalidaccess; OffendingCommand: findfont ]%%
    Stack:
    /Font
    /Tags
    /CompressObjects
    -dict-
    /Description
    /False
    /PDFXTrapped
    /PDFXRegistryName
    /PDFXOutputConditionIdentifier
    /PDFXOutputCondition
    (None)
    /PDFXOutputIntentProfile
    [0.0 0.0 0.0 0.0]
    /PDFXBleedBoxToTrimBoxOffset
    true
    /PDFXSetBleedBoxToMediaBox
    [0.0 0.0 0.0 0.0]
    /PDFXTrimBoxToMediaBoxOffset
    true
    /PDFXNoTrimBoxError
    false
    /PDFXCompliantPDFOnly
    false
    /PDFX3Check
    false
    /PDFX1aCheck
    [/None]
    /CheckCompliance
    false
    /AllowPSXObjects
    (None)
    /ColorSettingsFile
    false
    /InternalDisablePathOptimizer
    0
    /InternalForceUserUnit
    false
    /InternalDropAllImageData
    0
    /InternalOffOptimizations
    0
    /OffOptimizations
    /Default
    /DefaultRenderingIntent
    1
    /OPM
    /Left
    /Binding
    true
    /Optimize
    false
    /LockDistillerParams
    false
    /UsePrologue
    true
    /PreserveEPSInfo
    true
    /PreserveCopyPage
    false
    /PresumeRGBRepresentationIsLossless
    true
    /ParseDSCCommentsForDocInfo
    true
    /ParseDSCComments
    1
    /StartPage
    false
    /DoThumbnails
    -1
    /EndPage
    false
    /EmitDSCWarnings
    (sRGB IEC61966-2.1)
    /CalRGBProfile
    (sRGB IEC61966-2.1)
    /sRGBProfile
    (Dot Gain 20%)
    /CalGrayProfile
    (U.S. Web Coated \(SWOP\) v2)
    /CalCMYKProfile
    0.0
    /DetectCurves
    true
    /DetectBlends
    false
    /CreateJDFFile
    1.0
    /SyntheticBoldness
    0
    /DSCReportingLevel
    false
    /EmbedJobOptions
    false
    /CreateJobTicket
    true
    /AutoPositionEPSFiles
    /OK
    /CannotEmbedFontPolicy
    100
    /MaxSubsetPct
    true
    /SubsetFonts
    true
    /ParseICCProfilesInComments
    false
    /EmbedOpenType
    true
    /EmbedAllFonts
    /NeverEmbed
    /AlwaysEmbed
    false
    /AllowRelativePathOps
    false
    /AllowTransparency
    1048576
    /ImageMemory
    true
    /PassThroughJPEGImages
    true
    /ConvertImagesToIndexed
    -dict-
    /MonoImageDict
    /CCITTFaxEncode
    /MonoImageFilter
    true
    /EncodeMonoImages
    1.5
    /MonoImageDownsampleThreshold
    -1
    /MonoImageDepth
    1200
    /MonoImageResolution
    /Bicubic
    /MonoImageDownsampleType
    true
    /DownsampleMonoImages
    /OK
    /MonoImageMinResolutionPolicy
    1200
    /MonoImageMinResolution
    true
    /CropMonoImages
    false
    /AntiAliasMonoImages
    -dict-
    /JPEG2000GrayImageDict
    -dict-
    /JPEG2000GrayACSImageDict
    -dict-
    /GrayImageDict
    -dict-
    /GrayACSImageDict
    /JPEG
    /GrayImageAutoFilterStrategy
    true
    /AutoFilterGrayImages
    /DCTEncode
    /GrayImageFilter
    true
    /EncodeGrayImages
    1.5
    /GrayImageDownsampleThreshold
    2
    /GrayImageMinDownsampleDepth
    -1
    /GrayImageDepth
    300
    /GrayImageResolution
    /Bicubic
    /GrayImageDownsampleType
    true
    /DownsampleGrayImages
    /OK
    /GrayImageMinResolutionPolicy
    300
    /GrayImageMinResolution
    true
    /CropGrayImages
    false
    /AntiAliasGrayImages
    -dict-
    /JPEG2000ColorImageDict
    -dict-
    /JPEG2000ColorACSImageDict
    -dict-
    /ColorImageDict
    -dict-
    /ColorACSImageDict
    /JPEG
    /ColorImageAutoFilterStrategy
    true
    /AutoFilterColorImages
    /DCTEncode
    /ColorImageFilter
    true
    /EncodeColorImages
    1.5
    /ColorImageDownsampleThreshold
    1
    /ColorImageMinDownsampleDepth
    -1
    /ColorImageDepth
    300
    /ColorImageResolution
    /Bicubic
    /ColorImageDownsampleType
    true
    /DownsampleColorImages
    /OK
    /ColorImageMinResolutionPolicy
    300
    /ColorImageMinResolution
    true
    /CropColorImages
    false
    /AntiAliasColorImages
    true
    /PreserveFlatness
    false
    /PreserveHalftoneInfo
    true
    /PreserveDICMYKValues
    /LeaveColorUnchanged
    /ColorConversionStrategy
    true
    /PreserveOverprintSettings
    /Preserve
    /UCRandBGInfo
    /Apply
    /TransferFunctionInfo
    /All
    /AutoRotatePages
    true
    /UseFlateCompression
    false
    /ASCII85EncodePages
    true
    /CompressPages
    false
    /PreserveOPIComments
    1.5
    /CompatibilityLevel
    8000
    /CoreDistVersion
    -mark-
    /Apple-Chancery
    /Apple-Chancery
    /IERNAS+App

    I am using Print Booklet from InDesign CS3, printing to a PostScript file.
    I saw Apple Chancery in the log so I thought that might have been the problem. So I went back to Suitcase Fusion and activated Apple Chancery, with the same result.
    I do note that Apple Chancery is a TrueType font. The other fonts in the publication are Arial family (OpenType TrueType) and Times Regular (TrueType). Preflight in ID CS3 indicates no problems, all fonts are OK, and none are protected.
    Quit InDesign and re-launched. Same problem.

  • Help with printing photos on photo print paper with Desk-jet 3050A

    Hello I am in need of some advise regarding my desk-jet 3050A printer, the problem is that I cant seem to print pictures on to my glossy photo print paper; I can print pictures onto standard A4 plain paper but the pixels have blurred slightly.
    I cant seem to find any accurate advise regarding which photo printer paper is compatible with my printer and how to actually print a picture onto both plain paper/photo paper at a good quality, any help would be appreciated, let me know if you need anymore information.  Thanks
    Chris
    OS: Windows 7 Home Premium 64-bit
    Make: HP Desk-jet e-All-in-one Printer
    Model: J611a series 3050A  
    Product serial No: {Removed for privacy}
    FPU No: CR231-64001

    Hi,
    What exactly is going wrong? and with the link below you can find the specs of the printer. Under paper handling the sizes and paper weight that are supported are listed.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02105426&tmp_task=prodinfoCategory&cc=us&dlc=en...
    Say "Thanks" by clicking the Kudos Star in the post that helped you.
    Although I work for HP my posts and replies are my own
    Please mark the post that solves your problem as "Accepted Solution"

  • Help with printing CD art

    Mods: If there's a better place to post this, I apologize, but I couldn't find a specific place.
    Technical Specs -
    Macbook Pro -
    Mac OSX 10.6.4
    2.4 GHz Intel Core i5
    4 GB 1067 MHz DDR3
    Printer -
    Epson RX595 All-In-One Photo Printer
    Here's my problem -
    I create cd artwork for my dad's post-production company. It's the same artwork, but he used to use Epson PrintCD ( he's not very computer savvy, so it was the simplest program for him ). However, now that I am here, I started creating his cd artwork in Photoshop. I downloaded a template off the Internet, and it worked fine! ...for a while.
    I tend to make minor tweaks and adjustments to the artwork, since I don't usually have a whole lot to do most days, and I ( stupidly ) don't save multiple copies of things while I'm working on them.
    The dilemma is this: I had a great cd artwork, but I can no longer remember how I made it. The new stuff that I'm coming up with is incredibly blurry and horrible looking compared to the amazing quality of the others.
    I've scanned in three of the hard copies that I have on hand ( two GOOD versions that I have hard copies of, and one BAD version that's the latest creation ).
    Good CD 1
    Good CD 2
    Bad CD 1
    ( I didn't want to post big pictures in the post, so just links to Photobucket pictures )
    What I'm hoping is that someone can help me out with some feedback on a setting that might help me get back to what the artwork once was.
    Thanks guys!
    -Robby

    Wade_Zimmerman wrote:
    Was the image 300 ppi at 100% the size it is being reproduced at! That is; is area of the art covering the background about 4.625 inches square by 300ppi or was it scaled to fit?
    Resampling is when you scale up the resolution with interpolation  or change the dimensions of the image but keep the same resolution. That is you can res up or down not always a good idea and many times does little for you and can cause lots of problems.
    Ah, I think I understand.
    I believe so, yes. What I am doing is opening a basic template in PS, then opening my background image, and just dragging and dropping. It's not a perfect fit on the cd, but I'm not doing any resizing of it. It's maybe a few centimeters bigger than the furthest edges of the cd circle.

  • Need help with Telnet command in JSP

    Here is the code I have been working on but it will not display the buffer to the page..
    String [] cmd1 = {"cmd.exe","/c","telnet hqsun1.xx.xxxxx.com"};
              Process n;
              String T = "" ;
              n = Runtime.getRuntime().exec(cmd1);
              BufferedReader in1 =
              new BufferedReader(new InputStreamReader(
              n.getInputStream()));
              while((T=in1.readLine()) != null)
              out.println(T+"");
    Maybe someone has done this before? I am trying to acomplish a telnet net session to the screen with some exicuted commands, because this tool is going to be used to help determine system status when the help desk needs to check on something.
    Thanks

    I don't want to be discouraging, but I'm not quite sure you've thought the problem through. You say that you'd like to create a web page capable of providing various pieces of information to the help desk, and you suggest ping and the output of various canned telnet commands as examples.
    What is preventing the help desk from just executing those commands at the command prompt?
    I realize that the people working the help desk are (ahem) there for a reason, but it is really much faster for me to just simply type "ping www.mpalfrey.com" at the prompt, then it is for me to fire up the web browser and wait for a response that way. You will likewise find that it is a lot more convenient to perform diagnosis on remote machines directly from the command prompt.
    Uh, it's kind of like giving someone a screwdriver, then saying, "oh wait a second" and making them wear an oven mitt in order to use the screwdriver.
    But, if you really want to do it this way, the best thing to do is create a wrapper class that directly calls the system command and captures the output to a stringbuffer. Then your JSP page simply has to clone that wrapper via a new() command and trigger it if you go the singleton route. The code would look something like this...
    <%@ import page="com.mpalfrey.shellcommands.ping" %>
    <%
       myPing foo = new myPing( request.getParameter( "victim" ) );
       foo.trigger();
    %>
    Ping results:
    <%=foo.results()%>JSP can do a lot of wonderful things, but that doesn't mean you have to do it that way. :)

  • Help with printing book made with i photo

    Hi,
    Can somebody help me. I am trying to buy an album i created with iphoto under the project tab and it won't work.
    It keep saying that the connection cannot be made?

    go to the Apple store (store.apple.com) and re-enter all of your account information and make sure one lcick buying is on - verify your print products country in the iPhoto preferences - preview your book
    Before ordering your book preview it using this method - http://support.apple.com/kb/HT1040 - and save the resulting PDF for reference - the delivered book will match it.
    and try again
    LN

Maybe you are looking for