Displaying a vector in jsp

I'm returning a vector, but I'm having trouble displaying it. The vector will contain a group of users, each containing FirstName, LastName and EmailAddress. I've the servlet working, but the I'm having trouble repeating the vector.
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title>User List</title>
</head>
<body>
<h1>User Email List</h1>
<%@ page import="business.*"%>
<%
     Vector users = (Vector ) session.getAttribute("users");
     if (users==null){
          users = new Vector();
     users.setFirstName(request.getParamter("firstName"));
     users.setLastName(request.getParamter("LastName"));
     users.setEmailAddress(request.getParamter("emailAddress"));     
     session.setAttribute("users", users);
%>
<table cellpadding="5" border=1>
  <tr valign="bottom">
    <th>First Name</th>
    <th>Last Name</th>
    <th>Email Address</th>
  </tr>
<% java.util.Vector users = (java.util.Vector)session.getAttribute("users");
   for (int i =0; i<users.size(); i++){
      business.Users users = (business.Users)users.get(i);
      %>
  <tr valign="top">
    <td><p><%= users.getFirstName() %></td>
    <td><p><%= users.getLastName() %></td>
    <td><p><%= users.getEmailAddress() %></td>
    <td><a href="../servlet/user11.ShowUserServlet?emailAddress=<%=users.getEmailAddress()%>">Update</a></td>
    <td><a href="../servlet/user11.DeleteUserServlet?emailAddress=<%=users.getEmailAddress()%>">Delete</a></td>
  </tr>
  <%}%>
</table>
</body>
</html>

Bad idea:     Vector users = (Vector ) session.getAttribute("users");
     if (users==null){
          users = new Vector();
     users.setFirstName(request.getParamter("firstName"));
     users.setLastName(request.getParamter("LastName"));
     users.setEmailAddress(request.getParamter("emailAddress"));
users should probably be an instance of some class User ...

Similar Messages

  • 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 Image in another jsp

    hello,
    I am facing a design issue of so as to how to go about displaying an image which i am retrieving from database.
    I have a SubmitDoc.jsp which takes as input the doc id which i need to display looks like :
    *SubmitDoc.jsp*
    <FORM METHOD=POST ACTION="Retrieval">
    Enter Document ID to Retrieve: <INPUT TYPE=TEXT NAME=DOCID SIZE=20/><BR>
    <P><INPUT TYPE=SUBMIT></P>
    </FORM>I have my Retrieval servlet which access the DB and gets the binary stream for the image data based on DOCID.
    Now i try to forward result to a different jsp in order to display the binary data from the servlet.
    something like this :
    InputStream readImg = rs.getBinaryStream("DOCUMENT");
    response.setContentType("image/jpg");
    request.setAttribute("ImageData", readImg);
    // response.getOutputStream().write(rb,0,len);
    RequestDispatcher rd = request.getRequestDispatcher("DisplayDoc.jsp");
    rd.forward( request, response );What code should i put in DisplayDoc.jsp to show the image there.
    Any ideas how do i go about ?
    Thanks,

    What code should i put in DisplayDoc.jsp to show the image there.The same code you put in any html page to show an image:
    <img src="urlToDownloadImageFrom"/>In effect you have two requests.
    One for the JSP page, and then another for the image.
    So often what you find is the tag on your page needs to pass the id as well
    <img src="/ImageServlet?docId=abc123"/>

  • How to display uploaded image in jsp page.

    Hello,
    I am using struts 1.2.9 and and have uploaded image on the server. Now what I want to do display the image in jsp page after clicking on one link in jsp. I have tried many thing to display image in jsp page. But I am getting an error during displaying image in jsp. I have displayed absolute path in servlet. and used InputStream and outputstream to display image in jsp page.
    Can any one help.
    Thanks in advance
    Manveer Singh

    Follow this. This topic is very popular recently on the forum.

  • Display request contents in JSP page

    i need to display the contents in a request in my JSP.
    meaning:
    i have a hashmap (containing string and a list) coming from the EJB tier to struts action in an event response object, I'm sure that the request has these values. cuz i tested it in struts action using the following code:
    HashMap result = (HashMap)((EventResponseSupport)request.getAttribute(WebKeys.EVENT_RESPONSE)).getPayload();
    System.out.println("Sponsor name = " + result.get("sponsor"));I am able to print it in the console but i need to know how to display it in the jsp. i tried many things but i can't get it right.
    first i need to display the string and then i need to iterate through the list to display its contents in a table.
    any help would be appreciated.

    Kindly use JSP Scriplet to load the HashMap into the Page Context.
    Then you can use the Struts iterate tags to paint the contents of the HashMap

  • Display uploaded file on JSP page

    Hi All,
    I want to display uploaded file in JSP.
    Initially I am displaying File Name after saving the file & click on edit link.
    i.e on JSP Page I have File Upload component & save button.With that save button I am saving my file to databse.
    So when I click on edit link I am getting that file name from Databse then I am displaying it.
    But now I want to display uploaded file name on JSP page before saving to databse.i.e I will have browse & Upload button.When I click on browse button I will open window from where I will select file.
    This is working fine as,<x:inputFileUpload id="uploadfile" value="#{errorLotBean.file}" storage="file"></x:inputFileUpload>
    But when I click on upload button that uploaded file should be displyed there only.Can anyone please tell me how to do this ?
    Thanks
    Sandip

    Thanks a lot Siefert,
    I tried the way mentioned in URL.
    But what if I want to display all uploaded file on my screen.
    i.e. If user click on browse & select File A then click on upload button.
    (Here the File A will be displayed) with code
    <h:outputtext value="#{benaName.file.name}"
    But what if after displaying File A if user decide to upload another file File B.
    How to display that ?
    with <h:outputtext value="#{benaName.file.name}" its dispalying one file only.
    Thanks
    Sandip

  • Display Chinese characters on JSP under WebLogic 6.1

    We've recently migrated from WebLogic 5.1 to 6.1 and we found that all those
    Chinese JSP pages cannot display properly under Solaris, but it works on
    some Windows 2000 machines (but everything work under 5.1).
    However we haven't made any special changes to any configuration in all
    these machines. Why some of them work and some of them doesn't ? Those W2K
    machines work are running English version of Windows 2000, but with Chinese
    character sets installed.
    Our Chinese JSP pages use big5 character encoding instead of unicode.
    I've read a number of messages in this newsgroup but I'm still very
    confusing on how to fix the problem ...

    Hi,
    I have the same problem here. I am using weblogic 6.1 on W2k server. I save
    prpblem from those static contents in the jsp file, but those data in chinese
    from oracle database is working fine. I create a simple jsp file just with a simple
    text "hello world" in chinese, I save one as a html and one as a jsp. When I run
    this two under weblogic 6.1, the html file display correctly but the jsp is not.
    I try "UTF-8", "GB2312" and other charsets but all not working with jsp files.
    Please help.... Thank you.
    yanglin
    "Nohmenn BABAI" <[email protected]> wrote:
    >
    >
    Dear Ricky,
    Could you please check the following :
    If you are on Sun Solaris systems please check the LC values of your
    =
    environment as shown in example below.
    This is the cause of many troubles due to the fact that the JVM =
    considers these parameters to encode.
    (example given for Italian display, so I guess for you this will be =
    Big5)
    On Solaris 7 the right settings are=20
    LC_COLLATE=3Dit.ISO8859-15
    LC_CTYPE=3Dit.ISO8859-15
    LC_MESSAGES=3Dit
    LC_MONETARY=3Dit.ISO8859-15
    LC_NUMERIC=3Dit.ISO8859-15
    LC_TIME=3Dit.ISO8859-15=20
    on Solaris 8=20
    LC_COLLATE=3Dit_IT.ISO8859-1
    LC_CTYPE=3Dit_IT.ISO8859-1
    LC_MESSAGES=3Dit
    LC_MOLC_COLLATE=3Dit.ISO8859-15
    LC_NUMERIC=3Dit_IT.ISO8859-1
    LC_TIME=3Dit_IT.ISO8859-1
    Also another point to check is=20
    In All Weblogic Releases :
    You can add the flag -Dfile.encoding=3DUTF8 in the startup line to force
    =
    default encoding in the JVM
    In your Webloigc 5.1 property file
    # WEBLOGIC CHARACTERS PROPERTIES
    weblogic.httpd.inputCharset./russian/*=3DISO-8859-5
    weblogic.httpd.inputCharset./utf/*=3DUTF-8
    weblogic.httpd.inputCharset./french/*=3DISO-8859-1
    weblogic.httpd.inputCharset./japan*=3DShift_JIS
    # FOR ENCODING THE WHOLE SITE IN UTF-8, UNCOMMENT THE FOLLOWING LINE
    #weblogic.httpd.inputCharset./*=3DUTF-8
    In your weblogic.xml's Weblogic 6.1 and later :
    <weblogic-web-app>=20
    <charset-params>=20
    <input-charset>=20
    <resource-path>/japan*</resource-path>=20
    <java-charset-name>Shift_JIS</java-charset-name>=20
    </input-charset>=20
    </charset-params>
    =20
    <charset-params>=20
    <input-charset>=20
    <resource-path>/russian*</resource-path>=20
    <java-charset-name>ISO-8859-5</java-charset-name>=20
    </input-charset>=20
    </charset-params>=20
    <charset-params>=20
    <input-charset>=20
    <resource-path>/french*</resource-path>=20
    <java-charset-name>ISO-8859-1</java-charset-name>=20
    </input-charset>=20
    </charset-params>
    <charset-params>=20
    <input-charset>=20
    <resource-path>/UTF-8*</resource-path>=20
    <java-charset-name>UTF-8</java-charset-name>=20
    </input-charset>=20
    </charset-params> =20
    </weblogic-web-app>
    As you may have noted, the ressouce-path is starting from root, and =
    after you insert the directory where you want to define de encoding.
    This will influence the JVM when performing a compilation (please clean
    =
    the temp directories from any compiled jsps before re-starting your =
    WLS).
    Please reply in the forum is you still face the problem after all these
    =
    modifications.
    Best regards
    Nohmenn BABAI
    BEA EMEA Technical Support Engineer
    "Ricky Wong" <[email protected]> a =E9crit dans le message de news:
    =
    [email protected]...
    We've recently migrated from WebLogic 5.1 to 6.1 and we found thatall =
    those
    Chinese JSP pages cannot display properly under Solaris, but it works=
    on
    some Windows 2000 machines (but everything work under 5.1).
    =20
    However we haven't made any special changes to any configuration in=
    all
    these machines. Why some of them work and some of them doesn't ? Those=
    W2K
    machines work are running English version of Windows 2000, but with=
    Chinese
    character sets installed.
    =20
    Our Chinese JSP pages use big5 character encoding instead of unicode.
    =20
    I've read a number of messages in this newsgroup but I'm still very
    confusing on how to fix the problem ...
    =20
    =20<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=3DContent-Type content=3D"text/html; =
    charset=3Diso-8859-1">
    <META content=3D"MSHTML 6.00.2716.2200" name=3DGENERATOR>
    <STYLE></STYLE>
    </HEAD>
    <BODY>
    <DIV><FONT face=3DArial size=3D2>Dear Ricky,</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2>Could you please check the following
    =
    :</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>If you are on Sun Solaris systems =
    please check the=20
    <STRONG>LC</STRONG> values of your environment as shown in example=20
    below.<BR>This is the cause of many troubles due to the fact that the
    =
    JVM=20
    considers these parameters to encode.</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>(example given for Italian display,
    so =
    I guess for=20
    you this will be <STRONG>Big5</STRONG>)</FONT></DIV>
    <DIV><BR><FONT face=3DArial size=3D2><FONT color=3D#ff0000><STRONG>On
    =
    Solaris 7 the=20
    right settings are</STRONG>=20
    <BR></FONT>LC_COLLATE=3Dit.ISO8859-15<BR>LC_CTYPE=3Dit.ISO8859-15<BR>LC_M=
    ESSAGES=3Dit<BR>LC_MONETARY=3Dit.ISO8859-15<BR>LC_NUMERIC=3Dit.ISO8859-15=
    <BR>LC_TIME=3Dit.ISO8859-15=20
    </FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2><FONT color=3D#ff0000><STRONG>on =
    Solaris 8</STRONG>=20
    <BR></FONT>LC_COLLATE=3Dit_IT.ISO8859-1<BR>LC_CTYPE=3Dit_IT.ISO8859-1<BR>=
    LC_MESSAGES=3Dit<BR>LC_MOLC_COLLATE=3Dit.ISO8859-15<BR>LC_NUMERIC=3Dit_IT=
    ..ISO8859-1<BR>LC_TIME=3Dit_IT.ISO8859-1</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2><STRONG>Also another point to check
    =
    is</STRONG>=20
    </FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>In All Weblogic Releases :<BR>You can
    =
    add the flag=20
    -Dfile.encoding=3DUTF8 in the startup line to force default encoding
    in =
    the=20
    JVM</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2><STRONG>In your Webloigc 5.1 property=20
    file</STRONG></FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2># # # # # # # # # # # # # # # # # #
    # # =
    # # # # # #=20
    # # # # # # # #<BR># WEBLOGIC CHARACTERS PROPERTIES<BR>#=20
    ------------------------------------------------<BR>weblogic.httpd.inputC=
    harset./russian/*=3DISO-8859-5<BR>weblogic.httpd.inputCharset./utf/*=3DUT=
    F-8<BR>weblogic.httpd.inputCharset./french/*=3DISO-8859-1<BR>weblogic.htt=
    pd.inputCharset./japan*=3DShift_JIS<BR>#=20
    # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #<BR>#
    =
    FOR=20
    ENCODING THE WHOLE SITE IN UTF-8, UNCOMMENT THE FOLLOWING LINE<BR>#=20
    ------------------------------------------------<BR>#weblogic.httpd.input=
    Charset./*=3DUTF-8</FONT></DIV>
    <DIV><BR><FONT face=3DArial size=3D2><STRONG>In your weblogic.xml's =
    Weblogic 6.1 and=20
    later :</STRONG></FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2><weblogic-web-app> </FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2><charset-params> =
    <BR><input-charset>=20
    <BR><resource-path>/japan*</resource-path>=20
    <BR><java-charset-name>Shift_JIS</java-charset-name>=20
    <BR></input-charset>=20
    <BR></charset-params><BR> <BR><charset-params>=20
    <BR><input-charset>=20
    <BR><resource-path>/russian*</resource-path>=20
    <BR><java-charset-name>ISO-8859-5</java-charset-name>=20
    <BR></input-charset> <BR></charset-params> </FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2><charset-params> =
    <BR><input-charset>=20
    <BR><resource-path>/french*</resource-path>=20
    <BR><java-charset-name>ISO-8859-1</java-charset-name>=20
    <BR></input-charset> <BR></charset-params></FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2><charset-params> =
    <BR><input-charset>=20
    <BR><resource-path>/UTF-8*</resource-path>=20
    <BR><java-charset-name>UTF-8</java-charset-name>=20
    <BR></input-charset> <BR></charset-params>  =
    </FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2></weblogic-web-app></FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2><EM>As you may have noted, the =
    ressouce-path is=20
    starting from root, and after you insert the directory where you want
    to =
    define=20
    de encoding.</EM></FONT></DIV>
    <DIV><EM><FONT face=3DArial size=3D2></FONT></EM> </DIV>
    <DIV><EM><FONT face=3DArial size=3D2></FONT></EM> </DIV>
    <DIV><FONT face=3DArial size=3D2>This will influence the JVM when =
    performing a=20
    compilation (please clean the temp directories from any compiled jsps
    =
    before=20
    re-starting your WLS).</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2>Please reply in the forum is you still
    =
    face the=20
    problem after all these modifications.</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2>Best regards</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2>Nohmenn BABAI</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>BEA EMEA Technical Support =
    Engineer</FONT></DIV>
    <DIV><FONT face=3DArial><BR><FONT size=3D2></FONT></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2>"Ricky Wong" <</FONT><A=20
    href=3D"mailto:[email protected]"><FONT face=3DArial=20
    size=3D2>[email protected]</FONT></A><FONT face=3DArial =
    size=3D2>> a =E9crit dans=20
    le message de news: </FONT><A =
    href=3D"mailto:[email protected]"><FONT=20
    face=3DArial size=3D2>[email protected]</FONT></A><FONT =
    face=3DArial=20
    size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>> We've recently
    =
    migrated from=20
    WebLogic 5.1 to 6.1 and we found that all those<BR>> Chinese JSP =
    pages cannot=20
    display properly under Solaris, but it works on<BR>> some Windows
    =
    2000=20
    machines (but everything work under 5.1).<BR>> <BR>> However we
    =
    haven't=20
    made any special changes to any configuration in all<BR>> these =
    machines. Why=20
    some of them work and some of them doesn't ? Those W2K<BR>> machines
    =
    work are=20
    running English version of Windows 2000, but with Chinese<BR>> =
    character sets=20
    installed.<BR>> <BR>> Our Chinese JSP pages use big5 character
    =
    encoding=20
    instead of unicode.<BR>> <BR>> I've read a number of messages in
    =
    this=20
    newsgroup but I'm still very<BR>> confusing on how to fix the problem
    =
    ....<BR>> <BR>> </FONT></BODY></HTML>

  • How to display Arabic content in JSP ?

    Hi all,
    I used the following encoding method to display arabic content in JSP page.
    <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
    I also set -Dfile encoding=ISO-8859-6 in the JVM Options.As a result the arabic data is getting displayed .
    Variable "data" contains the actual arabic data.
    function updateArabicData(data){
    try{
    document.getElementById('divtag').innerHTML=""+data;
    }catch(err){
    <html>
    <body>
    <div id="divtag" lang="ar-sa"></div>
    </body>
    </html>
    But the problem is the arabic data getting displayed in JSP (within the <div>)seems to be jumbled up.The users say that the arabic words within a single sentence are not arranged correctly.They are mixed up.Please help me with a solution.
    Edited by: Alance on May 27, 2010 5:34 AM

    Data is retrieved as follows
    if(msg.getField("GEN_UNICODE_MESSAGE_1")!=null){
    resultString=resultString+"N"+""+new String((byte[])msg.getField("GEN_UNICODE_MESSAGE_1").value.get(0),"ISO-8859-6");
    with content Type set as response.setContentType("text/html;charset=ISO-8859-6");
    ISO-8859-6 -since the data contains arabic news.
    Edited by: Alance on May 27, 2010 11:05 PM

  • How do i display jasper reports using jsp

    Can anyone help me to display jasper reports in jsp pages
    Thanx in advance

    hi
    Thank you for such a great answer.
    I have a problem here,
    When i generate report using this code all other report formats are generated very good, but the html report is not generated properly. i get nullpx in the img src e.g
    <td><img alt="" src="nullpx" style="width: 20px; height: 1px;"/></td>
    Please help me
    and
    Thanks in advance
    snkr
    Following is the html code of the generated report.
    start--------------------------------------
    =======================================================
    <html>
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <style type="text/css">
    a {text-decoration: none}
    </style>
    </head>
    <body text="#000000" link="#000000" alink="#000000" vlink="#000000">
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr><td width="50%"> </td><td align="center">
    <a name="JR_PAGE_ANCHOR_0_1"/>
    <table style="width: 620px" cellpadding="0" cellspacing="0" border="0" bgcolor="white">
    <tr>
    <td><img alt="" src="nullpx" style="width: 200px; height: 1px;"/></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 1px;"/></td>
    <td><img alt="" src="nullpx" style="width: 200px; height: 1px;"/></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 1px;"/></td>
    <td><img alt="" src="nullpx" style="width: 135px; height: 1px;"/></td>
    <td><img alt="" src="nullpx" style="width: 45px; height: 1px;"/></td>
    <td><img alt="" src="nullpx" style="width: 20px; height: 1px;"/></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 30px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 60px;"/></td>
    <td colspan="5" valign="middle" style="text-align: center;"><span style="font-family: sansserif; font-size: 20.0px; font-weight: bold;">
                       Report Background Demo
    </span></td>
    <td colspan="2"><img alt="" src="nullpx" style="width: 65px; height: 60px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 13.0px; font-weight: bold;">Parent_ID</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 13.0px; font-weight: bold;">Product_ID:</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 13.0px; font-weight: bold;">Name:</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">0</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Colour Cosmetcis</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Lipsticks</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-321</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Eye Shadow</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-322</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Shankar</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-322</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-322-001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">test</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-322</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-322-002</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Parikchya</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-323</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">test</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-324</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">first</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-324</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-324-001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">first</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">0</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">hair Cleaner</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002-001</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Kumar</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002-002</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Magilla Gorilla</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002-003</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">astrigent</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
    </tr>
    <tr valign="top">
    <td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">0</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">003</span></td>
    <td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
    <td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">test1</span></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 96px;"/></td>
    </tr>
    <tr valign="top">
    <td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 170px;"/></td>
    </tr>
    </table>
    </td><td width="50%"> </td></tr>
    </table>
    </body>
    </html>
    end------------------------------
    ========================================================

  • How to display stored image in jsp  in ie7???

    i am using internet explore7. i have a problem when i am displaying an image in jsp its not properly coming. this image and image is stored in database.
    image is stored in database using "binarystream" .
    i am just simply calling the image path and using the html image display tag.
    <img src="<%=fileIpath%>" but image is not coming properly but this image is showing properly in lower ie version.
    Can anyone help me???

    can anyone reply this question??Appearently no.
    It might be that the question is not interesting enough to attract people.
    Or it might be that the details you provided do no suffice and some important pieces of information are missing. For eample: what are the contents of the variable? If you save the generated page, what do you get?

  • Displaying a Vector

    I need to make a BullsEye using a Vector. I have a vector that contains Ellipse2D.Double. How can I display this vector and how can I get the colors to alternate between Red and White?

    SoMeWhErEs wrote:
    I need to make a BullsEye using a Vector. I have a vector that contains Ellipse2D.Double. How can I display this vector and how can I get the colors to alternate between Red and White?This sample program might help you: [_SwingPaintDemo.java_|http://java.sun.com/products/jfc/tsc/articles/painting/src/SwingPaintDemo.java]

  • Any other way to display the images in jsp

    Dear All,
    I had a program in get the image in database and display the image in jsp file.
    Generally we are using
    setContenttype(image) and write the binary values in jsp file,
    is there any other way to store the jpeg file in speciefied folder and view the jsp file

    Is there any other way to play the shuffle in a car if it doesn't have an aux facility???
    There is not.
    Or I wondered if you could play it through a smart tv...or do you need an apple tv box???
    Not with the Apple TV, but if the Smart TV has an AUX port, you can connect it that way.
    B-rock

  • URGENT:- how to display bullets in a  jsp field?

    Hi,
    I need to display the names prepended with a bullet. If am displaying two fields like group_id and Names in jsp, it should look like this.
    Note: arrows are given below only just for formatting or to display columns correctly in this posting
    Group_id---> Names
    1-----> . Joe
    ------> . mary
    ------> . John
    2-----> . Mike
    ------> . Susan
    3-----> . abc
    Please advise.
    -thanks

    Hi ,
    Is your data coming from a Collection or Vector or other sources? So , am sending a code in plain html for displaying content in the required format. You can replace the bolded characters in the code ,with your dynamic content using <%=YourVariable%> .
    <html>
    <body>
    <table border="0">
    <tr>
    <td valign="top">
    1
    </td>
    <td>
    <ul>
    <li type=disc> Name1<br>
    <li type=disc> Name2<br>
    <li type=disc> Name3<br>
    </ul>
    </td>
    </tr>
    <tr>
    <td valign="top">
    2
    </td>
    <td>
    <ul>
    <li type=disc> Name4<br>
    <li type=disc> Name5<br>
    <li type=disc> Name6<br>
    </ul>
    </td>
    </tr>
    </table>
    </body>
    </html>

  • Vector to JSP Page

    Hello,
    I have a certain Vector within my servlet class that i retrieve from my logic unit tier.
    I wish to pass this Vector to the JSP page to view and use the following statements to do this :-
    Vector aucItems = logic.getAuc() ;
    request.setAttribute("aucItems", aucItems) ;
    rd.forward(request, response);how would i go about displaying the contents in my JSP page ? i am aware i should use request.getAttribute("aucItems") to retrieve the Vector but how would i go about traversing the vector and extracting and displaying the information using the .getName() method on each object of the Vector
    Thanx,
    - FaeLLe

    It thinks that your items variable aucItems is a
    string, and is iterating through each character in
    the string in this loop.
    Put the ${  } signs around aucItems to tell it
    otherwise.
    ie:
    <c:forEach var="aucItem" items="${aucItems}">
    Cheers,
    evnafetsHi,
    I tried that just now
    My new JSP file looks like this
    <html>
    <head>
    <title>ITEMS ON AUCTION</title>
    </head>
    <body>
    <%@page import="auction.*" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <jsp:useBean id="aucItems" scope="page" class="java.util.Vector" />
    <jsp:useBean id="aucItem" scope="page" class="auction.Auction" />
    <table>
    <c:forEach var="aucItem" items="$(aucItems)">
      <tr><td>Item Number : </td><td><c:out value="${aucItem.itemNo}"/></td></tr>
      <tr><td>Name : </td><td><c:out value="${aucItem.name}"/></td></tr>
      <tr><td>Description : </td><td><c:out value="${aucItem.desc}"/></td></tr>
      <tr><td>Current Bid : </td><td><c:out value="${aucItem.bid}"/></td></tr>
      <tr><td>Maximum Bidder : </td><td><c:out value="${aucItem.maxBidder}"/></td></tr>
      <tr><td>Seller Id : </td><td><c:out value="${aucItem.sellerId}"/></td></tr>
      <tr><td>Maximum Time Of Auction : </td><td><c:out value="${aucItem.maxTime}"/></td></tr>
      <tr><td>Auction Start Hour</td><td><c:out value="${aucItem.startHour}"/></td></tr>
      <tr><td>Auction Start Min </td><td><c:out value="${aucItem.startMinute}"/></td></tr>
      <tr><td>Auction Start Seconds </td><td><c:out value="${aucItem.startSeconds}"/></td></tr>
    </c:forEach>
    </table>
    </body>
    </html>I tried a lot of things for over eight hours now it always thinks it is a String.
    Kindly assist.
    Could it be because i have to perform a getAttribute() on the request parameter ?

  • Vector in jsp

    Hi
    In my jsp a have this part of code
    Vector vcTeamIds = new Vector();
    Vector vcTeamNames = new Vector();
    do{  // column headers adding to vector and displaying
    vcTeamIds.addElement(stb1.getField(stb1.TEAM_ID));
    vcTeamNames.addElement(stb1.getField(stb1.TEAM_NAME));
    } while (stb1.next()); %>
    and I get this error
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 40 in the jsp file: /statistik/kampoversigt.jsp
    Generated servlet error:
    [javac] Since fork is true, ignoring compiler setting.
    [javac] Compiling 1 source file
    [javac] Since fork is true, ignoring compiler setting.
    [javac] /opt/jakarta-tomcat-4.1.24/work/Standalone/localhost/services/statistik/kampoversigt_jsp.java:181: cannot resolve symbol
    [javac] symbol : class Vector
    [javac] location: class org.apache.jsp.kampoversigt_jsp
    [javac] Vector vcTeamIds = new Vector();
    [javac] ^
    then I changed it by prefixing it with java.util like this
    java.util.Vector vcTeamIds = new java.util.Vector();
    java.util.Vector vcTeamNames = new java.util.Vector();
    do{  // column headers adding to vector and displaying
    vcTeamIds.addElement(stb1.getField(stb1.TEAM_ID));
    vcTeamNames.addElement(stb1.getField(stb1.TEAM_NAME));
    } while (stb1.next()); %>
    and then I this error
    Can't find resource for bundle java.util.PropertyResourceBundle, key virtualpath
    in the catalina.out and tomcat dies.
    Please tell me what's wrong.
    Lotte

    Both when I prefix it or when I import the java.util I get the same error
    Can't find resource for bundle java.util.PropertyResourceBundle, key virtualpath
    in the catalina.out and tomcat dies
    on the web I just get
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log.

Maybe you are looking for

  • Adobe Illustrator - menu freaking out

    I recently installed Adobe Illustrator CS2 on my system, and for a while it worked fine. However about three weeks ago I launched it and the menus and submenus are all whacked out. For example: Instead of reading "File" it reads "$$$/_MBAR/Mn..." and

  • Override built-in "exit full screen"method

    Hi! Is it possible to override the built-in "Exit Full Screen"-method provided by JavaFX? To be more precise, when the application is in full screen mode and a user presses the ESC-key, I want to do something else than the default implementation. I t

  • Photo Backup and Deletion

    My daughter has a 16MB iPhone 5 and needs to free up storage space.  Clearly her photos are what is taking up significant space.  What is the easiest and safest way to backup and then delete photos off of her iPhone......and NOT lose any of them!

  • Libreoffice writer freezes 10 sec while opening file **SOLVED**

    I've got my arch linux system up to date and since few days, it takes about 10 sec to open a file using libreoffice (at least writer or calc). Even if i click on a file (using XFCE of KDE), it freezes about 10 sec and it opens the file.  I've tried m

  • Unit for Quantity Specification in composition is not working

    Hallo I got a problem with the units in the composition of specifications. When I try to create a new composition I get the following message: UoM % does not correspond to the dimension of the selected value assgmt I figured out that the dimension (P