How to include Chart in Web Page not as seperate image file?

Hi, I am using JCharts and am trying to figure out how (or if it is even possible) to create a chart and then place it in a web page. All the examples I've seen show you how to create a JPEG of the chart and then link to this image from your web page. Is it not possible to surround the JPEG chart with other HTML so that I can keep my web page logo and menu etc on the same page as the chart?
I can't find any examples which show how to surround your images with HTML as JCharts creates a JPG file and returns that in the Http Response e.g. "ServletEncoderHelper.encodeJPEG13(axisChart, 1.0f, response);".
My environment is Java 1.4.2, Struts and Tomcat 4.1.30.
Is there a way of drawing charts directly into a web page rather than displaying them on a seperate page as an image file?
many thanks in advance,
James.

If you understand html, you know that to display an image, you must provide a reference to the image's location within the html code (there's no way to embed the image itself, directly in the html).
An image's reference is just an url of where the image can be loaded from. Provide an url which goes to your dynamic chart servlet and requests the appropriate chart (i.e., you may have to pass in certain parameters in the url).

Similar Messages

  • How can I forward a web page (not a link but the page) using Mac Mail'Mountain Lion?

    I want to mail a web page, not a link to the page but the page itself. I use Mountain Lion and Mac Mail. I used to be able to do this with Lion.

    Look in the outgoing email message window. Make sure Send Web Content is not set to Link Only

  • How to create Chart within a web page NOT as seperate page?

    Hi, I am using JCharts and am trying to figure out how (or if it is even possible) to create a chart and then place it in a web page. All the examples I've seen show you how to create a JPEG of the chart and then link to this image from your web page. Is it not possible to surround the JPEG chart with other HTML so that I can keep my web page logo and menu etc on the same page as the chart?
    I can't find any examples which show how to surround your images with HTML as JCharts creates a JPG file and returns that in the Http Response e.g. "ServletEncoderHelper.encodeJPEG13(axisChart, 1.0f, response);".
    My environment is Java 1.4.2, Struts and Tomcat 4.1.30.
    Is there a way of drawing charts directly into a web page rather than displaying them on a seperate page as an image file?
    many thanks in advance,
    James.

    Hi Hatton,
    in html, there exists an img-tag. this tag contains a parameter called src. And if you want to embedd an image in your html-page, you will put the source of the image you want to display to the src-parameter. The same with servlets or java server pages. For the browser it doesn't matter where the html comes from. it doesn't matter if it has to be generated by an servlet-container like tomcat. So you write a servlet, which will create an image and make it accessible to your servlet container and then insert an tag like
    <html>
    <body>
    <img src="http://yourdomain/servlet?param=value" width=aNumber height=aNumber>
    </body>
    </html>This can be done because servlets can be configured to response with images which can be created by java2d or something else...
    I hope, this will help you...

  • How to include other site web page in my application?

    I have a web page lists all payment methods, when user select one of the payment type and then click the submit button, it will re-direct to the third party site for the payment. But I want to have my header in the third party web site, this means that I only change the content in my web site to the other site. How can I do this? I'm using JSF + Tile. Thanks

    I means include the web page which is come from other site in my application body.
    The layout is:
    | my company heading |
    |-------------------------------------|
    | |
    | body(payment web site) |
    | |
    |-------------------------------------|
    | my company footer |
    The customers will feel that they are doing the payment on our site, but actually they pay on the third party site, After payment, redirect back to our web page to show the result.

  • How do i open a web page with VeriSign Class 3 Extended Validation SSL SGC SS CA certfificate i can't open web pages with this, how do i open a web page with VeriSign Class 3 Extended Validation SSL SGC CA certfificate i can't open web pages with this

    how do i open a web page with VeriSign Class 3 Extended Validation SSL SGC SS CA ?

    Hi
    I am not suprised no one answered your questions, there are simply to many of them. Can I suggest you read the faq on 'how to get help quickly at - http://forums.adobe.com/thread/470404.
    Especially the section Don't which says -
    DON'T
    Don't post a series of questions in  a single post. Splitting them into separate threads increases your  chances of a quick answer.
    PZ
    www.pziecina.com

  • How do you insert live web pages in keynote?

    How do you insert live web pages in keynote?

    Insert a 2D Pie chart on the slide (Insert > Chart > 2D Pie), then place a circle from Shapes overlaid in the centre:

  • How do you close safari web pages on iPad air

    Hi  Can any body tell me how to close the safari web pages on ipad air.  I have a 5S and it has your pages collected in the right had corner you can click on this and then delete each page, but the Air does not have this.  Can anybody tell me please. 
    Thanks

    thanks for that help.   When I double tap the plus sign it clears my tabs thank you sooo much.  What sberman said I cannot do that as I do not have my pages I have opened run across like he is showing? dont know why.  thanks anyway

  • How can I print a web page to a hard copy with Adobe?

    How can I print a web page to a hard copy with Adobe? When I print this particular page in the usual way it prints only the text of that page, not the photo that's also part of that page.

    I have Adobe SendNow, but I can buy another Adobe product if it will solve my web page printing problem.

  • How do I get my web pages back to original size? My fonts are all too large and keep reverting after I change them back!

    How do I get my web pages back to original size? My fonts are all too large and keep reverting after I change them back!

    That has not worked. I do it and still it reverts. Isn't there a way to tell Firefox to just go back to default settings?

  • How do I open a web page in Adobe Reader from ipad2?  I don't see any buttons to click. I'm new user

    How do I open  a web page in Adobe Reader? I got the app for ipad2, but when a page says I need a certain version of AR, I don't know what to do. I'm a new user and don't know if I have to "open" AR and it automatically reads whatever doc I have up on the web, or is it always running and any web page I'm on should show a button to click in order to open the page in AR?

    If a website says that you need a certain version of Adobe Reader, it is probably attempting to detect whether or not you have the Adobe Reader browser plugin installed. This is something that only works on desktop systems where browser plugins exist. Since browser plugins don't exist on mobile, website developers should take care to present different messages and provide different options for downloading PDF's when visited by mobile browsers. I recommend contacting the website owner and requesting that they implement access for mobile devices.

  • How do I save a web page so that someone else can open it?

    Sometimes I want to save web pages as archives for future reference. I thought printing as a PDF would be the most widely readable format, but items on the page are often lost and I end up with question marks.
    I have just tried "Save As" to a web archive, and that works well in Safari (meaning that Safari can reopen it perfectly), but when I emailed the file to a PC user they couldn't open it. I assumed a web archive format would be readable by any web browser; obviously that's not the case.
    How do I archive a web page so that it is universally readable without losing any content?

    A web-link won't work because the particular page I want to send requires a subscription. The story about this particular page I want to send: four of us are planning a 7-day hiking trip through some Tasmanian wilderness, and we don't go unless the weather forecast is fine. I am subscribed to a weather website, but when I send this link:
    http://www.weatherzone.com.au/models/meteogram.jsp?lt=twcid&lc=9350
    they don't get the meteograms (graphs of various weather aspects out to 10 days).
    So, I want to save the particular page and send it off. In general, though, I simply want to archive certain pages.
    In my limited testing it looks like:
    • Safari can't save a web page accurately;
    • Firefox can, but it generates a separate folder of files ( I would have to combine the two, then zip them, then email);
    • iCab may be able to, but I haven't tested it yet.
    I didn't think saving a web page, incorporated into a single file, would be so complicated.

  • Safari - "web pages not responding" about once an hour. I'm about to switch to Chrome if I can't fix this.

    Safari - "web pages not responding" about once an hour. I'm about to switch to Chrome if I can't fix this. Help?

    Regarding #1, your post says you have a beta version of Firefox 4. That may well be incorrect, but that is why the site says you do not have the latest version.
    Losing graphics on the bookmarks toolbar and not having a working back button are not normal, but I'm not sure whether you want to troubleshoot Firefox 4, roll back to Firefox 3.6, or just move on.
    How can we help?

  • Web Pages not loading on Mobile Devices

    Browsing web pages not working on mobile devices
    I have bt inifinity 2, from my laptop and mac (with same wifi connection) webpages load no problem, from my android tablet and iphone (with same wifi connection) web pages not loading. On these devices I can load youtube videos, and apps have connections/load data, it seems to be limited just to browsing webpages.
    I have tried changing ssid for the 2 channels, I have tried disabling wifi on the router, and using apple time capsule as the router, everything seems to result in the same problem, you cannot browse web pages on mobile devices.
    previously i had adsl from bt and didnt have these issues.
    Solved!
    Go to Solution.

    Try turning Smart Setup off.
    http://bt.custhelp.com/app/answers/detail/a_id/44328/~/switching-smart-setup-on-and-off-on-the-bt-ho...
    Devices where there are known to be problems include:
    Some Apple devices including iPhone 5 and Apple TV
    some Android smartphones
    Xbox<
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • How to include iview from one page to another using FPM

    Dear experts
    using ECC6 NetWeaver 7
    I have followed this WIKI guide step by step.
    How to include iview from one page to another using FPM?
    https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=118423928
    On step 4 I couldnu2019t create an Iview based on view u201Cpersonal datau201D u2013 it was not possible.
    The view wasnu2019t there (in comprehend to the  WIKI)
    What could be the reason?
    I have full authorization on the portal.
    Thank in advance for your help.

    Please check this.
    Re: Organizational History iView
    /thread/370447 [original link is broken]
    Regards,
    Sandip

  • How can I "expire" a web page (prevent BACK button access)

    How can I "expire" a web page ?
    I know some sites will display the following message if we click on the
    BACK button in your browser.
    Warning: Page has Expired The page you requested was created using
    information you submitted in a form. This page is no longer available. As a
    security precaution, Internet Explorer does not automatically resubmit your
    information for you.
    To resubmit your information and view this Web page, click the Refresh
    button.
    How do I implement this feature??

    U want to disable back button click
    if yes i think
    javascript:window.history.forward(1);

Maybe you are looking for

  • Which mac mini model supports dual monitors

    Hi there I gather that at some point mac minis started to support dual monitors natively. Would anyone be able to clear up which model this was? Cheers

  • Function Module require for Accounting Document

    Hi All, Is there any Function Module available for getting Accounting document no which is created after IR. Regards, Paras

  • How much data is actually sent to the client?

    Hi, On the web application stuff I'm doing, I have a somewhat complex class structure for my objects. For example: I have a Project class and a Concept class, and technically you can access a Project object's assocated Concept object, but to do so yo

  • Facetime troubles with Imac

    Everytime I try to purchase Facetime for my Imac (OS X 10.6.8) It tells me  "Firefox doesn't know how to open this address, because the protocol (macappstore) isn't associated with any program." or " Safari can't open "macappstore://itunes.apple.com/

  • Sending from webmail rejected

    Hi All- My mailserver has started rejecting email sent from webmail with this error message: Transaction failed Server replied: 554 <localhost[127.0.0.1]>: Client host rejected: Access denied Webmail lives on the same server as the email server. Belo