Dynamic Image rendering on JSP page

Hi All!
I want to display images on my JSP page. However, the images should be generated dynamically (As are used by many sites during the registration process e.g., yahoo, etc..) How can i achieve this?
plz help! Its urgent!

Yes, but your in the wrong forum for this.
Use the search bar to look for posts and have a look in
http://forum.java.sun.com/forum.jspa?forumID=5
There are forums on Multimedia which may also have some information.

Similar Messages

  • How can i render a dynamic html file in jsp page

    Hi everybody,
    i am trying to render a dynamic html file in jsp page with the result of querying a database.
    The response of the query is a xml document. And i have a stylesheet to transfer it to html.
    How can i render the html in a jsp file?

    I am using below code for HTML files
    private var appFile:String="index.html";
    if (StageWebView.isSupported)
                        currentState = "normal";
                        webView.stage = stage;
                        webView.viewPort = new Rectangle( 10, 130, (stage.stageWidth)-20, 750 );
                        var fPath:String = new File(new File("app:/assets/html/aboutus/"+ appFile).nativePath).url; 
                        webView.loadURL(fPath);
                        addEventListener(ViewNavigatorEvent.REMOVING,onRemove);
                    else {
                        currentState = "unsupported";
                        lblSupport.text = "StageWebView feature not supported";
    above code is working fine for me.

  • Displaying Image on th JSP page

    Hello All,
    I am using following code to display the image on the JSP page in my iView
    <% String PublicURL = componentRequest.getPublicResourcePath()+ "/images/Image1.gif"  ; %>
    <hbj:image id="Logo" width="70" height="35" 
                               src="<%= PublicURL %>"
                               alt= "picture Ericsson.gif" />
    Am I missing anything. I am still not able to display the image.
    Regards,
    Sanjeev

    change
    componentRequest.getPublicResourcePath()
    to
    componentRequest.getWebResourcePath()

  • HOWTO: Display a custom image on a jsp page

    You need 4 files.
    1. a jsp page (index.jsp)
    2. A servlet (myPackage.ImageMaker)
    3. A supplier class (myPackage.PluggableSupplier)
    4. web.xml (your IDE should supply this)
    From the jsp page you're calling the servlet with an <img> tag, and passing it some parameters.
    The servlet obtains a BufferedImage from a pluggable supplier class, and returns with an image (png).
    The image is displayed on the jsp page. Hope this helps!
    ================================================================================================
    Here's the .jsp file (index.jsp)
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>Image page</title>
        </head>
        <body>
        <h1>Your image:</h1>
        <img src="ImageMaker?Param1=Hello world&Param2=Hello again" />
        </body>
    </html>================================================================================================
    Here's the servlet (ImageMaker.java):
    package myPackage;
    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.image.BufferedImage;
    import java.io.*;
    import javax.imageio.ImageIO;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class ImageMaker extends HttpServlet {
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            System.out.println("called");
            //Prevent chacing of the image as it's probably intended to be 'dynamic'
            response.addDateHeader("Expires", 795294400000L); //<--long ago
            response.addHeader("Cache-Control", "no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
            response.addHeader("Pragma", "no-cache");
            //set mime type and get output stream
            response.setContentType("image/png");
            OutputStream out = response.getOutputStream();
            //catch incoming parameters, as many or few as you want
            String parameter1 = request.getParameter("Param1");
            String parameter2 = request.getParameter("Param2");
            //fetch the buffered image
            int width = 100;
            int height = 50;
            PluggableSupplier ps = new PluggableSupplier(width, height);
            BufferedImage buf = ps.fetchBI(parameter1);
            /***You can now draw on the original image if you want to add a watermark or label or whatever*********/
            Graphics g = buf.getGraphics();
            g.setColor(Color.BLACK);
            g.drawString(parameter2, 5, 30);
            try {
                System.out.println("writing...");
                ImageIO.write(buf, "png", out);
            } catch(IOException ioe) {
                System.err.println("Error writing image file: " + ioe);
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
    }================================================================================================
    This is the class that supplies your image (PluggableSupplier.java):
    package myPackage;
    import java.awt.Color;
    import java.awt.Graphics2D;
    import java.awt.image.BufferedImage;
    public class PluggableSupplier {
        BufferedImage buf = null;
        Graphics2D g2d = null;
        int width = 50;
        int height = 50;
        public PluggableSupplier(int w, int h) {
            if ((w+h)>2) {
                this.width = w;
                this.height = h;
            buf = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
            g2d = buf.createGraphics();
        public BufferedImage fetchBI(String parameter1) {
            if (g2d != null) {
                g2d.setColor(Color.RED);
                g2d.fillRect(0, 0, width, height);
                g2d.setColor(Color.WHITE);
                g2d.drawString(parameter1, 5, 15);
            return buf;
    }================================================================================================
    finally, your web.xml should look like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
        <servlet>
            <servlet-name>ImageMaker</servlet-name>
            <servlet-class>myPackage.ImageMaker</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>ImageMaker</servlet-name>
            <url-pattern>/ImageMaker</url-pattern>
        </servlet-mapping>
        <session-config>
            <session-timeout>
                30
            </session-timeout>
        </session-config>
        <welcome-file-list>
         <welcome-file>
                index.jsp
            </welcome-file>
        </welcome-file-list>
    </web-app>null

    Another trick I learned (the hard way ;))...it's a good idea to buffer the output before responding. Add the following code to the servlet, in the case of the provided example, where all the other response-related stuff are done:
    response.setBufferSize(yourBufferSize);It's a good idea to try and calculate the buffer size as accurately as possible.

  • Dynamic include file in JSP page

    <span class="value">Hi
    i have index.jsp , this page can include jsp
    pages dynamically by passing the name of the page to be included to the
    index page with out .jsp , so if i want to include page "code.jsp" i
    put: .../index.jsp?page=code , this have to include code.jsp page
    i made the following code , but it did not find the file
    so can any one help plz ?
            String pg=request.getParameter("page");
            if( pg!= null && ! "".equals(pg)){
                    File f=new File(request.getParameter("page")+".jsp");
                    if(f.exists()){
                            out.print("file exist");
                            %>
                            <jsp:include page="<%=request.getParameter("page")+".jsp" %>" />
            <%
                    }else{
                            out.print("file not exist");
         

    What does the file existing or not really have to do with it?
    You can try it like this:
    String pg=request.getParameter("page");
            if( pg!= null && ! "".equals(pg)){
                    String webPath = pg + " .jsp";
                    String realPath = request.getRealPath(webPath);
                    File f=new File(realPath);
                    if(f.exists()){
                            out.print("file exist");
                            %>
                            <jsp:include page="<%= webPath %>" />
            <%
                    }else{
                            out.print("file not exist");
            }Alternatively you could try using a request dispatcher:
    RequestDispatcher rd = request.getRequestDispatcher(webPath);
    if (rd == null){
      // doesn't exist
    }

  • CHART BUILDER ERROR WHEN TRYING TO GENERATE DYNAMIC CHARTS ON A JSP PAGE

    I'm working with J Develop 9.03 on Windows 2000 Professional Edition.
    I'm using the JSP demo files provided with Oracle Chart Builder to generate
    dynamic charts. The user specifies the query parameters, including the date
    range and the query results are returned by means of a line chart (with date on
    the x axis and values on the y axis).
    When trying to compile the project I get the following error messages:
    Error(165,2): class FileOutputStream not found in class _graph
    Error(170,5): class File not found in class _graph
    Error(176,4): exception java.io.IOException is never thrown in the
    corresponding try block
    I checked to see that the chartbuilder library (chartbuilder.jar) files are
    loaded into the project library. It's unusual that the class is not being
    found. I don't understand why. I developed my project using the following steps:
    1. Unzipped Chart Builder installation files into c:\Oraclechartbuilder
    2. Loaded chartbuilder class library
    c:\Oraclechartbuilder\chartbuilder\lib\chartbuilder.jar into J Developer class
    path (by selecting <Project Settings> <Paths> and browsing to the
    chartbuilder.jar file).
    3. Created a new JSP page in J Developer (graph.jsp)
    4. Copied JSP code syntax from the Word Pad demo file and pasted into graph.jsp
    5. Changed the DB connection parameters and static directory location on the
    JSP page.
    6. Compiled the project and received the above errors.
    I would like to know why the classes are not being found and how to fix the problem. Thanks, Jaafar

    Hi mshah101,
    This can happen if the applet is compiled using an higher version of java and the browser is pointing to an older version (even if minor version number is higher)

  • Dynamic image gallery on detail page

    I have a master page listing 8 products. I have inserted a dynamic image gallery on the detail page which looks ok, but has one major flaw: when you click on a thumbnail the main image opens on the wrong page. e.g. if you click on page ../dragons.php?id=3 the main image opens on  ../dragons.php/id=1 and shows the following url: .../dragons.php?image=btf.jpg (or whatever the image file name).
    I have only just started using php and I would appreciate some guidance on how to resolve this problem.
    The relevant sections of the code are as follows?
    $vardragon_dragons_species = "1";
    if (isset($_GET['id'])) {
      $vardragon_dragons_species = $_GET['id'];
    mysql_select_db($database_cjwebsite, $cjwebsite);
    $query_dragons_species = sprintf("SELECT dragons.Order, dragons.family, dragons.Latin, dragons.English, dragons.Img1, dragons.Img2, dragons.Img3, dragons.img4, dragons.Img5, dragons.text, `dragons gallery`.filename, `dragons gallery`.caption, dragons.id, `dragons gallery`.image_id, dragons.id FROM dragons, `dragons gallery` WHERE dragons.id = `dragons gallery`.image_id AND dragons.id=%s", GetSQLValueString($vardragon_dragons_species, "int"));
    $dragons_species = mysql_query($query_dragons_species, $cjwebsite) or die(mysql_error());
    $row_dragons_species = mysql_fetch_assoc($dragons_species);
    $totalRows_dragons_species = mysql_num_rows($dragons_species);
    if (isset($_GET['image'])) {
      $mainImage = $_GET['image'];
    else {
      $mainImage = $row_dragons_species['filename']; }
    <body>
      <div class="main_image"><img src="../images/dragons/<?php echo $mainImage; ?>" alt="<?php echo $row_dragons_species['caption']; ?>" />
      <div class="capt"><?php echo $row_dragons_species['caption']; ?></div>
    <ul class="gallery">
            <?php do {
          if ($row_dragons_species['filename'] == $mainImage) {
                     $row_dragons_species['caption'];
                   }?>
      <li><a href="<?php echo $_SERVER['PHP_SELF'];?>?image=<?php echo $row_dragons_species['filename']; ?>"><img src="../images/dragons/thumbs/<?php echo $row_dragons_species['filename']; ?>" alt="<?php echo $row_dragons_species['caption']; ?>"  /></a></li>
      <?php } while ($row_dragons_species = mysql_fetch_assoc($dragons_species)); ?>
      </ul>
    Many thanks
    CJ 

    I'm still at an early stage in building this site and because it is allvery experimental I am and just using local testing.
    So to try to explain my objective. I have a master page with 8 products  there is a link to a detail page based on product id. So from the master page (dragons.php) you can select a product which will show the product information on a detail page (eg. dragons_species.php?id=1 or dragons_species.php?id=2 etc). This works ok.
    Each detail page has various pieces of information and 5 images. I wanted to show the images in an image gallery format and so used the code you provide in your book PHP Solutions (Creating a Dynamic Online Gallery pp.323-330). This works ok on the first page where id=1, but on subsequent pages (id=2, id=3 etc) I am loosing the id link infavour of an image based link.
    This is the complete script for my detail page (dragons_species.php)
    <?php require_once('../Connections/cjwebsite.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $vardragon_dragons_species = "1";
    if (isset($_GET['id'])) {
      $vardragon_dragons_species = $_GET['id'];
    mysql_select_db($database_cjwebsite, $cjwebsite);
    $query_dragons_species = sprintf("SELECT dragons.Order, dragons.family, dragons.Latin, dragons.English, dragons.Img1, dragons.Img2, dragons.Img3, dragons.img4, dragons.Img5, dragons.text, `dragons gallery`.filename, `dragons gallery`.caption, dragons.id, `dragons gallery`.image_id, dragons.id FROM dragons, `dragons gallery` WHERE dragons.id = `dragons gallery`.image_id AND dragons.id=%s", GetSQLValueString($vardragon_dragons_species, "int"));
    $dragons_species = mysql_query($query_dragons_species, $cjwebsite) or die(mysql_error());
    $row_dragons_species = mysql_fetch_assoc($dragons_species);
    $totalRows_dragons_species = mysql_num_rows($dragons_species);
    if (isset($_GET['image'])) {
      $mainImage = $_GET['image'];
    else {
      $mainImage = $row_dragons_species['filename']; }
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Odonata Species</title>
    <link href="../Css/dragons.css" rel="stylesheet" type="text/css" />
    <link href="../Css/menu.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="header">
      <?php include('../Includes/logo2.inc.php'); ?>
    </div>
    <div id="content"> <div id="title">
      <h1>Damselflies &amp; Dragonflies</h1>
    </div>
    <div class="family")><?php echo $row_dragons_species['Order']; ?></div>
    <div class="subfamily">
      <?php echo $row_dragons_species['family']; ?>
      <div class="main_image"><img src="../images/dragons/<?php echo $mainImage; ?>"   alt="<?php echo $row_dragons_species['caption']; ?>" />
       <div class="capt"><?php echo $row_dragons_species['caption']; ?></div></div></  
       <div class="description">
        <div class="text" id="name"><?php echo $row_dragons_species['Latin']; ?></div>
        <div  id="vernname"><?php echo $row_dragons_species['English']; ?></div>
      <?php echo $row_dragons_species['text']; ?></div>
    <ul class="gallery">
            <?php do {
                      if ($row_dragons_species['filename'] == $mainImage) {
                     $row_dragons_species['caption'];
                   }?>
    <li><a href="<?php echo $_SERVER['PHP_SELF'];?>?image=<?php echo $row_dragons_species['filename']; ?>"><img src="../images/dragons/thumbs/<?php echo $row_dragons_species['filename']; ?>" alt="<?php echo $row_dragons_species['caption']; ?>"  /></a></li>
      <?php } while ($row_dragons_species = mysql_fetch_assoc($dragons_species)); ?>
      </ul>
      <div id="footer">
        <?php include('../includes/footer.inc.php'); ?>
    </div></div>
    </div>
    </body>
    </html>
    <?php
    mysql_free_result($dragons_species);
    ?>
    The code for my master page dragons.php is as follows
    <?php require_once('../Connections/cjwebsite.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    mysql_select_db($database_cjwebsite, $cjwebsite);
    $query_dragons_species = "SELECT id, Latin, English, Thumbs FROM dragons";
    $dragons_species = mysql_query($query_dragons_species, $cjwebsite) or die(mysql_error());
    $row_dragons_species = mysql_fetch_assoc($dragons_species);
    $totalRows_dragons_species = mysql_num_rows($dragons_species);mysql_select_db($database_cjwebsite, $cjwebsite);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Odonata</title>
    <link href="../Css/menu.css" rel="stylesheet" type="text/css" />
    <link href="../Css/dragons.css" rel="stylesheet" type="text/css" />
    <body>
    <div id="header">
    <?php include('../Includes/logo2.inc.php'); ?></div>
    <div id="content"> <div id="title">
    <h1>Damselflies</a> & Dragonflies</h1>
    <div id="sidebar">
    <?php include('../Includes/menu2.inc.php'); ?>
    <div id="text">
    <h2>ODONATA</h2>
        </h2>
      <p>Ten species have been recorded on the islands, of which seven are common and widely distributed. The Golden-ringed Dragonfly and the Emerald Damselfly are both very scarce, whilst the record of the Azure-winged Dragonfly on Lewis is unconfirmed.   
           <?php do { ?>
        <div class="speciesbox"><a href="Dragons_species.php?id=<?php echo $row_dragons_species['id']; ?>"><img src="../images/dragons/thumbs/<?php echo $row_dragons_species['Thumbs']; ?>" /></a>
            <div class="latin"><a href="Dragons_species.php?id=<?php echo $row_dragons_species['id']; ?>"><?php echo $row_dragons_species['Latin']; ?></a>
              <div class="english"><a href="Dragons_species.php?id=<?php echo $row_dragons_species['id']; ?>"><?php echo $row_dragons_species['English']; ?></a> </div>
        </div></div>
      <?php } while ($row_dragons_species = mysql_fetch_assoc($dragons_species)); ?> </div>
    <div id="footer">
        <?php include('../includes/footer.inc.php'); ?>
    </div>
    </body>
    </html>
    <?php
    mysql_free_result($dragons_species);
    ?>
    Does this shed any light?
    Many thanks
    CJ.

  • Is it possible for Backing Bean to drive  the rendering of  JSP page ?

    Any thoughts on this ......
    "Backing Beans should drive the rendering of first jsp page in the application " and not jsp page driving the backing bean or not to put some kind of hard coding in jsp page to see if its admin user then display certain set of UI Components or certain set of other UI components for other users.
    As we have atleast 10 different Roles and there can be Composite Roles i.e. combination of two roles. In this case how does the Backing Bean drives the rendering just the first jsp page in the application?
    Regards
    Bansi

    You can connect to it with file sharing, but you won't be able to use it as an installation source. In other words, you won't be able to reboot the G4 and see that drive over the network to boot from it.
    If your G4's optical drive is consistently problematic, you could replace it quite easily and cheaply (if it's a desktop), or you might look at external optical drives.
    Matt

  • Slow rendering of JSP pages

    Hello,
    We are in the process of upgrading iPlanet 4.1 to 6.1Sp2. We have made enhancements to our code to support this effort, ie making our session bean serializable, adding the context dir in jsp to jsp calls.
    Right now we are noticing slow rendering speed for jsp pages compared to iPlanet 4.1. It seems the page loads to a certain point, there is about 2-4 second delay before the page completes loading.
    I've activated the monitor for performance statistics.
    Here is the perf dump.
    webservd pid: 8109
    Sun ONE Web Server 6.1SP2 B04/07/2004 16:09 (SunOS DOMESTIC)
    Server started Tue Jul 13 10:33:08 2004
    Process 8109 started Tue Jul 13 10:33:08 2004
    ConnectionQueue:
    Current/Peak/Limit Queue Length 0/1/4096
    Total Connections Queued 11
    Average Queue Length (1, 5, 15 minutes) 0.00, 0.00, 0.00
    Average Queueing Delay 0.15 milliseconds
    ListenSocket group1:
    Address http://10.201.1.53:80
    Acceptor Threads 1
    Default Virtual Server https-infa.net
    KeepAliveInfo:
    KeepAliveCount 2/256
    KeepAliveHits 44
    KeepAliveFlushes 0
    KeepAliveRefusals 0
    KeepAliveTimeouts 8
    KeepAliveTimeout 30 seconds
    SessionCreationInfo:
    Active Sessions 2
    Keep-Alive Sessions 0
    Total Sessions Created 48/256
    CacheInfo:
    enabled yes
    CacheEntries 27/1024
    Hit Ratio 82/140 ( 58.57%)
    Maximum Age 30
    Native pools:
    NativePool:
    Idle/Peak/Limit 1/1/128
    Work Queue Length/Peak/Limit 0/0/0
    Server DNS cache disabled
    Async DNS disabled
    Performance Counters:
    Average Total Percent
    Total number of requests: 57
    Request processing time: 1.2522 71.3780
    default-bucket (Default bucket)
    Number of Requests: 57 (100.00%)
    Number of Invocations: 866 (100.00%)
    Latency: 0.0003 0.0174 ( 0.02%)
    Function Processing Time: 1.2519 71.3606 ( 99.98%)
    Total Response Time: 1.2522 71.3780 (100.00%)
    Sessions:
    Process Status Function
    8109 response service-dump
    response service-j2ee

    Here is a sample of jsp that renders partially. Each page renders to the same spot for that page, then there is a 5-10 second delay before the page finishes.
    <-- Partial Page rendered -->
    <HTML>
    <HEAD>
    <TITLE> FAST : Health Check</TITLE>
    <link rel="stylesheet" type="text/css" href="/styles/table.css">
    <script>
    <!--
    if (top.location != location) top.location.href = location.href;
    //-->
    </script>
    </HEAD>
    <BODY BACKGROUND="/graphics/BACK25.jpg" BGPROPERTIES="FIXED">
    <SCRIPT>
    var menuBarOption = "";
    </SCRIPT>
    <SCRIPT>
    <!-- Begin
    var activeColor = "#COCOCO";
    var inActiveColor = "#000066";
    var whatColor = "#000066";
    var fontColor = "#COCOCO";
    document.write('<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="780" height="80">');
    document.write('<TR>');
    document.write('<TD ALIGN="right" width="300" rowspan="2" bgcolor="#FFFFFF" valign="bottom"><a href="/"><img border="0" src="/graphics/infaheadbig2.jpg" align="absbottom" width="300" height="80"></a>');
    document.write('</TD>');
    document.write('<TD ALIGN="right" valign="bottom" bgcolor="#FFFFFF">');
    document.write('<table border="0" cellspacing="0" cellpadding="2" valign="bottom">');
    document.write(' <tr>');
    document.write('<td align="center">');
    document.write('<font face="Arial" size="1" color="#FFFFFF"><a target="_blank" href="http://www.forwardair.com"  style="color: red">www.ForwardAir.com</a>&nbsp</font><b><font size="3" color="#D3D0D5" face="Verdana"> | </font></b>');
    document.write('<font face="Arial" size="1" color="#FFFFFF"><a href="/" style="color: #000066">Home</a>&nbsp</font><b><font size="3" color="#D3D0D5" face="Verdana"> | </font></b>');
    document.write('<font face="Arial" size="1" color="#FFFFFF"><a href="/servlet/salesCRM/logon.jsp"  style="color: #000066">Sales & Marketing</a>&nbsp</font><b><font size="3" color="#D3D0D5" face="Verdana"> | </font></b>');
    document.write('<font face="Arial" size="1" color="#FFFFFF"><a href="/servlet/operations/logon.jsp" style="color: #000066">Operations</a>&nbsp</font><b><font size="3" color="#D3D0D5" face="Verdana"> | </font></b>');
    document.write('<font face="Arial" size="1" color="#FFFFFF"><a href="/servlet/corporate/login.jsp" style="color: #000066">Corporate</a>&nbsp</font><b><font size="3" color="#D3D0D5" face="Verdana"> | </font></b>');
    document.write('<font face="Arial" size="1" color="#FFFFFF"><a href="/fast/fast.htm" style="color: #000066">FAST</a></font>');
    document.write('</td>');
    document.write(' </tr>');
    document.write('</table>');
    document.write('</TD>');
    document.write('</TR>');
    document.write('<TR>');
    document.write('<TD ALIGN="left" bgColor="#FFFFFF" valign="bottom">');
    document.write('<table border="0" cellspacing="1" width="100%">');
    document.write('<tr>');
    whatColor = inActiveColor;
    fontColor = activeColor;
    if (menuBarOption == "AIRBILLS") {
       whatColor = activeColor;
       fontColor = inActiveColor;
    document.write('<td align="center" bgcolor="' + whatColor + '" valign="top" width="70"><font face="Arial" size="1" color="' +  fontColor + '">Airbills<br>');
    document.write('<a href="/servlet/airbills/fatnt.jsp">');
    document.write('<img border="0" src="/graphics/boxicon.gif" width="32" height="32"></a></font></td>');
    whatColor = inActiveColor;
    fontColor = activeColor;
    if (menuBarOption == "EMPLOYEES") {
       whatColor = activeColor;
       fontColor = inActiveColor;
    document.write('<td align="center" bgcolor="' + whatColor + '" valign="top" width="70"><font face="Arial" size="1" color="' +  fontColor + '">Directory<br>');
    document.write('<a href="/directory.htm">');
    document.write('<img border="0" src="/graphics/peopleicon.gif" width="32" height="32"></a></font></td>');
    whatColor = inActiveColor;
    fontColor = activeColor;
    if (menuBarOption == "BENEFITS") {
       whatColor = activeColor;
       fontColor = inActiveColor;
    document.write('<td align="center" bgcolor="' + whatColor + '" valign="top" width="70"><font face="Arial" size="1" color="' +  fontColor + '">Benefits<br>');
    document.write('<a href="/employees/benefits.htm">');
    document.write('<img border="0" src="/graphics/moneyicon.gif" width="32" height="32"></a></font></td>');
    whatColor = inActiveColor;
    fontColor = activeColor;
    if (menuBarOption == "FORMS") {
       whatColor = activeColor;
       fontColor = inActiveColor;
    document.write('<td align="center" bgcolor="' + whatColor + '" valign="top" width="70"><font face="Arial" size="1" color="' +  fontColor + '">Forms<br>');
    document.write('<a href="/forms.htm">');
    document.write('<img border="0" src="/graphics/formicon2.gif" width="32" height="32"></a></font></td>');
    whatColor = inActiveColor;
    fontColor = activeColor;
    if (menuBarOption == "NEWS") {
       whatColor = activeColor;
       fontColor = inActiveColor;
    document.write('<td align="center" bgcolor="' + whatColor + '" valign="top" width="70"><font face="Arial" size="1" color="' +  fontColor + '">News<br>');
    document.write('<a href="/news.htm">');
    document.write('<img border="0" src="/graphics/newsicon.gif" width="32" height="32"></a></font></td>');
    whatColor = inActiveColor;
    fontColor = activeColor;
    if (menuBarOption == "TOOLS") {
       whatColor = activeColor;
       fontColor = inActiveColor;
    document.write('<td align="center" bgcolor="' + whatColor + '" valign="top" width="70"><font face="Arial" size="1" color="' +  fontColor + '">Tools<br>');
    document.write('<a href="/tools.htm">');
    document.write('<img border="0" src="/graphics/toolsicon.gif" width="32" height="32"></a></font></td>');
    whatColor = inActiveColor;
    fontColor = activeColor;
    if (menuBarOption == "SEARCH") {
       whatColor = activeColor;
       fontColor = inActiveColor;
    document.write('<td align="center" bgcolor="' + whatColor + '" valign="top" width="70"><font face="Arial" size="1" color="' +  fontColor + '">Search<br>');
    document.write('<a href="/search.htm">');
    document.write('<img border="0" src="/graphics/magglassicon.gif" width="32" height="32"></a></font></td>');
    document.write('</TR>');
    document.write('</TABLE>');
    document.write('</TD>');
    document.write('</TABLE>');
    // End -->
    </SCRIPT>
    <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>
    <TR>
    <TD width="85" height="600" bgcolor="#000066" VALIGN="TOP">
    <BR>
    <SCRIPT>
    var publicSCRMOption  = "PROCESSES";
    </SCRIPT>
    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
    <TR><TD height="15" NOWRAP>
    <FONT SIZE="-2" FACE="verdana, arial, helvetica" COLOR="#FFFFFF">
    <STRONG>  FAST Menu </STRONG></FONT>
    </TD></TR>
    <TR><TD height="15" NOWRAP>
    <SCRIPT>
    if (publicSCRMOption == "WEBTRENDS")
         document.write('  <img border="0" src="/salesCRM/graphics/rarrow.gif" width="8" height="12">');
    else
         document.write(' ');
    </SCRIPT>
    <A HREF="/fast/fast.htm"><FONT SIZE="-2" FACE="verdana, arial, helvetica" COLOR="#FFCC66">
    <SPAN STYLE="{text-decoration:none}"><STRONG> WebTrends</STRONG></SPAN></FONT></A>
    </TD></TR>
    <TR><TD height="15" NOWRAP>
    <SCRIPT>
    if (publicSCRMOption == "PREMIER")
         document.write('  <img border="0" src="/salesCRM/graphics/rarrow.gif" width="8" height="12">');
    else
         document.write(' ');
    </SCRIPT>
    <A HREF="/servlet/fast/premierLogin.jsp"><FONT SIZE="-2" FACE="verdana, arial, helvetica" COLOR="#FFCC66">
    <SPAN STYLE="{text-decoration:none}"><STRONG> Premier</STRONG></SPAN></FONT></A>
    </TD></TR>
    <TR><TD height="15" NOWRAP>
    <SCRIPT>
    if (publicSCRMOption == "PROCESSES")
         document.write('  <img border="0" src="/salesCRM/graphics/rarrow.gif" width="8" height="12">');
    else
         document.write(' ');
    </SCRIPT>
    <A HREF="/servlet/faf.unix.servlet.GetHealthCheckServlet"><FONT SIZE="-2" FACE="verdana, arial, helvetica" COLOR="#FFCC66">
    <SPAN STYLE="{text-decoration:none}"><STRONG> Processes</STRONG></SPAN></FONT></A>
    </TD></TR>
    <TR><TD height="15" NOWRAP>
    <SCRIPT>
    if (publicSCRMOption == "EDISTATUS")
         document.write('  <img border="0" src="/salesCRM/graphics/rarrow.gif" width="8" height="12">');
    else
         document.write(' ');
    </SCRIPT>
    <A HREF="/servlet/faf.unix.servlet.GetEDIStatusServlet"><FONT SIZE="-2" FACE="verdana, arial, helvetica" COLOR="#FFCC66">
    <SPAN STYLE="{text-decoration:none}"><STRONG> EDI</STRONG></SPAN></FONT></A>
    </TD></TR>
    <TR><TD height="15" NOWRAP>
    <SCRIPT>
    if (publicSCRMOption == "SANIT<--- End of Partial Page --->
    This is the complete page which take about 5-10 seconds
    <--- Beginning of Completed Page --->
    <HTML>
    <HEAD>
    <TITLE> FAST : Health Check</TITLE>
    <link rel="stylesheet" type="text/css" href="/styles/table.css">
    <script>
    <!--
    if (top.location != location) top.location.href = location.href;
    //-->
    </script>
    </HEAD>
    <BODY BACKGROUND="/graphics/BACK25.jpg" BGPROPERTIES="FIXED">
    <SCRIPT>
    var menuBarOption = "";
    </SCRIPT>
    <SCRIPT>
    <!-- Begin
    var activeColor = "#COCOCO";
    var inActiveColor = "#000066";
    var whatColor = "#000066";
    var fontColor = "#COCOCO";
    document.write('<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="780" height="80">');
    document.write('<TR>');
    document.write('<TD ALIGN="right" width="300" rowspan="2" bgcolor="#FFFFFF" valign="bottom"><a href="/"><img border="0" src="/graphics/infaheadbig2.jpg" align="absbottom" width="300" height="80"></a>');
    document.write('</TD>');
    document.write('<TD ALIGN="right" valign="bottom" bgcolor="#FFFFFF">');
    document.write('<table border="0" cellspacing="0" cellpadding="2" valign="bottom">');
    document.write(' <tr>');
    document.write('<td align="center">');
    document.write('<font face="Arial" size="1" color="#FFFFFF"><a target="_blank" href="http://www.forwardair.com"  style="color: red">www.ForwardAir.com</a>&nbsp</font><b><font size="3" color="#D3D0D5" face="Verdana"> | </font></b>');
    document.write('<font face="Arial" size="1" color="#FFFFFF"><a href="/" style="color: #000066">Home</a>&nbsp</font><b><font size="3" color="#D3D0D5" face="Verdana"> | </font></b>');
    document.write('<font face="Arial" size="1" color="#FFFFFF"><a href="/servlet/salesCRM/logon.jsp"  style="color: #000066">Sales & Marketing</a>&nbsp</font><b><font size="3" color="#D3D0D5" face="Verdana"> | </font></b>');
    document.write('<font face="Arial" size="1" color="#FFFFFF"><a href="/servlet/operations/logon.jsp" style="color: #000066">Operations</a>&nbsp</font><b><font size="3" color="#D3D0D5" face="Verdana"> | </font></b>');
    document.write('<font face="Arial" size="1" color="#FFFFFF"><a href="/servlet/corporate/login.jsp" style="color: #000066">Corporate</a>&nbsp</font><b><font size="3" color="#D3D0D5" face="Verdana"> | </font></b>');
    document.write('<font face="Arial" size="1" color="#FFFFFF"><a href="/fast/fast.htm" style="color: #000066">FAST</a></font>');
    document.write('</td>');
    document.write(' </tr>');
    document.write('</table>');
    document.write('</TD>');
    document.write('</TR>');
    document.write('<TR>');
    document.write('<TD ALIGN="left" bgColor="#FFFFFF" valign="bottom">');
    document.write('<table border="0" cellspacing="1" width="100%">');
    document.write('<tr>');
    whatColor = inActiveColor;
    fontColor = activeColor;
    if (menuBarOption == "AIRBILLS") {
       whatColor = activeColor;
       fontColor = inActiveColor;
    document.write('<td align="center" bgcolor="' + whatColor + '" valign="top" width="70"><font face="Arial" size="1" color="' +  fontColor + '">Airbills<br>');
    document.write('<a href="/servlet/airbills/fatnt.jsp">');
    document.write('<img border="0" src="/graphics/boxicon.gif" width="32" height="32"></a></font></td>');
    whatColor = inActiveColor;
    fontColor = activeColor;
    if (menuBarOption == "EMPLOYEES") {
       whatColor = activeColor;
       fontColor = inActiveColor;
    document.write('<td align="center" bgcolor="' + whatColor + '" valign="top" width="70"><font face="Arial" size="1" color="' +  fontColor + '">Directory<br>');
    document.write('<a href="/directory.htm">');
    document.write('<img border="0" src="/graphics/peopleicon.gif" width="32" height="32"></a></font></td>');
    whatColor = inActiveColor;
    fontColor = activeColor;
    if (menuBarOption == "BENEFITS") {
       whatColor = activeColor;
       fontColor = inActiveColor;
    document.write('<td align="center" bgcolor="' + whatColor + '" valign="top" width="70"><font face="Arial" size="1" color="' +  fontColor + '">Benefits<br>');
    document.write('<a href="/employees/benefits.htm">');
    document.write('<img border="0" src="/graphics/moneyicon.gif" width="32" height="32"></a></font></td>');
    whatColor = inActiveColor;
    fontColor = activeColor;
    if (menuBarOption == "FORMS") {
       whatColor = activeColor;
       fontColor = inActiveColor;
    document.write('<td align="center" bgcolor="' + whatColor + '" valign="top" width="70"><font face="Arial" size="1" color="' +  fontColor + '">Forms<br>');
    document.write('<a href="/forms.htm">');
    document.write('<img border="0" src="/graphics/formicon2.gif" width="32" height="32"></a></font></td>');
    whatColor = inActiveColor;
    fontColor = activeColor;
    if (menuBarOption == "NEWS") {
       whatColor = activeColor;
       fontColor = inActiveColor;
    document.write('<td align="center" bgcolor="' + whatColor + '" valign="top" width="70"><font face="Arial" size="1" color="' +  fontColor + '">News<br>');
    document.write('<a href="/news.htm">');
    document.write('<img border="0" src="/graphics/newsicon.gif" width="32" height="32"></a></font></td>');
    whatColor = inActiveColor;
    fontColor = activeColor;
    if (menuBarOption == "TOOLS") {
       whatColor = activeColor;
       fontColor = inActiveColor;
    document.write('<td align="center" bgcolor="' + whatColor + '" valign="top" width="70"><font face="Arial" size="1" color="' +  fontColor + '">Tools<br>');
    document.write('<a href="/tools.htm">');
    document.write('<img border="0" src="/graphics/toolsicon.gif" width="32" height="32"></a></font></td>');
    whatColor = inActiveColor;
    fontColor = activeColor;
    if (menuBarOption == "SEARCH") {
       whatColor = activeColor;
       fontColor = inActiveColor;
    document.write('<td align="center" bgcolor="' + whatColor + '" valign="top" width="70"><font face="Arial" size="1" color="' +  fontColor + '">Search<br>');
    document.write('<a href="/search.htm">');
    document.write('<img border="0" src="/graphics/magglassicon.gif" width="32" height="32"></a></font></td>');
    document.write('</TR>');
    document.write('</TABLE>');
    document.write('</TD>');
    document.write('</TABLE>');
    // End -->
    </SCRIPT>
    <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>
    <TR>
    <TD width="85" height="600" bgcolor="#000066" VALIGN="TOP">
    <BR>
    <SCRIPT>
    var publicSCRMOption  = "PROCESSES";
    </SCRIPT>
    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="LEFT">
    <TR><TD height="15" NOWRAP>
    <FONT SIZE="-2" FACE="verdana, arial, helvetica" COLOR="#FFFFFF">
    <STRONG>  FAST Menu </STRONG></FONT>
    </TD></TR>
    <TR><TD height="15" NOWRAP>
    <SCRIPT>
    if (publicSCRMOption == "WEBTRENDS")
         document.write('  <img border="0" src="/salesCRM/graphics/rarrow.gif" width="8" height="12">');
    else
         document.write(' ');
    </SCRIPT>
    <A HREF="/fast/fast.htm"><FONT SIZE="-2" FACE="verdana, arial, helvetica" COLOR="#FFCC66">
    <SPAN STYLE="{text-decoration:none}"><STRONG> WebTrends</STRONG></SPAN></FONT></A>
    </TD></TR>
    <TR><TD height="15" NOWRAP>
    <SCRIPT>
    if (publicSCRMOption == "PREMIER")
         document.write('  <img border="0" src="/salesCRM/graphics/rarrow.gif" width="8" height="12">');
    else
         document.write(' ');
    </SCRIPT>
    <A HREF="/servlet/fast/premierLogin.jsp"><FONT SIZE="-2" FACE="verdana, arial, helvetica" COLOR="#FFCC66">
    <SPAN STYLE="{text-decoration:none}"><STRONG> Premier</STRONG></SPAN></FONT></A>
    </TD></TR>
    <TR><TD height="15" NOWRAP>
    <SCRIPT>
    if (publicSCRMOption == "PROCESSES")
         document.write('  <img border="0" src="/salesCRM/graphics/rarrow.gif" width="8" height="12">');
    else
         document.write(' ');
    </SCRIPT>
    <A HREF="/servlet/faf.unix.servlet.GetHealthCheckServlet"><FONT SIZE="-2" FACE="verdana, arial, helvetica" COLOR="#FFCC66">
    <SPAN STYLE="{text-decoration:none}"><STRONG> Processes</STRONG></SPAN></FONT></A>
    </TD></TR>
    <TR><TD height="15" NOWRAP>
    <SCRIPT>
    if (publicSCRMOption == "EDISTATUS")
         document.write('  <img border="0" src="/salesCRM/graphics/rarrow.gif" width="8" height="12">');
    else
         document.write(' ');
    </SCRIPT>
    <A HREF="/servlet/faf.unix.servlet.GetEDIStatusServlet"><FONT SIZE="-2" FACE="verdana, arial, helvetica" COLOR="#FFCC66">
    <SPAN STYLE="{text-decoration:none}"><STRONG> EDI</STRONG></SPAN></FONT></A>
    </TD></TR>
    <TR><TD height="15" NOWRAP>
    <SCRIPT>
    if (publicSCRMOption == "SANITYCHECK")
         document.write('  <img border="0" src="/salesCRM/graphics/rarrow.gif" width="8" height="12">');
    else
         document.write(' ');
    </SCRIPT>
    <A HREF="/servlet/faf.unix.servlet.GetSanityCheckDiagnosticServlet"><FONT SIZE="-2" FACE="verdana, arial, helvetica" COLOR="#FFCC66">
    <SPAN STYLE="{text-decoration:none}"><STRONG>Sanity Check</STRONG></SPAN></FONT></A>
    </TD></TR>
    <TR><TD height="15" NOWRAP>
    <SCRIPT>
    if (publicSCRMOption == "FASTBOOK")
         document.write('  <img border="0" src="/salesCRM/graphics/rarrow.gif" width="8" height="12">');
    else
         document.write(' ');
    </SCRIPT>
    <A HREF="/fast/fastBook.htm"><FONT SIZE="-2" FACE="verdana, arial, helvetica" COLOR="#FFCC66">
    <SPAN STYLE="{text-decoration:none}"><STRONG> FAST Book</STRONG></SPAN></FONT></A>
    </TD></TR>
    <TR><TD height="15" NOWRAP>
    <SCRIPT>
    if (publicSCRMOption == "AWBREPORT")
         document.write('  <img border="0" src="/salesCRM/graphics/rarrow.gif" width="8" height="12">');
    else
         document.write(' ');
    </SCRIPT>
    <A HREF="/servlet/faf.unix.servlet.AWBCountReportServlet"><FONT SIZE="-2" FACE="verdana, arial, helvetica" COLOR="#FFCC66">
    <SPAN STYLE="{text-decoration:none}"><STRONG>AWB Report</STRONG></SPAN></FONT></A>
    </TD></TR>
    </TABLE>
    </TD>
    <TD width="715" VALIGN="TOP">
    <DIV ALIGN="right">
    <font size="1" color='black'><script LANGUAGE="JavaScript" SRC="/date.js"></script></font>
    </DIV>
    <H4>   Process - Health Check</H4>
    <form  name="processes" method="POST">
    <BLOCKQUOTE>
    AS400 DATA PULL - HEALTH CHECK (For IT Personnel Use)
    <BR><BR>
    <table border="1" bordercolordark="#003366" bordercolorlight="#003366" cellpadding="4" cellspacing="0" width="90%">
    <tr bgcolor="#003366">
    <TD align="center"><b><font color="#ffffff" size="2">NAME</b></font></TD>
    <TD align="center"><b><font color="#ffffff" size="2">RUN</b></font></TD>
    <TD align="center"><b><font color="#ffffff" size="2">STARTED</b></font></TD>
    <TD align="center"><b><font color="#ffffff" size="2">FINISHED</b></font></TD>
    <TD align="center"><b><font color="#ffffff" size="2">FLAG</b></font></TD>
    <TD align="center"><b><font color="#ffffff" size="2">RECOVERY</b></font></TD>
    </tr>
    <tr bgcolor="#FFFFFF">
    <TD align='center'> CLIENTAR </TD><TD align='center'> Daily </TD><TD align='left'> 6/30/04 9:56 AM </TD><TD align='left'> 6/30/04 10:00 AM </TD><TD align='center'> SUCCESS </TD><TD align='left'> RESTART THE PROCESS </TD>
    </tr>
    <tr bgcolor="#FFFFFF">
    <TD align='center'> CONTAINERALERT </TD><TD align='center'> DAILY </TD><TD align='left'> 6/23/04 6:00 AM </TD><TD align='left'> 6/23/04 6:00 AM </TD><TD align='center'> SUCCESS </TD><TD align='left'> RESTART THE PROCESS </TD>
    </tr>
    <tr bgcolor="#FFFFFF">
    <TD align='center'> DAYMONTHREVENUE </TD><TD align='center'> Daily </TD><TD align='left'> 6/23/04 5:20 AM </TD><TD align='left'> 6/23/04 5:39 AM </TD><TD align='center'> SUCCESS </TD><TD align='left'>   </TD>
    </tr>
    <tr bgcolor="#FFFFFF">
    <TD align='center'> FADAILYREVENUE </TD><TD align='center'> Daily </TD><TD align='left'> 6/30/04 10:13 AM </TD><TD align='left'> 6/30/04 10:19 AM </TD><TD align='center'> SUCCESS </TD><TD align='left'> RESTART THE PROCESS </TD>
    </tr>
    <tr bgcolor="#FFFFFF">
    <TD align='center'> FAONTIMECOMPLIANCE </TD><TD align='center'> Daily </TD><TD align='left'> 7/15/04 2:44 PM </TD><TD align='left'> 7/15/04 2:47 PM </TD><TD align='center'> SUCCESS </TD><TD align='left'>   </TD>
    </tr>
    <tr bgcolor="#FFFFFF">
    <TD align='center'> FAPAYROLLLOCS </TD><TD align='center'> WEEKLY </TD><TD align='left'> 6/18/04 4:30 PM </TD><TD align='left'> 6/18/04 4:30 PM </TD><TD align='center'> SUCCESS </TD><TD align='left'> RESTART THE PROCESS </TD>
    </tr>
    <tr bgcolor="#FFFFFF">
    <TD align='center'> FAPROCESS </TD><TD align='center'> Daily </TD><TD align='left'> 6/23/04 4:00 AM </TD><TD align='left'> 6/23/04 4:02 AM </TD><TD align='center'> SUCCESS </TD><TD align='left'> RESTART THE PROCESS </TD>
    </tr>
    <tr bgcolor="#FFFFFF">
    <TD align='center'> FATIMESHEET </TD><TD align='center'> WEEKLY </TD><TD align='left'> 6/18/04 4:30 PM </TD><TD align='left'> 6/18/04 4:39 PM </TD><TD align='center'> SUCCESS </TD><TD align='left'> CLEAR DB AND RESTART PROCESS </TD>
    </tr>
    <tr bgcolor="#FFFFFF">
    <TD align='center'> FAVOLUME </TD><TD align='center'> Daily </TD><TD align='left'> 6/30/04 10:30 AM </TD><TD align='left'> 6/30/04 4:15 PM </TD><TD align='center'> SUCCESS </TD><TD align='left'> RESTART THE PROCESS </TD>
    </tr>
    <tr bgcolor="#FFFFFF">
    <TD align='center'> HP_EMPEXTRACT </TD><TD align='center'> Daily </TD><TD align='left'> 7/26/04 7:10 AM </TD><TD align='left'> 7/26/04 7:10 AM </TD><TD align='center'> SUCCESS </TD><TD align='left'> RESTART THE PROCESS </TD>
    </tr>
    <tr bgcolor="#FFFFFF">
    <TD align='center'> HP_HOURSLOAD </TD><TD align='center'> Daily </TD><TD align='left'> 7/26/04 7:10 AM </TD><TD align='left'> 7/26/04 7:10 AM </TD><TD align='center'> SUCCESS </TD><TD align='left'> RESTART THE PROCESS </TD>
    </tr>
    <tr bgcolor="#FFFFFF">
    <TD align='center'> HP_PUNCHPROCESS </TD><TD align='center'> Daily </TD><TD align='left'> 7/26/04 7:10 AM </TD><TD align='left'> 7/26/04 7:10 AM </TD><TD align='center'> SUCCESS </TD><TD align='left'> RESTART THE PROCESS </TD>
    </tr>
    <tr bgcolor="#FFFFFF">
    <TD align='center'> MONTHLYVOLUME </TD><TD align='center'> Monthly </TD><TD align='left'> 6/1/04 12:00 AM </TD><TD align='left'> 6/1/04 12:11 AM </TD><TD align='center'> SUCCESS </TD><TD align='left'> RESTART THE PROCESS </TD>
    </tr>
    <tr bgcolor="#FFFFFF">
    <TD align='center'> PREPAIDRATEMAP </TD><TD align='center'> DAILY </TD><TD align='left'> 6/29/04 10:26 AM </TD><TD align='left'> 6/29/04 10:38 AM </TD><TD align='center'> SUCCESS </TD><TD align='left'> RESTART THE PROCESS </TD>
    </tr>
    <TR bgcolor="#FFFFFF">
    <TD colspan="6" align="center">
    <B>Total records returned : 14</B>
    </TD>
    </TR>
    </TABLE>
    </form>
    </BLOCKQUOTE>
    <script LANGUAGE="JavaScript" SRC="/publicFooter.js"></script>
    </TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML><--- End of Complete page --->

  • Displaying a dynamic image in a jsp

    I am interested in the way of dynamically generating an image in a web browser. The image should be formed on the servlet, more precisely with the aid of a servlet, and reloaded in the web browser every time it suffers modifications (for example, elements are drawn). The drawing and displaying part is already functioning not as a server application, but as a desktop one. The result of the drawing actions are displayed in a Bufferd Image view. What I have to do is to display this image in the browser, encoded as a gif (I already know how to do the encoding part).
    //code from TheServlet.java
    ImageViewPort view = new ImageViewPort(600, 600); // BufferedImage type
    Image image = view;
    g = image.getGraphics();
    response.setContentType("image/gif");
    GifEncoder encoder = new GifEncoder(image, out);
    encoder.encode();
    How would I correctly reference in the HTML form this servlet? In the HTML form I have to display the dynamically created GIF image as a server side image map?
    // code from the HTML form
    <img WIDTH=600 HEIGHT=600 BORDER="2" src="http://localhost:8080/servlet/TheServlet");
    ISMAP/>
    How should be written the source of these image map?

    you can use AJAX for this.. google maps is using ajax for rendering their maps..

  • Passing a Dynamic value to a .JSP page when u click the hyperlink?

    Hi,
    I am displaying table with some Dynamic datas. I am iterating a list which contains the values are i am populating it in a <td> of the table.
    Like:-
    <table>
    <%
    ArrayList envNamesList=envDTO.getEnvName();
    if(envNamesList.size()>0){
    Iterator itr=envNamesList.iterator();
    while(itr.hasNext()){
    String envNames=(String)itr.next();
    %>
    <tr>
    <td align="center" ><font size="2"><%=envNames%></font></td>
    <td align="center" ><font size="2"> </font></td>
    <td align="center" ><font size="2"> </font></td>
    </tr>
    <%
    %>
    </table>
    </body>
    </html>
    Here the envNames contains a list of values which will be displayed dynamically like
    Env1
    En2
    En3
    So when i click a particular envname say Env1, i need to pass this value as a query string to another envView.jsp. So that for that particular Env1, i can display the related data.
    So, my ques. is how to get the particular envname which is been clicked (href)?
    Please do provide an answer for this.
    Thanx,
    JavaCrazyLover

    Pass it as a GET parameter. The 'envNames' is already available to you inside that loop where you create links.

  • Display BLOB Image in a JSP page.

    Hi, Is there any easy way to display a Image in the browser using a JSP and an Oracle BLOB. I would like any code examples that anyone can provide me. I would like as many ways to do this as possible.
    Thanks Brian

    You can do it in 2 ways:
    1. Get the BLOB from the DB and then write it into the local harddisk where the Web Server is located and then give the path in the <IMG SRC> Tag.
    2. In the JSP, when you specify a IMG Tag
    <IMG SRC='FileDisplayServlet?hdImgName=new.gif'>
    This SRC is pointing to a Servlet. The Servlet will read the Query String and then go hit the DB, get the BLOB Content and then convert into a byte array. Now the servlet will change its content type to image or gif. Then it will write the content in the out stream.
    Hope this helps.
    Thanks and regards,
    Pazhanikanthan. P

  • Dynamic images in JSP

    Hi!
    I would like to generate dynamic images in a JSP which I would like do an "include" in other JSPs across the site. The reason for this is we show many emails/ phone numbers on various pages and with the prevalence of spiders/ robots, it would be better to not have it as HTML text. I saw a couple of sites displaying them as images but they were PHP and ASP.Net sites. Any suggestions?
    Thanks!!

    Well... You could simply create 1 image per letter/number (this is done within a few minutes) and then code a function, which seperates the given string into chars and then creates HTML-code with the pictures.
    There is an easier way, sure. But I don't know him :P. You know "Captchas"? The Codes you have to enter all over the internet to verify yourself as human and not as bot? If you google about ths code uses to create Captchas, you should be happy :)
    X--spYro--X

  • Problem with displaying BLOB images on JSP page using a servlet

    hi. I have a big problem with displaying BLOB images using JSP. I have a servlet that connects to the oracle database, gets a BLOB image , reads it, and then displays it using a BinaryStream. The problem is , this works only when i directly call that servlet, that is http://localhost:8080/ImageServlet. It doesn't work when i try to use that servlet to display my image on my JSP page (my JSP page displays only a broken-image icon ) I tried several coding approaches with my servlet (used both Blob and BLOB objects), and they work just fine as long as i display images explicitly using only the servlet.
    Here's what i use : ORACLE 10g XE , Eclipse 3.1.2, Tomcat 5.5.16 , JDK 1.5
    here is one of my image servlet's working versions (the essential part of it) :
                   BLOB blob=null;
              rset=st.executeQuery("SELECT * FROM IMAGES WHERE ID=1");
              while (rset.next())
                   blob=((OracleResultSet)rset).getBLOB(2);
              response.reset();
              response.setContentType("image/jpeg");
              response.addHeader("Content-Disposition","filename=42.jpeg");
                    ServletOutputStream ostr=response.getOutputStream();
                   InputStream istr=blob.getBinaryStream(1L);
                    int size=blob.getBufferSize();
              int len=-1;
                    byte[] buff = new byte[size];
                         while ((len=istr.read( buff ))!=-1 ) {
                   ostr.write(buff,0,len);
             response.flushBuffer();
             ostr.close(); and my JSP page code :
    <img src="/ImageServlet" border="0"  > If you could just tell me what i'm doing wrong here , or if you could show me your own solutions to that problem , i would be very greatful ,cos i'm realy stuck here , and i'm rather pressed for time too. Hope someone can help.

    I turns out that it wasn't that big of a problem after all. All i had to do was to take the above code and place it into another JSP page instead of into a servlet like i did before. Then i just used that page as a source for my IMG tag in my first JSP. It works perfectly well. Why this doesn't work for servlets i still don't know, but it's not a problem form me anymore . Ofcourse if someone knows the answer , go ahead and write. I would still appriceatte it.
    here's the magic tag : <img src="ImageJSP.jsp" border="0"  > enjoy : )

  • Display multiple Images from a DB on a JSP Page!

    Hi all, please give me your solution, thanks. I have many images, stored in Oracle database (BLOB), How to display all of them (images) on a JSP page? I have a working solution that only shows one image based on the specific image-name passed. But if no image found in the Database with that image-name then I want to show all the images at once on a JSP page. Can someone help please. Follwing are the code snippets:
    Here is the JSP page that calls the servlet to show the images:
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <title>untitled</title>
      </head>
      <body valign=center>
          <table>
            <tr>
                <td>
                    <img src="/test-testimgs-context-root/servlet/test1.images.servlet.GetImage">
                </td>
            </tr>
          </table>
      </body>
    </html>
    Here is the code that resides in the service method of GetImage servlet:
    public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
        OutputStream stream = response.getOutputStream(); 
        Blob imgBlob = null;
        ResultSet rs = null;
        byte[] imbBytesAry = null;
        try
            ImageTest imgtest = new ImageTest();
            rs = imgtest.get("img1.tif");
            if(rs != null)
                while(rs.next())
                    imgBlob = rs.getBlob(1);
                    int len = new Integer( new Long( imgBlob.length()).toString() ).intValue();
                    imbBytesAry = imgBlob.getBytes(1,len);
                    if (imbBytesAry.length == 0 || imbBytesAry == null)
                        noImageFound(request, response); 
                    else
                        stream.write(imbBytesAry);
            else
                noImageFound(request, response);
        catch (Exception e)
            noImageFound(request, response);
    Here is the code that resides in the get method of ImageTest class:
    public ResultSet get(String fileName) throws DatabaseConnectionException, SQLException, Exception
    Connection connection=null;
    ResultSet rs = null;
    ResultSet rs1 = null;
    Blob imgBlob = null;
    try
        connection = new ConnectionProvider().getCConnection() ;
        connection.setAutoCommit(false);
        Statement stmt = connection.createStatement();
        String sql = "SELECT IMG FROM IMAGE_TABLE WHERE IMAGE_NAME = ? "; 
        PreparedStatement pstmt = connection.prepareStatement(sql);
        pstmt.setString(1,fileName);
        rs = pstmt.executeQuery();
        boolean flag = rs.next();
        if(flag)
            rs.beforeFirst();
        else
            sql = "SELECT IMG FROM IMAGE_TABLE"; 
            rs1 = stmt.executeQuery(sql);
            boolean flag_all = rs1.next();
            if(flag_all)
                rs1.beforeFirst();
            else
                rs1 = null;
        return rs;
    }As you see in the JSP page I am calling GetImage servlet, whose service method does all the processing i.e. calls ImageTest get method that queries the database and returns the result. Eventually what I would like is to pass the filename along with other parameters from JSP page and the servlet returns the images based on that. Currently I have just hard coded a value for testing puposes. Any help is appreciated.
    Thanks

    Hi all, please give me your solution, thanks. I have many images, stored in Oracle database (BLOB), How to display all of them (images) on a JSP page? I have a working solution that only shows one image based on the specific image-name passed. But if no image found in the Database with that image-name then I want to show all the images at once on a JSP page. Can someone help please.
    this is the code
    <form name="a" action="" method="post">
    <%
    rs1 = st1.executeQuery(select1);
    rs1.next();
    while(rs1.next())
    %>
    <table>
    <tr><td>
    <%
    Blob objBlob[] = new Blob[rs1.getMetaData().getColumnCount()];
         for (int i = 0; i <= rs1.getMetaData().getColumnCount(); i++)
               objBlob[i] = ((OracleResultSet)rs1).getBLOB(1);
              InputStream is = objBlob.getBinaryStream();
    byte[] bytearray = new byte[4096];
    int size=0;
    response.reset();
    response.setContentType("image/jpeg");
    response.addHeader("Content-Disposition","filename=getimage.jpeg");
    while((size=is.read(bytearray))!= -1 )
    response.getOutputStream().write(bytearray,0,size);
    response.flushBuffer();
    is.close();
    out.println("hhhhhhh");
    %>
    </table>
    <%
    rs1.close();
    //con.close();
    %>
    </form>

Maybe you are looking for

  • Placeholder in a Matrix Report

    I am looking for a solution for a formatting issue in a matrix report with grouping. I would like to find a way to add a place holder to maintain verticle (columnar) consistency if a value is not found in a group for a column. Thank in advance for an

  • Material master saving error

    Hi Friends, In the general plant data/Storage I am trying to change the profit center but I am gettting error message that Program terminated while deleting old export control data (update).Message no. M3668 What Can I do to avoid this error. Thanks,

  • SDK Acrobat 3D!!!!!

    Prompt please where to download sdk Acrobat 3D Developer (for export x-files into PDF, C++, C#)

  • Phones constantly turn off in the middle of phone calls, texting or web browsing; help!

    My daughter and I both have BlackBerry Curves that are approxiamately 2 years old.  They are constantly shutting down during phone calls and web browsing even though the battery shows a full charge. When they finally finish rebooting the battery indi

  • 800W shuts down unexpectedly

    I've had the Treo 800W from Sprint for just over a week. Great phone. I like everything about it. Installed BT voice calling, it works well. The last few days however, I've had trouble waking it up. It happened a couple of times in this scenario: Use