How can I add an Image to a jsp from different paths???

Hi,
I am trying to include an image to my jsp from a directory which is not located under my jsp's directory. In other words, is it possible to put my jpeg file whereever I want in my C folder and still be able to add it into my jsp?
Thanks,
Alex

That is not quite right. The image must be in a directory that is under the web server's view. JSP has nothing to do with images, the browser loads images separately after parsing the HTML results to find out what images it has to load. The images must be in a place that is servable by the web server being used.
If you were just using Tomcat as a web server, then you would have a web application directory "myapp". The images need to go under "myapp" or in any subdirectory, except the WEB-INF directory, which is a special case.

Similar Messages

  • How can we add a control on our .jsp webpage for uploading several image fi

    How can we add a control on our .jsp webpage for uploading several image files as done in gmail attachment, Where a Remove button also appears if we wanna remove the particular attachment.

    The SCOM Management Server is in Domain A.  I've tried it already and it has failed.  
    So just to clarify the method I used was to go to Administration>Security>User Roles.  Then New User Role>Read-Only Operator.  In the Create User Role Wizard I then gave the User Role a name, Clicked "Add" under User Role Members.
     Then the Select Users or Groups window pops up and I changed the Locations from Domain A to Domain B and searched for the user, which it's able to find, then clicked "OK" to add it to the User Role members which it does just fine.  On
    the next page which is Group Scope I checked the one group I want this account to have access to and then click next.  This brings me to Dashboards and Views where I click the radio button for "Only the dashboards and views selected in each tab are
    approved" and chose the folder of dashboards I want this account to access and then click next.  This brings me to the Summary and I click "Create".  At this point it thinks for a moment then closes out the wizard but the new Read-Only
    Operator does not appear.  I then look in Event Viewer and see the Event I pasted above.
    Am I doing something wrong here?  Any guidance on how to get around this issue would be much appreciated.
    Thanks,
    Jake

  • How can I add an image to a dowload, specialy if I bougth from I tunes?

    Hello
    How can I add an image to a dowload, specialy if I bougth from I tunes?

    That is not quite right. The image must be in a directory that is under the web server's view. JSP has nothing to do with images, the browser loads images separately after parsing the HTML results to find out what images it has to load. The images must be in a place that is servable by the web server being used.
    If you were just using Tomcat as a web server, then you would have a web application directory "myapp". The images need to go under "myapp" or in any subdirectory, except the WEB-INF directory, which is a special case.

  • How can you add an image in Mail without being an attachment?

    How can you add an image in Mail without being an attachment?
    In otherwords I'd like to put my logo in the email not as an attachment but as an image.
    Is there a simpel solution to this problem?

    PBN1 wrote:
    How can you add an image in Mail without being an attachment?
    You don't.
    It's not possible. The e-mail protocol is designed for text; anything else has to go as an attachment.
    Different mail clients (such as Mail.app, the mail client bundled with Mac OS X) may have different ways of handling such attachments, but they are still attachments. Each mail client has its own rules and methods, so one may display a picture as if it were in the body of the message, but another client may do something completely different.
    A way of faking it is to format your message in HTML (which is a kind of text). The image is hosted on a remote server, not added to the message; instead, you include a link to it in the body of the message, as you would when building a web page. (This is also what the two tips helpfully provided by X423424X do, except that the link to the image is added in the signature, rather than the body of the message.) What exactly happens to it is, again, at the discretion of the mail client. In my case, for instance, displaying images in HTML messages is turned off, and will stay resolutely off.

  • Someone stole my iPhone I have find my iPhone app but it's not working how can I add my iPhone to d app from my iPad???

    Someone stole my iPhone I have find my iPhone app but it's not working how can I add my iPhone to d app from my iPad???

    Having the app is irrelevant.
    The ONLY thing that matters is whether "Find My iPhone" was enabled on the missing device before it was lost/stolen.  If it was not enabled, there is nothing that can be done.

  • How can I add music to my itunes library from my other ipods?

    How can I add music to my itunes library from my other ipods?

    The sync is one way - computer to ipod.  The exception is itunes purchases:  File>Devices>Transfer Purchases

  • How can i add movies to my ipod  touch from my itunes account?

    how can i add movies to my ipod  touch from my itunes account?

    SYnce them to the iPod from your iTunes library.
    Go to iTunes>Help>iTunes Help>Sync your iPod.... and follow the instructions.

  • HT5616 How can I use my apple ID to buy from different app stores (different countries)?

    How can I use my apple ID to buy from different app stores (different countries)?

    You can only use a country's store if you are in that country and have a billing address in that country on your account - are you in the country that you want to buy content from ? If you are then you can update the billing address on your account to be your address there (if using a credit card then that will need to have been issued by a bank in that country) via the Store > View Account menu option on your computer's iTunes.

  • How can you use one image and edit it three different ways to export later?

    I am a new Lightroom 3 user.  How can use the same image and edit it multiple ways to produce mulitple images to later export?  For example,  I have a picture of a bride and groom.  I want to use that image and create a color image, a black and white image, and a close up of their hands.

    Do I need to do either of those options before I start editing the image at all?  For example,  what if I am working on the image and doing some creative edits.  Then I think of another option that I could do.  Is it too late at that time or can I still get the original image to begin with?

  • How can i add new files to my ipod from a different computer  without losing the added files on my ipod?

    how can i add new files to my ipod touch from a diferent computer without losing the added files already on my ipod?

    Email them? Use DropBox?  What type of files?

  • How can I add an image to a project and change it at runtime?

    I'm using JBuilder6 and I thought I saw a control to add images but I can't find it. I also wanted to be able to change the control at runtime. Also how should I specify the path so it knows how to use it? I hate to hard code one in. Since this is probably gonna be ported to other OS does Java have a way around this? I was going to put the images into my project's directory. For me to be able to just include the file w/the extension do I need to put it in the src folder or will the main directory be accessible?

    To add an image, or other source file with JBuilder, you have a button call "Add to project", his icon is a folder with a green cross.
    To call the Image os independant, I sugest you to put your images in a folder "image" in your project folder. Then to call them, you could use this :
    image=new ImageIcon(AClass.class.getResource("image"+java.io.File.separator+imageName));Where AClass is a class of your project, in general, the class where you call getRessource;
    "image" is the name of the under folder where are the image in your project folder;
    imageName is a string with the name of the file witch contains the image, for exemple : "my image.gif"I hope I help you.
    JHelp.

  • How can I add an Image to a text

    Hello
    I want to add a image into the block of text as in the
    following link:
    (you can see a image in yellow color=50 years is aligned with
    the text)
    http://www.gammonconstruction.com/hk/eng/home/default.html
    How can I do this in DW-2004? do i have to use CSS here?

    Yes use css
    .imgright {float: right; padding: 10px;}
    or to the other side
    .imgleft {float: left; padding: 10px;}
    changing the padding to suit.
    and then apply the class to your image. eg here:
    http://www.dreamweaverresources.com/tutorials/images_text.htm
    Nadia
    Adobe® Community Expert : Dreamweaver
    CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    ~ Customisation Service Available ~
    http://www.csstemplates.com.au
    ~ Forum Posting Guidelines ~
    http://www.adobe.com/support/forums/guidelines.html
    "ldfinhk" <[email protected]> wrote in
    message
    news:evt8t6$jed$[email protected]..
    > Hello
    >
    > I want to add a image into the block of text as in the
    following link:
    >
    > (you can see a image in yellow color=50 years is aligned
    with the text)
    >
    >
    http://www.gammonconstruction.com/hk/eng/home/default.html
    >
    > How can I do this in DW-2004? do i have to use CSS here?
    >
    >

  • How can i add an image to a caption in a slideshow?

    So i have a slideshow with 3 images and 3 captions. i want to add a different image in each caption. how can i do this? thanks.

    Helo,
    In order to do this, first place the image anywhere on the page, size it according to the requirement.
    Then select the image nad cut it (Edit>Cut). Now double click on the Caption container and once you see a blinking cursor in it (to enter a text) paste the image there.
    You get to other images/Captions by clicking in next button and repeat the process to add images in other captions.
    Hope this helps.
    Regards,
    Sachin

  • How can I add an image to simply work on it ?

    How do I add images to my photoshop library? said to just drag and drop. I tried that but no luck.

    Yes that was my first time using it.   I couldn't put an entire image in the library because the Library is only 1 panel for the whole Photoshop session it seems.  You can open many images but there is only 1 library that holds elements for all images coming and going, the best I can tell.
    It sorta acts like Bridge's Collections panel.  It's just a holder for elements.
    I really need to learn that tool.   Too late tonight...
    Just looked into Libraries,  It is saved forever until you delete the Libraries.  It is in fact an Asset Holder.

  • How can I add new images to a saved book in Lightroom 4? Help please!

    As the title suggests, I have created a saved book in LR4. I saved it not because I had finished but because I wanted to protect my work to date. Now I cannot add new images, although I can work with (move and remove) the exisintg images in the book.
    I'm new to LR and can't help but feel that I'm missing something obvious. Any advice would be greatly appreciated!
    Thanks
    Graham

    Graham, switch to Grid view and drag the new photos to the book collection, which you'll find in the Collections panel.  Then flip back to the Book module and you'll find the photos sat there in the Filmstrip waiting to be added to the book design.

Maybe you are looking for

  • General Settings Problem.

    Hi Experts !!! Whenever i changing settings in General Settings , it is throwing error as " CANNOT UPDATE WHILE ANOTHER USER IS CONNECTED TO THE COMPANY. " please help Regards A S V amsi Krishna

  • Mapping in BW

    Hi Gurus Would anybody please tell me what is the meaning of mapping in BW? when actually it takes place ? Appreciate your help. Kris

  • MAJOR PROBLEMS!!!! pleassee help me :'(

    Last night at 11:30 I went to go sync my iPod (8 GB touch) becuase I wanted to update teh photos. I walked away for 1 : 00 minute. I come back....it says that it's done, but only 108 photos have been transfered/are on the device, there should have be

  • Auto Lock frequency is not long enough

    I need to be able to have more than 5 minutes before an auto-lock occurs. We are using iPads to connect to a patient's Electronic Medical Record via a Terminal Server. It usually takes more than 5 minutes to see a patient and when the Auto Lock activ

  • Troubles with sb0570 and sb0410 ca

    Hi Friends i bought two sound cards of sb0570 and sb040 and i installed the first one in dell precision 670 and the second one in dell precision 650. for the sb040 i installed the drivers from creative cd itself and for sbo570 i dowloaded from creati