How to change images dynamically in jsp?

Hi All,
i Want to know how to change images dynamically in jsp, for example in any site if u look at advertise or any images, it will be changed after every few seconds.
Please guide me
Thanks
Sandesh S

sandeshas wrote:
Hi BlusC,
i was searching your mail Id to ask the question directly to u,i checked in your blog also, but i didnt get,I want to keep my email spam safe. Only trusted people and direct friends have it. Just use the forums for discussion.
my question is suppose if i want to display and change the advertise(adds from different company ) in my web site,how can i do it by using jsp?
Do i need to create animated gifs which contains all company adds??one might be from movie add,after few seconds next one migth be some other web site add like that, how can i achieve this in my servet,jsp or using struts.You create animated gifs with an [animated gif editor|http://google.com/search?q=animated+gif+editor]. There is nothing what JSP can do for you here.

Similar Messages

  • How to change image dynamically in the edit margin of a report

    HI
    I want to change the image in the edit margin depending upon a value in the report . I have tried to use conditional formatting , but it's giving error ,"value references at above the frequency of the report "
    Please suggest some other means
    thanks

    hi himanshu,
    you can perform this on the basis of LSIND count,
    refer to the folowing code
    APPEND 5 Fcodes to I_BUTTONS TABLE
    set  pf-status 'MY MENU' excluding 'I_BUTTONS'.
      window starting at 2 2 ending at 200 40.
      if sy-lsind = 1.
        do.
          clear: v_chk_bx.
          read line sy-index field value wa_final-vbeln chk_bx into
          v_chk_bx.
          if sy-subrc <> 0.
            exit.
          endif.
          if v_chk_bx = 'X'.
            perform z11_partner_pop using wa_final-vbeln.
          endif.
        enddo.
      else.
        if sy-lsind = 2.
          append 'PART' to i_tab.
          append 'SCHD' to i_tab.
          set pf-status 'MY MENU' excluding i_tab.
          do.
            clear: v_chk_bx.
            read line sy-index field value wa_vbep-vbeln chk_bx into
            v_chk_bx.
            if sy-subrc <> 0.
              exit.
            endif.
            if v_chk_bx = 'X'.
              perform z11_partner_pop_2 using wa_vbep-vbeln.
            endif.
          enddo.
        endif.
      endif.
    reward if helpful
    Rohan

  • How to add Image dynamically in Webdynpro ABAP

    Hi Experts,
    How to add Image dynamically in Webdynpro ABAP.
    My requirement is i maintain all the images in a table.
    image source has to pick the table URl dynamically and display.
    is that possible in webdynpro?
    and also please give the suggesion,
    without using MIME objects is that anyway to get images?
    Thanks in advance.
    Regrads,
    Jeyanthi

    Hi,
      are those icons wou want to display then. he following code will be useful.
    data : lo_IMG type ref to CL_WD_IMAGE.
    LO_IMG = cl_wd_IMAGE=>new_IMAGE( id = img_id SOURCE = 'ICON_BW_APD_TARGET' tooltip = sts_tltp ).
    lo_cont->add_child( the_child = lo_img ).
    here lo_cont is the container where you want to add the image dynamically and source is the attribiute through which you can change the ICON image. this thing you can getit from data base table and change accordingly.
    Regards,
    Anil kumar G

  • How to change images based on action.Even clicking changed images should ?

    how to change images based on action.
    Even clicking changed images should do respective actions.
    and while displaying only one image at a time sholud get displayed.
    I am using three images for a single column of a table in Jsp.
    Any clues.
    Any link for any good javascript html jsp site where i can find some good solution.
    vijendra

    In broad way if i say i have multiple situations in mutiple tables where i need such a logic to operate in for all tables.
    lets say in first time load of page by default one image will be displayed (one with sorted order for first column rest all non sorted)Now after every click to any image respective sort should get called.along with all images should get changed.Here with every function one/two images will get effect at least.
    As in first if i say sort by desc then this image will change rest all will remain in unsort form.
    when i move to other column and click on new image the previos will convert to unsort and new one will convert to sort by ascending. rest all will be in unsort form as it is.
    Now it seems like same logic is required with two three conditions.
    even for everyaction different parametrs has to be passed at differnt situations.
    Any good idea if someone can suggest.
    I will be very greatful for him.
    thanks
    vijendra

  • How to change JNDI dynamically in DB adapter and FTP adapter

    Hi every one,
    Please any one explain "How to change JNDI dynamically in DB adapter and FTP adapter" with screen shots
    Thanks in advance

    YES, very much possible. Only with CRUD operation on a table is possible.
    Please refer the below URL, where you can see the multiple check box selected under "Perform an operation on a table" under Operation Type.
    http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_db.htm#BDCGADFJ
    *7) Give points - it is good etiquette to reward an answerer points (5 - helpful; 10 - correct) for their post if they answer your question.*
    Going forward, please raise this as a separate thread. So that people will get benefited.
    Thanks,
    Vijay

  • How to change image display of my podcast page in iTunes?

    How to change image display of my podcast page in iTunes?

    As far as I understand you need to update the image's link in your RSS XML file.  Be sure to change the link file name even if it links to a different image.
    The XML files associated with podcasts are checked for changes every 24 hours so don't expect this to happen instantly.

  • How to change image in jsp in a web application

    I had created a web application in which I have given the option to change the image in a jsp, and I am saving that image in a folder.
    The image is saved during the run time.But I am not getting that changed image.
    If I restart my server the image is retrieved . What is the solution for getting the changed image during the runtime itself?

    use javascript
    example:
    <img id='img' src="Img1.gif" border=0
         onMouseover="document.getElementById('img').src='Img2.gif'"
         onMouseout="document.getElementById('img').src='Img1.gif'">

  • Proble displaying images dynamically in jsp

    Hi, I am new here. I have to display the images dynamically reading from a database. I have no problem displaying images. When i try to reduce the width in img tag then it is slowly rendering it. How to overcome this.
    <img src="image.jsp?imgID=112" width="150" heigth="130" border="0">
    I am also giving the sample jsp to display
         byte [] imgData = blob.getBytes(1,(int)blob.length());
    response.setContentType("image/jpeg");
    OutputStream o = response.getOutputStream();
    o.write(imgData);
    I want to display the image without any time taken. How could I solve this. Please Help me.
    Thanks.
    Phani.

    You should not crosspost questions. It is rude and a waste of our time.
    Please stick to one topic: [http://forums.sun.com/thread.jspa?threadID=5372144].

  • How to render image dynamically in ADF using URL

    Hi all,
    I have a requirement where i need to render the images dynamically using the url. As the url are of the IPM Application and each of the url is associated to a particular image of a particular document. I have tried making the URL Data Control but couldn't able to get the Image as per the document,even the image is not being rendered onto the page.I want the whole IPM console to be rendered on my jspx page.
    Note- It is not a wsdl url.
    Please suggest how should i implement this
    thanks in advance

    if you decompile the imaging.ear file, there is a web.xml file which you can add the following parameter:
    <context-param>
    <param-name>oracle.adf.view.rich.security.FRAME_BUSTING</param-name>
    <param-value>never</param-value>
    </context-param>
    or take a look at      Receiving "Warning: Unable to load content in a frame. Frame content will load at the top level." When Trying to Use the <af:inlineFrame> Component [ID 1266770.1] on Oracle Support.
    Make sure you take a copy of the imaging app before you make changes. You can then upload back through the weblogic console.
    Sudi

  • How to change the Dynamic Selection screen

    Dear Freinds,
                I have requirement where in on the selection of Dynamic Selections ( iam using PNP logical database) i want to add another fields , could  any one tell me how to change  Dynamic Selections as per my requirement.
    please let me know .
    regards
    divya

    Hi Prat,
               I have done similar way and saved the view ( i.e se80> ediobject>table>table name > given all the tables required for me and i try to saved it is not allowing to save and giving message as empty view cannot be saved. Therefore i have selected the tables which have been added and made one by table and selected them . some how it got saved. Now when i added this name of the view in the custom report caterogy and executed my custom report and selected the > dynamic selections i found as empty and in debugging i can see all the 4 tables which i have mentioed while createing view are there . But i dint understood why the custom View is empty.
    please correct me where i went wrong.
    regards
    divya'

  • How to  change Image in Portal logon page

    Hi
    we installed the portal EP6SP16.can anybody tell how to change the Standard image with my Company's logo.can any provide the document how to do that.please help
    Regards
    Prasad

    Hi
    Goto System Administration => System Configuration => UM Configuration => Direct Editing.
    In the set of properties listed there, change the value of ume.logon.branding_image to the location of your new image. Don forget to restart the portal server after making changes.
    Place the image in the layout folder of your project which is nothing but the modification of the logon par file (com.sap.portal.runtime.logon.par.bak).
    Regards
    Yoga

  • How to change Images with ImageIcon

    Hello everyone, this is my first post on the forums.
    I am struggling at the moment to find a way to change images in my program. I am making a card game and when the user clicks a button it will replace the card he has with another card. I thought the following code would work but apparently it doesnt:
    String cardPathA = "image1.gif";
    ImageIcon imageCardA = new ImageIcon(cardPathA);   //cardPathA for example is image1.gif
    //during the program the user changes cards so it should now show image2.gif
    cardPathA = "image2.gif";
    imageCardA.setImage(cardPathA);The error occurs when compiling and it reads: "+setImage(java.awt.Image) in javax.swing.ImageIcon cannot be applied to (java.langlString)+".
    I have searched all over the internet and I haven't found anything. I would appreciate some help. Thanks :)

    im not really sure i made a quick example to show how I would change the imageIcon in a button, just change the paths for cardPathA and cardPathB for your pictures to get it working.
    The only other thing i can think of is maybe to call repaint() for the components you are trying to change the image?
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class ImageChange extends JFrame implements ActionListener{
             final private String cardPathA;
            final private String cardPathB;
         private ImageIcon myImageIcon;
            private JButton changeCard;
            private int counter;
            private JPanel panel;
            private JButton imageButton;
         public ImageChange(){       
                changeCard = new JButton("Change Button");
                counter = 0;
                cardPathA = "1.gif";
                cardPathB = "2.gif";
                myImageIcon = new ImageIcon(cardPathA);
                imageButton = new JButton(myImageIcon);
            public void makeGui(){
                changeCard.addActionListener(this);
                panel = new JPanel(new BorderLayout());
                panel.add(changeCard,BorderLayout.NORTH);
                panel.add(imageButton,BorderLayout.CENTER);
                this.add(panel);
                this.setDefaultCloseOperation(this.EXIT_ON_CLOSE);
                this.pack();
                this.setVisible(true);
         public void actionPerformed (ActionEvent menuChoice){
                counter++;
                if(counter%2 ==0){             
                    myImageIcon = new ImageIcon(cardPathA);
                    imageButton.setIcon(myImageIcon);
                }else{
                    myImageIcon = new ImageIcon(cardPathB);
                    imageButton.setIcon(myImageIcon);
            public static void main(String[] args){
                ImageChange test = new ImageChange();
                test.makeGui();
    }Calypso

  • How to change image position in PanelStrecthLayout  using css?

    Hi All,
    I am using JDeveloper 11.1.1.6.
    My Scenario is I need to show the image front of the Panel Stretch Layout .I tried to set like Style Class and change the Z-index but it's not working ,
    My Design Like :
    <af:panelStretchLayout id="psl3" inlineStyle="background-color:red" styleClass="ImageStyle">
                          <f:facet name="center">
                            <af:panelStretchLayout id="psl2" topHeight="40px"
                                                   inlineStyle="margin:20px;">
                              <f:facet name="center">
                                <af:panelGroupLayout id="pgl3" layout="vertical"
                                                     inlineStyle="background-color: Green">
                                  <af:panelGroupLayout layout="vertical" id="pgl4"   inlineStyle="margin-top:10px;margin-left:10px;background-color:Green">          
                                  </af:panelGroupLayout>
                                </af:panelGroupLayout>
                              </f:facet>
                            </af:panelStretchLayout>
                          </f:facet>
                        </af:panelStretchLayout>
    My CSS Codes :
    .ImageStyle{
    background-image: url("../img/sampleimage150x100.png");
    z-index:9999;
    background-repeat: no-repeat;
    How to show image in-front of the layout not it's hiding behind the layout ...
    Thanks..

    Hi,
    normally you would use skinning to skin the components. I don't think that layers make a different because with the stretch layout there are no overlapping layers. So maybe we should start with the use case you are trying to implement, I am not sure I understand the sentence: "I need to show the image front of the Panel Stretch Layout". What does this mean "in front" ? Do you want it to hide the panel stretch layout ? What is the use case?
    Frank

  • How to change the dynamic IP address to Static IP Address in Solaris 10X86

    Hi,
    I have installed Solaris 10X86 in a VM.While installing Solaris I have enabled DHCP.So its created with dynamic IP Address.Now I want to change the dynamic IP address to static IP address.Please anyone can help me to sort out this problem.

    Hi,
    I have installed Solaris 10X86 in a VM.While installing Solaris I have enabled DHCP.So its created with dynamic IP Address.Now I want to change the dynamic IP address to static IP address.Please anyone can help me to sort out this problem.

  • How to embed images dynamically?

    HI all , I'm new to flex.
    Here is what I've already done, I use
    [Bindable]   
    [Embed(source="images/xxx.jpg")]
    private var img:Class;
    to embed several images in an application.
    But the source of these images can not be determined until the run time, I got image's url dynamically, and used some variables to store them. For example, an url may refers to an url
    var url:String = "images/xxx.jpg";
    Then I think it's possible to give its value to an image source by using
    [Bindable]   
    [Embed(source=url)]
    private var img:Class;
    However,it doesn't work. there is a compile error, the description is:
    "url" does not have a recognized extension, and a mime type was not provided
    Unable to transcode url
    So what's the problem here, and could any one give me some advice to embed images dynamically?
    Thanks!

    HI
    I don't think you can embed an image dynamically as you need to know the path of the image when you use the embed tag.  The embedding takes place at compile time, and you app would need to be compiled into a swf before your code loads.
    If you need dynamc images in an application then its usually done by loading them when the app is running.  You do this by using for example a HTTP service to load in the image paths.  You can then view them by assigning them to an image tag through Actionscript.
    I hope that helps and I got the idea of what you were trying to do.
    Heres a quick example I used for someone else on swapping images from an arrayCollection.  You could do something like this and populate the arrayCollection using a HTTP service.  Or just access the xml from the HTTP directly for the image paths
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" initialize="init()" xmlns:local="*">
         <mx:Script>
              <![CDATA[
              import mx.controls.Button;
              import mx.collections.ArrayCollection;
    [Bindable]
    private var ac:ArrayCollection = new ArrayCollection([
    {imageTitle : 'Car 1', imageUrl : 'http://www.geekologie.com/2007/12/07/future-car-1.jpg'},
    {imageTitle : 'Car 2', imageUrl :'http://www.speedace.info/solar_cars/solar_car_images/Solar_Wing_front_Japanese_e lectric_powered_car.jpg'},
    {imageTitle : 'Car 3', imageUrl : 'http://www.dezeen.com/wp-content/uploads/2008/09/gem-peapod-car-by-chrysler-llc- et008_027evsqu.jpg'}
    private function showCar(num:int):void {
    img.source = ac.getItemAt(num).imageUrl;
    imgTitle.text = ac.getItemAt(num).imageTitle;
    ]]>
         </mx:Script>
         <mx:Image id="img" source="{ac.getItemAt(0).imageUrl}" width="426" height="243"/>
         <mx:Label id="imgTitle" text="{ac.getItemAt(0).imageTitle}"/>
         <mx:Button label="Button" click="showCar(0)"/>
         <mx:Button label="Button" click="showCar(1)"/>
         <mx:Button label="Button" click="showCar(2)"/>
    </mx:Application>
    Good luck
    Andrew

Maybe you are looking for

  • Error in Function.

    create or replace function get_report ( p_query varchar2 ) return blob is l_cursor integer; l_cursor_status integer; l_col_count number; l_desc_tbl sys.dbms_sql.desc_tab2; l_col_val varchar2(32767); l_report blob; l_raw raw(32767); begin -- open BLOB

  • The Solution to all Connection issues on Windows

    I have had my iPod for a month and a half now, and right off the bat, I noticed it had major problems with connecting to my computer through USB. I had the whole bit, sometimes it wouldn't recognize that it was plugged in, sometimes it said that it d

  • My daughter's Ipod touch is locked  and says to go to iTunes.

    My daughter locked her iPod some how and I can't get it to work. It says to go to iTunes.

  • Want touse AT END OF.. for three fields

    Hi all, I have five fields in my internal table with amount as one field in the table GTAB. fld1 fld2 fld3 fld4 amount and i want to compare three fields fld2 fld3 fld4 and if they are same then add the amount and append to new internla table itab. i

  • ITunes 7.7 hangs system on exit

    I never had a problem with iTunes until the 7.7 upgrade. The system hangs when you exit iTunes. Is there a solution to this?