Plz help me with displaying image.....

hai friends,
i am doin a simple project for my school in jsp and servlets.... actually my problem is very simple i tink ...but am unable to track out....and am new to jsp...actually i want to insert an image near my text...but am unable to display image...i simple get an ' X ' mark and the alternate text instead of the image ...is it tat my browser is unable to display images?? can i change the settings of my browser?? plz tell me how to do it ?? i hav pasted my code also....
<tr>
               <td valign=top width=100>
               <img src="/images/icon.bmp" align=left width=30 height=30 alt="image"><a href="/project/servlet/SubforumviewServlet?name=<%= forname %>"><%= forname %></a>
               </td>
          </tr>
that forname is the name of my link..
i hav another doubt also...is CSS like a template?? do we need to write the code or we can just include it to our jsp?? cos i need to enhance my jsp page to look more professional lik websites... sorry if my question is really childish.....plz help me !!!! thanx in advance..

Hi...
I tried your code and its working fine..I think the problem is with the location of your image. In the src attribute, give the correct location of the image. If you are giving /images/im.bmp, the folder images should be in the same directory as your jsp. Hope it help.
Regards,
Cochu.

Similar Messages

  • Problem with displaying image

    Hello!
    Sorry, I'm a beginner in APEX and have some problems with displaying images in my application. I have read the same topic but unfortunately didnt find the solution.
    So.. I have the interactive report
    table test (
    NAME NOT NULL VARCHAR2(4000)
    ID NUMBER
    BLOB_CONTENT BLOB
    MIME_TYPE VARCHAR2(4000))
    I need to display the column blob_content.
    Thnks a lot.

    1009316 wrote:
    Hello! Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your forum profile with a real handle instead of "1009316".
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    Sorry, I'm a beginner in APEX and have some problems with displaying images in my application. I have read the same topic but unfortunately didnt find the solution.
    So.. I have the interactive report
    table test (
    NAME NOT NULL VARCHAR2(4000)
    ID NUMBER
    BLOB_CONTENT BLOB
    MIME_TYPE VARCHAR2(4000))
    I need to display the column blob_content.This is described in the documentation: About BLOB Support in Forms and Reports and Display Image. There's an OBE tutorial that followed the introduction of declarative BLOB support in 3.1 as well.

  • Help with displaying images (gif, jpeg...) within a JFrame (or similar)

    Hi all,
    i'm new to the forum and i'll be granted if you kind gentlemen/women could use some advices for my gui home application.
    My purpose is to display a static image in a container (i'd prefer to use javax.swing objects, but if you think that java.awt is more suitable for my app, please feel free to tell me about...). I used a modified code from one of the Java Tutorial's examples, tht actually is an applet and displays images as it is using the paint() method. I just can't realize how to set the GraphicContext in a JFrame or a JPanel to contain the image to display, without using applets. Following part of the code I use (a JButton will fire JApplet start, JApplet is another class file called Apple.java):
    class DMToolz extends JFrame {
         private static final long serialVersionUID = 1L;
         private JPanel jContentPane = null;
         private JButton jButton = null;
         private JComboBox jComboBox = null;
         private JMenuItem jMenuItem = null;
         private JMenuBar jJMenuBar = null;
         private JMenu jMenu = null;
         private JMenu jMenu1 = null;
         public int w=10, h=10;
         public String filename;
          * @throws HeadlessException
         public DMToolz() throws HeadlessException {
              // TODO Auto-generated constructor stub
              super();
              initialize();
         public DMToolz(String arg0) throws HeadlessException {
              super(arg0);
              // TODO Auto-generated constructor stub
              initialize();
          * This method initializes jButton
          * @return javax.swing.JButton
         private JButton getJButton() {
              if (jButton == null) {
                   jButton = new JButton();
                   jButton.setBounds(new Rectangle(723, 505, 103, 38));
                   jButton.setText("UrcaMado'");
                   jButton.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent e) {
    /**************SCRIVERE QUI IL NOME DEL FILE CON L'IMMAGINE DA CARICARE*******************/
                             filename = "reference table player2.gif";
                           java.net.URL imgURL = DMToolz.class.getResource("images/"+filename);
                           BufferedImage img = null;
                           try {
                                img =  ImageIO.read(imgURL);
                               w = img.getWidth();
                               h = img.getHeight();
                               System.out.println("*DM* Immagine letta - W:"+w+" H:"+h);
                            } catch (Exception ex) {System.out.println("*DM* Immagine non letta");}
                           JApplet a = new Apple();
                           a.setName(filename);
                           JFrame f = new JFrame ("UrcaBBestia!");
                           f.addWindowListener(new WindowAdapter() {
                               public void windowClosing(WindowEvent e) {System.exit(0);}
                           f.getContentPane().add(a);
                           f.setPreferredSize( new Dimension(w,h+30) );//30 � (circa) l'altezza della barra del titolo del frame
                               f.pack();
                             f.setVisible(true);                      
              return jButton;
    public class Apple extends JApplet {
         private static final long serialVersionUID = 1L;
        final static Color bg = Color.white;
        final static Color fg = Color.black;
        final static Color red = Color.red;
        final static Color white = Color.white;
        public void init() {
            //Initialize drawing colors
            setBackground(bg);
            setForeground(fg);
        public void paint(Graphics g) {
            Graphics2D g2 = (Graphics2D) g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
            try {
                 String filename = this.getName(); //uso il nome dell'applet come riferimento al nome del file da caricare
                 java.net.URL imgURL = DMToolz.class.getResource("images/"+filename);
                 BufferedImage img =  ImageIO.read(imgURL);
                 if (img.equals(null)) {System.out.println("IMG null!");System.exit(0);}
                System.out.println("IMG letta");
                int w = img.getWidth();
                int h = img.getHeight();
                resize(w,h);
                g2.drawImage(img,
                            0,0,Color.LIGHT_GRAY,
                            null);// no ImageObserver
             } catch (Exception ex) {ex.printStackTrace();
                                          System.out.println("Immagine non letta.");System.exit(0);}
    }//end classPlease never mind about some italian text, used as reminder....
    Thanks in advance.

    Read the Swing tutorial on "How to Use Labels" or "How to Use Icons" for working examples:
    http://java.sun.com/docs/books/tutorial/uiswing/TOC.html
    By the way you should never override the paint() method. Custom painting (not required in this case) is done by overriding the paintComponent(...) method in Swing. Overriding paint() is an old AWT trick.

  • Issue with displaying images from bestseller.inc.jsp

    Hello all,
    I'm new in developing with NWDI and I'm having this small problem:
    in bestseller.inc.jsp (which includes productlist.jsp) there are two links with a product's code and a products description, which when clicked, navigate to productDetailsISA.jsp with the details of the product. While the images of all the products from other jsp's (for example from ProductsISA.jsp) display correctly in the ProductDetailsISA.jsp, there is a problem with the images of the products from bestseller and recommendations jsp's (they both include productlist jsp).
    The code for creating the links *in productlist.jsp is the following:
    <li> <a href="<isa:webappsURL name="b2b/productdetail.do"/><%=ShowProductDetailAction.createDetailRequest(product,displayScenario) %>">
                          <%=JspUtil.encodeHtml(product.getDescription()) %>
                        </a> </li>
    and the code for displaying products's images in ProductDetailsISA.jsp is this:
    <td width="7%" rowspan="2" headers="Product image">
                   <img src="<isa:imageAttribute guids="DOC_PC_CRM_IMAGE,DOC_P_CRM_IMAGE" name="webCatItem" defaultImg="mimes/shared/no_pic.gif"/>"   width="250"  height="250"/>
              </td>
    I have no idea how isa:imageAttribute tag works, so I was wandering if this problem is somehow connection with the inner workings of this tag.
    Could someone help please?
    Thank you very much in advance

    I think this is not the right forum to post your Question

  • Problem with displaying images exported to PS

    This is slightly different than the post about TIFF files not displaying properly.
    In Aperture 1.2, when I exported an image to PS and did extensive work on it, and then saved back to Aperture, it would appear in Aperture just as it looked in PS when I saved it.
    However, in 1.5, that does not happen. After I save the image, and then go back to Aperture, all of the changes I made in PS don't appear! However, if I again open the image in PS a second time, it will change to the PS version even before the image gets to PS (I can see it change right when I click "open with external editor").
    Is this a difference with how 1.2 and 1.5 handle the files? I'm guessing it has something to do with image previews, because I chose not to have Aperture generate previews when I installed 1.5 due to the slow-down issues I saw reported here.
    I'm starting to wonder what the point of upgrading to 1.5 was for me... if I can't take advantage of previews (accessing my Aperture library from other apps like Keynote, etc) and if the PS files I work on don't display properly, I'd rather go back to 1.2. This is a major problem in my workflow, since I often spend a lot of time working on images in PS, and I need to be able to see them that way when I return to Aperture.
    I'm hoping there's some setting somewhere I can use to fix this. Is there?

    David,
    I really appreciate your offer to help. However, I have the problem with all images in my library in all projects, so I'm not sure how useful it would be for you to work with a single image I upload to a server.
    I'm having the same problem on my MacBook too, though for some unknown reason there are certain projects on my MacBook that the process works fine with. I cannot tell any difference between those projects (that work) and those that don't.
    What's even more strange... if I quit Aperture, and re-open it, and then go through the process (open a file in PS2, save, return to Aperture) - it works fine! But ONLY ONE TIME. If I try the same process again, on that same image, or any other image in my library, it will not work. It only works the FIRST TIME I do it after opening Aperture. I tested this several times and got the same result.
    I am completely stumped here. I've tried generating previews for a project and turning all of the preview options on, but that doesn't solve the problem either.
    Anyone out there have a clue what might be happening? This is more than a minor inconvenience... if my image management system can't display the image as it should appear, it's unusable.
    Chris

  • Hi friends plz help me with dialog programming

    hi,
    i have developed a screen with flow logic.it has few mandatory fields , radiobuttons,check boxes and pushbuttons such as Create,Save,Display,Back. after entering the values and save i have no problem but when taking back or display it is asking for mandatory field i need not give values for those field to take back.plz provide me with very quick response.
    and how do i save data from selected checkboxes or from radiobuttons to ztables and how do i retrieve data back to radiobutton in selected format .
    kindly help rewarded for answers.

    Hi Sirisha,
    Goto menu painter and give given status for ur program-> go to standard tool bar and double click on BACK and select Function type = E.
    or
    double click on ur PF status  and do the same.
    once you give function type E, write one module under PAI like below.
    PROCESS AFTER INPUT.
    MODULE BACK AT EXIT-COMMAND.
    code for Module BACK
    IF ok_code = 'BACK' OR ok_code = 'EXIT'.
        CLEAR: ok_code.
        LEAVE TO SCREEN 100." This is the screen where u want to come back
      ENDIF.
    ENDMODULE.
    This module BACK is executed wherever u write under PAI when Function type E is defined for Screen Element.
    for more details on this topic. please have a look.
    [http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbaa9535c111d1829f0000e829fbfe/content.htm|http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbaa9535c111d1829f0000e829fbfe/content.htm]
    I hope that it helps you ..
    Regards,
    Venkat.O

  • Plz help me with the workflow.........

    I'm trying my level best to mould my expectations according to the software but till now no success,can you plz explain
    to make the timeline less cluttered and organized we make secondary storylines and compound clips
    since you can't keep too many things in order in a big project you take a portion ,compound it , work in it and come back,
    within the compound clip you put transitions and some secondary storylines get created automatically within the compound clip due to applying transitions.
    When you come back to the main timeline there are several times you have to break apart that compound clip,to now add more shots before and after those individual arrangement of clips ......
    but since it has a secondary storyline in it, it break aparts undoing all the transitions
    if instead of compound clip it is a secondary storyline it creates problem if we have to retime clips the clip again and again leaves its assigned position,nor does it eat on or overlapp the slug it has created with a P tool , when dragged,retiming it increases that clip in both directions thus leaving the assigned place......,or with opacity overlapping or for split screen have to be controlled individually from within the secondary clip in association with another clip below it...........at that moment you definately want to break it apart......
    (I'm assuming that you are understanding I have to work in several layers sometimes six or seven due to complex overlapping ,split screen, keying and titles etc which you can't keep in a linear order)
    Now plz suggest how should I work,
    in my music videos there are more than 300 bits of clips in a 5 minute song......in several layers because of mulitilayer opacity effect and split screens
    it is not possible to cut all the clips first and then put transitions in the end because you have to try arrangement of clips with transitions to see if you get the proper feel of the music else you change the order.......plz suggest me a better work flow.....
    I cannot keyword things in the event browser because keywording such huge number of moments including 2-3 second shots is simply impossible because the process of trying various combinations can only be done when you have them all on the timeline in various layers..........how should I begin and what process should I stick to so that I edit portions finish them come back to main timeline and everything remains unaltered.........Thank you plz help.

    So does this mean......If you can't drag your final work directly from the event browser from the beginning , you are in trouble ?
    Thanks Tom ......................I know you cannot make this software work the way you want the only workflow I see possible is making event browser , the source of your footage at the very start of your project....as if you have planned the editing of all those 300 bits of a music video on the paper before hand......be it organizing clips or using split screen generators the source has to be from the event browser ,once clips are on the timeline the possibilities are too limited.......
    The only way of categorizing clips on timeline are roles which only unhighlight other clips ....it again cannot be used like a selected list of source to make the place less messy.....I think even smart collection works from the event browser not from the timeline because I tried that also.Is it so....?
    A FANTASY ....I wish there was a way where you could select selective clips from the timeline and refer them in a place from where they would all show up like original clips from the event browser so that you could just drag those exact pieces and place one after the other trying combinations and boom........ like you do parts from clips ......but once everything is on timeline I have still not figured out a way that you can have a bank where all those selected bits can be seen even as reference thumbnails and a then they can be placed sequentially on a timeline........dragging , move and pasting , flipping between timelines is the only way of doing it neatly,and that is very tiring and time consuming .....when two timelines can also not be placed in two windows.......I hope you are understanding what I want.......if you can't drag your final work directly from the event browser from the beginning , you are in trouble.
    In earlier versions you could atleast keep all your selected 2-3 second bits or shots on various tracks and just drag them in the final track.....Is there anyway you think can be done in fcpx......I use it because it has some outstanding features other than layers .....else still have to figure out a way....plz help Tom.

  • Plz help me, no display output during boot up of 715 workstation

    now i have a HP 715 model workstation,today, conneted hp monitor..but can't display output during system boot up so i tried  solve this problem,1)changed battery2)removed HDD after reboot system and press ESC key    => now can't use Keyboard..not working key board3)Press Tap key.. Just i think, this problem is system configulation problem. not monitor problem..so i found internet website..but now i can not change configulation who know this problem.plz help me  

    one question in html submit the reslut stored jdbc that value shows barchartAll your base are belong to us!
    You know, while I understand that English isn't your first language (neither is it mine) and there's no need to be perfect: if you can't write an understandable post yourself, consider asking someone to do it for you.

  • Plz help me with wi-fi

    i am not familiar with the wi-fi network. i am useing verizon fios adn i got the free router( MI424WR i believe it is ) i am having trouble conneting to it. any reasons why i can't? only the first to things pop up in settings>wi-fi>wi-fi networks. i don't get the router or DNS but i get the IP address adn subnet mask. can some1 plz help me out here

    Read the posts from Jason C and dantaoist in this thread:
    http://discussions.apple.com/thread.jspa?messageID=6064013&#6064013

  • Can u plz help me with the code to add BWART field to the DS:2LIS_04_P_COMP

    I want to add BWART field from AUFM table to the DS:2LIS_04_P_COMP.
    The AUFM table has key fields as :MBLNR,MJAHR and ZEILE.Can someone plz help with the code to put in the existing function module.I see that both 2LIS_04_P_COMP and AUFM have common field AUFNR process order.
    Plz help ASAP.

    I want to add BWART field from AUFM table to the DS:2LIS_04_P_COMP.
    The AUFM table has key fields as :MBLNR,MJAHR and ZEILE.Can someone plz help with the code to put in the existing function module.I see that both 2LIS_04_P_COMP and AUFM have common field AUFNR process order.
    Plz help ASAP.

  • Plz help me with the font problem T_T

    Could you help me with this problem ?
    Here's my code :
    Font font = new Font("Arial", Font.BOLD, 12);
    Map fontAttributes = new HashMap();
    fontAttributes.put(TextAttribute.WEIGHT, TextAttribute.WEIGHT_ULTRABOLD);
    font = font.deriveFont(fontAttributes);I use this font in the graphics.drawString() method, but it seems like the text is drawn with PLAIN style, no effect of bold at all.
    If i change the WEIGHT_ULTRABOLD to WEIGHT_BOLD, it works, the text is drawn with BOLD style.
    I wonder what is wrong ? I really want the BOLD to be 'bolder', thicker ^.^
    Or is there any other approaches to this ?
    Helppp meeeee plzzzz

    I see the same thing.
    The API for TextAttribute describes WEIGHT_ULTRAWEIGHT as
    specifying "The heaviest predefined weight", but as you point out
    you get plain rather than bold.
    This bug (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4920831)
    describes the problem:
    "Fonts can be created using TextAttributes in a Map. Unlike the standard
    Font constructor, which just uses a boolean 'bold' bit in the style mask,
    the Map can provide a range of values for WEIGHT. In JDK 1.4.2 and 1.5,
    only the weight coresponding to WEIGHT_BOLD creates a bold font-- the
    rest are plain. At a minimum, all values for TextAttribute.WEIGHT that are
    greater than the value for WEIGHT_BOLD should also create a bold font.
    "Furthermore, different weights should (to a point) result in fonts that
    appear to be of different weights, even if there are no corresponding
    underlying fonts. Fonts of increasing weight should display with a
    corresponding increase in boldness.
    "Changes in weight should not necessarily cause a change in advance.
    Synthesized weight changes should impact advance minimally, if at all."
    The evaluation claims that "WEIGHT >= WEIGHT_BOLD will cause a
    Bold font", but I don't see it (compiled and ran basically your code
    with 1.5.0_04).

  • Help required with an image

    Hi all,
    I wonder if someone can help me with the following issue.
    If you see the attached image in the top left hand corner their is a square box which is a different shade to the rest of the header.
    I need to rectify this and blend it in with the rest on the header colour; however, I do not know how to do this and would appreciate some assistance in doing this.
    I'm a noobie to photoshop so any help is much appreciated.

    It seems you've copied another portion of the texture to overlay something you didn't want seen...
    As opposed to copy/paste of a rectangular region, this is almost a textbook use for Content Aware Fill, which should (assuming it works properly) match the pattern and blend the colors.
    Try selecting just the blemish or whatever you're trying to cover, then expand the selection a few pixels, then Edit - Fill - Content Aware.
    -Noel

  • Plz and plz help me with restriction code

    hello to all i have nokia 6288 but when i enter any sim card it want restriction code plz help me thanks allot
    totti

    The reason you are being asked for a code is because the phone is network locked.
    You need to contact the network that it's locked to for the unlock code.

  • Plz help me with this error

    hello plz help me wat i can do for this error and plz also tell me where to place the POI api in tomcat directory.........
    The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 22 in the jsp file: /HSSFExample.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:13: ';' expected
    import org.a
    ^
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:8: package org.apache.poi.poifs.filesystem does not exist
    import org.apache.poi.poifs.filesystem.POIFSFileSystem;
    ^
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:9: package org.apache.poi.hssf.record does not exist
    import org.apache.poi
    ^
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:11: package org.apache.poi.hssf.model does not exist
    import org.apache.poi.hssf.model.*;
    ^
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:12: package org.apache.poi.hssf.usermodel does not exist
    import org.apache.poi.hssf.usermodel.*;
    ^
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:13: cannot resolve symbol
    symbol : class a
    location: package org
    import org.a
    ^
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:74: cannot resolve symbol
    symbol : class POIFSFileSystem
    location: class org.apache.jsp.HSSFExample_jsp
    POIFSFileSystem fs =
    ^
    An error occurred at line: 22 in the jsp file: /HSSFExample.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:75: cannot resolve symbol
    symbol : class POIFSFileSystem
    location: class org.apache.jsp.HSSFExample_jsp
    new POIFSFileSystem(new FileInputStream(filename));
    ^
    An error occurred at line: 22 in the jsp file: /HSSFExample.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:76: cannot resolve symbol
    symbol : class HSSFWorkbook
    location: class org.apache.jsp.HSSFExample_jsp
    HSSFWorkbook wb = new HSSFWorkbook(fs);
    ^
    An error occurred at line: 22 in the jsp file: /HSSFExample.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:76: cannot resolve symbol
    symbol : class HSSFWorkbook
    location: class org.apache.jsp.HSSFExample_jsp
    HSSFWorkbook wb = new HSSFWorkbook(fs);
    ^
    An error occurred at line: 35 in the jsp file: /HSSFExample.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:89: cannot resolve symbol
    symbol : class HSSFSheet
    location: class org.apache.jsp.HSSFExample_jsp
    HSSFSheet sheet = wb.getSheetAt(k);
    ^
    An error occurred at line: 35 in the jsp file: /HSSFExample.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:94: cannot resolve symbol
    symbol : class HSSFRow
    location: class org.apache.jsp.HSSFExample_jsp
    HSSFRow row = sheet.getRow(r);
    ^
    An error occurred at line: 48 in the jsp file: /HSSFExample.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:108: cannot resolve symbol
    symbol : class HSSFCell
    location: class org.apache.jsp.HSSFExample_jsp
    HSSFCell cell = row.getCell(c);
    ^
    An error occurred at line: 48 in the jsp file: /HSSFExample.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:115: cannot resolve symbol
    symbol : variable HSSFCell
    location: class org.apache.jsp.HSSFExample_jsp
    case HSSFCell.CELL_TYPE_FORMULA :
    ^
    An error occurred at line: 48 in the jsp file: /HSSFExample.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:119: cannot resolve symbol
    symbol : variable HSSFCell
    location: class org.apache.jsp.HSSFExample_jsp
    case HSSFCell.CELL_TYPE_NUMERIC :
    ^
    An error occurred at line: 48 in the jsp file: /HSSFExample.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:125: cannot resolve symbol
    symbol : variable HSSFCell
    location: class org.apache.jsp.HSSFExample_jsp
    case HSSFCell.CELL_TYPE_STRING :
    ^
    16 errors
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:248)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:315)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:328)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:445)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:536)

    You can put the POI jar file in the WEB-INF/lib directory of your application, or if you want to use it in multiple applications you can put it in the tomcat 4.1/shared/lib directory.

  • Plz help me with this data insertion code

    Hi,
    I am listing a code below ,I am able to insert only one row of value.
    Then i get SQLException.General Exception and a Lock record MSAccess file is generated where .mdb file is stored.
    public void throwtodatabase()
    String gameid;
    ResultSet rs=null;
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con;
    con=DriverManager.getConnection ("jdbc:odbc:MyData","","");
    Statement stat3=con.createStatement();
    rs=stat3.executeQuery("select * from sudoko");
    while (rs.next()) {
    pctr=pctr+1;
    stat3.close();
    con.close();
    catch(Exception g)
    JFrame ob2=new JFrame();
    JOptionPane.showMessageDialog(ob2,g.toString(), "Message", JOptionPane.INFORMATION_MESSAGE);
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con;
    con=DriverManager.getConnection ("jdbc:odbc:MyData","","");
    gameid="G00"+String.valueOf(pctr);
    PreparedStatement stat=null;
    for (int t1=1;t1<=9;t1++) {
    for (int t2=1;t2<=9;t2++) {
    stat=con.prepareStatement("Insert into Sudoko(gameid,row,col,val) values(?,?,?,?)");
    stat.setString(1,gameid);
    stat.setString(2,String.valueOf(t1));
    stat.setString(3,String.valueOf(t2));
    stat.setString(4,String.valueOf(array_map[t1][t2]));
    stat.execute();
    con.close();
    catch(Exception xd)
    JFrame ob2=new JFrame();
    JOptionPane.showMessageDialog(ob2,xd.toString(), "Message", JOptionPane.INFORMATION_MESSAGE);
    }Plz help.Thanx in advance.

    Have this stacktrace
    java.sql.SQLException: General error
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbc.SQLExecute(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeUpdate(Unknown Source)
    at Sudoko.throwtodatabase(Sudoko.java:1120)
    at Sudoko.generate_random_boards(Sudoko.java:1064)
    at Sudoko.actionPerformed(Sudoko.java:205)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
    n Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
    ce)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

Maybe you are looking for

  • Error executing physical plan: aggregation: not enough memory

    Hi Everyone, I am getting error dumps while executing a report based on an Infocube using BIA. This is the first time we are facing this error, could any body please suggest the possible solutions to resolve this error. Thanks and regards, Sonal Pate

  • Insert current time

    How to insert current date and time in a table. i tried it as: 1) Create table tt ( dt date ); 2) insert into tt values(to_date(sysdate,'DD-MON-YY hh:mi:ss am'); 3) select * from tt; then it shows as 27-FEB-06 12:00:00 AM ---- but current time was 8:

  • Issues with colour management when printing since resetting cs5

    I have recently reset my CS5 so that I could attempt to restore my auto color and auto tone options. Since doing this, my color management is very off when printing.  The images are darker, and more saturated than usual, as well as significant colour

  • Re-Install but no nice properties windows as before

    High all. I had to install Windows 7 but reverted to XP , I didn't like it , too much problems. Everything was perfect according to sound and set-up on both XP and Windows 7. Nice dark property window and a big volume Icon, at the far right on task b

  • Hp 15-r061ne Desktop Flicker

    hello  i just bought hp 15-r061ne  with windows 8.1 pre-installed  my desktop screen is always flicker and windows can't detectmy resolution i set it to 1366*768 but got msg "your resolution is lower than 1200*900" have latest update for 02 disply ad