How to create an event in web application?

Hi,
I am creating online auction application. I need to have an event trigerred when an auction on an item is finished. How can I do that?
Thank you

You could use the Observer design pattern...You'll find plenty of litterature on the subject.
You'd also want to take a look at how they implement the feature you're looking for in existing auction applications, like Sun's :
http://developer.java.sun.com/developer/onlineTraining/Programming/JDCBook/code.html
Sourceforge's Gavel, which is open source, so you can browse the CVS repository to look for source code :
http://sourceforge.net/projects/gavel/

Similar Messages

  • How to create a file under web application root from java program

    how to create a file under web application root from java program like an action class?

    like an action class?Huh? What exactly is your requirement?
    Creating a file is usually done with java.io API. Read the java.io tutorials how to play with files.

  • How to create iCal events from other applications?

    I want to create event linked with a certain document, e.g. when I've finishes a letter in Pages or in TeXShop, I want to create an event in iCal for reminder. I know, that I can in iCal create events and add the link to the file into the URL field of an event. But I want in Pages, TeXShop, Numbers, … to click: »Create reminder in iCal on <date>.«
    Is there a way for it?

    Cody,
    Read: http://discussions.apple.com/thread.jspa?messageID=8314404&#8314404
    You can use Firewire Target Disk mode: http://support.apple.com/kb/HT1661 to transfer the appropriate iCal files.
    ;~)

  • How to create a account key for application type M ?

    Hi Guys,
    How to create a account key for application type M ? and link the same with
    Gl account.
    thanks.

    Hi
    Please create the account keys or transaction keys in
    SPRO-> IMG-> MM-> Purchasing-> Conditions-> Define Price Determination Process-> Define Transaction/Event Keys
    Thanks & Regards
    Kishore

  • PALM Z22 HOW TO CREATE CALENDAR EVENTS THEN UPLOAD THEM TO THE PALM Z22

    Hello, I would like to know if anyone can advise me on how to create calendar events in say, excel, and then upload them to my Palm Z22.  The reason I want to create them in excel is so that I can also update the file information to my cell phone as well.
    Thanks for your assistance.....
    Tony
    Post relates to: Palm Z22

    Hello Tony,
    If you want to use Excel, then I would suggest that you export your calendar spreadsheet as a comma separated values (.csv) file and then import that data into the Calendar application in Palm Desktop.  Then Hotsync your Palm.
    Alan G

  • How to create progress bar in web page!!!

    Dear,
    I do not know how to create progress bar in web page?
    Please show me the way to solve it.
    Best regards,
    Huy

    God your lucky/lazy
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import javax.swing.*;
    import java.util.*;
    import java.io.*;
    public class ProgressBar extends Applet
      private boolean isStandalone = false;
      private int width;
      private int height;
      private double percentComplete;
      private double fundsTarget;
      private double fundsRaised;
      private Properties values;
      private String propertiesFile;
      private JPanel jPanel1 = new JPanel();
      private JProgressBar PB_FUNDS_PROGRESS = new JProgressBar();
      private GridLayout gridLayout1 = new GridLayout();
      private BorderLayout borderLayout1 = new BorderLayout();
      private JPanel jPanel2 = new JPanel();
      private JLabel jLabel1 = new JLabel();
      private JLabel jLabel2 = new JLabel();
      private JLabel jLabel3 = new JLabel();
      private GridBagLayout gridBagLayout1 = new GridBagLayout();
      private JPanel jPanel3 = new JPanel();
      private JLabel jLabel4 = new JLabel();
      //Construct the applet
      public ProgressBar()
      //Initialize the applet
      public void init()
        try
          jbInit();
        catch(Exception e)
          e.printStackTrace();
      //Component initialization
      private void jbInit()
      throws Exception
        fundsTarget = new Double( 100 ).doubleValue();
        fundsRaised = new Double( 50 ).doubleValue();
        PB_FUNDS_PROGRESS.setBackground(Color.green);
        PB_FUNDS_PROGRESS.setForeground(Color.red);
        this.setLayout(gridLayout1);
        jPanel1.setLayout(borderLayout1);
        jPanel2.setLayout(gridBagLayout1);
        jPanel1.setBackground(Color.white);
        jPanel2.setBackground(Color.white);
        jPanel3.setBackground(Color.white);
        jLabel2.setBackground(Color.white);
        jLabel1.setBackground(Color.white);
        jLabel3.setBackground(Color.white);
        jLabel4.setText(" ");
        jLabel1.setText(" ");
        jLabel2.setText(" ");
        jLabel3.setText(" ");
        this.setBackground(Color.white);
        this.add(jPanel1, null);
        jPanel1.add(PB_FUNDS_PROGRESS,  BorderLayout.CENTER);
        jPanel1.add(jPanel2, BorderLayout.SOUTH);
        jPanel2.add(jLabel2, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0,
         GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 0, 5, 0), 0, 0));
        jPanel2.add(jLabel1, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0,
         GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(5, 150, 5, 5), 0, 0));
        jPanel2.add(jLabel3, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
         GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(6, 5, 4, 150), 0, 0));
        jPanel1.add(jPanel3, BorderLayout.NORTH);
        jPanel3.add(jLabel4, null);
        propertiesFile = this.getCodeBase().getFile().replaceAll("%20", " ")+"funds.properties";
        System.out.println("Properties file at " + propertiesFile);
        values = new Properties();
        try
          values.load(new FileInputStream(propertiesFile));
          fundsTarget = new Double( values.getProperty("TARGET", "100").toString() ).doubleValue();
          fundsRaised = new Double( values.getProperty("RAISED", "50").toString() ).doubleValue();
          System.out.println("target: " + fundsTarget + " raised: " + fundsRaised);
        catch (IOException ioe)
          System.err.println(ioe.getMessage());
        percentComplete = (fundsRaised/fundsTarget)*100;
        System.out.println(percentComplete);
      //Start the applet
      public void start()
        PB_FUNDS_PROGRESS.setMaximum(new Double(fundsTarget).intValue());
        PB_FUNDS_PROGRESS.setMinimum(0);
        repaint();
      //Stop the applet
      public void stop()
      public void paint(Graphics g)
        Graphics2D g2 = (Graphics2D)g;
        PB_FUNDS_PROGRESS.setValue(new Double(fundsRaised).intValue());
        String percent = Double.toString(percentComplete).substring(0, 4);
        jLabel4.setText("Currently At " + percent + "%");
        jLabel1.setText("100%");
        jLabel2.setText("50%");
        jLabel3.setText("0%");
      //Destroy the applet
      public void destroy()
      public String getAppletInfo()
        return "Funds progress applet by A really nice person";
    }

  • How to create facebook event in Xcode 4.6

    Hi All,
    I am doing a Facebook application in ios sdk 6 using Xcode 4.6.
    I have to create a facebook event. I am in pretty confusion that How to create facebook event in my code.
    Can anybody help me..
    Thanks in advance.
    Regards,
    R.V.Lakshmi kanth

    You should update to Xcode 4.6.3, to begin with. Then Google the latest FB iOS API...details should be provided there on usage.

  • Do you know how to create Front Panel like Web,

    Do you know how to create Front Panel like Web, I mean like we pointed the word and click it will do another process instead by clicking push button.
    If possible, i can click the link in the table... Any idea anyone
    Solved!
    Go to Solution.

    Hi ezam,
    can you define more clearly exactly what you would actually like to do, and ill have a further look into it. I think smercurio_fc has understood it as I have, and is right with the activeX.
    any way, give a shout back with exactly what you want to do and we see what we can do,
    Richard
    Richard S
    Applications Engineer
    Certified LabVIEW Associate Developer
    National Instruments UK&Ireland

  • How to create the event in the report for jobs scheduling.

    Hi Experts,
    i have a requirement like as follows:
    The following triggers for Batch Jobs in the SCM system will be created.i.     
    Background Processing Event = u201CAPO Background Processing Eventu201D. After sending the Event, write a Log Report line u201CEvent u201CAPO Background Processing Eventu201D sentu201D.
    Could you please suggest me how we create the Event or which transaction ?
    Please give me a steps for creating events so that based on these events we use
    CALL METHOD cl_batch_event=>raise
        EXPORTING
          i_eventid                      = p_bpeve
          i_server                       = p_server
          i_ignore_incorrect_server      = p_ignore
        EXCEPTIONS
          excpt_raise_failed             = 1
          excpt_server_accepts_no_events = 2
          excpt_raise_forbidden          = 3
          excpt_unknown_event            = 4
          excpt_no_authority             = 5
          OTHERS                         = 6.
    Right now i received message "APO Background Processing Event" is doesn't exists.
    Thanks in Advance.
    Puneet.

    Hi Puneet,
    Goto transaction SM62 and in there to BckProcEvents tab. There you can create the events.
    You just need to specify the name and Description of an event.
    Hope this serves your purpose.
    Thanks

  • How to create the user on Internet Application Server(IAS) control console

    Hi All,
    My Client is asking me for How to create the user on Internet Application Server(IAS) control console 10.1.2( 10g release 2).
    If anyone have the document for How to Create the User on Internet Application Server (IAS) console 10g release 2 , then please send me the document and help me out from this Concern.
    Regards,
    Yadav@intelli.
    Edited by: 851080 on Apr 8, 2011 6:31 PM

    Are you using OID? Can you provide more details about your iAS environment?

  • How to create an Event & schedule a rpt based on results of that Event..

    Help,
    I need to schedule a report, that will run after an event is done. I only want the rpt to run if the event produces more than 1 record.
    I dont know how to create an event? I am assuming I can use a SQL qry as an event. I would like to use:
    select count(*) as RegCounts from [reg contact log] 
    where [due date] = date() +1 and [response due]=Yes
    Erin

    Help,
    I need to schedule a report, that will run after an event is done. I only want the rpt to run if the event produces more than 1 record.
    I dont know how to create an event? I am assuming I can use a SQL qry as an event. I would like to use:
    select count(*) as RegCounts from [reg contact log] 
    where [due date] = date() +1 and [response due]=Yes
    Erin

  • How to create exchange grid in web entry form...

    Hi to all,
    I am new to HFM..my query is How to create exchange grid in web entry form...i try it a lot but it didn't get the solution...
    i did this exchange grid in web grid..any one can share the document or ppt or video clip related to this..which will be helpful for me...
    Thanks

    Hi...
    Its better to create the Exchange Rates in a Data Form than in an Data Grid, so that you can easily Import and Export the form and even can feed the values easily....
    Select the POV like in Scenario-Actual,Year-Your particular year,Period-In Period Dimension do not choose any option so that it can be selected in Columns and Rows,View--the same as Period Dimension,Entity-[None],Value-<Entity Currency>,Account-Do Not select ,ICP- [ICP None],Custom 1-[None], Custom 2-[None], Custom 3-[None], Custom 4-[None]...
    In Columns Select Scenario -Actual,Period-{[Fourth Generation]},Currency-#USD(Default Currency)
    In Rows Select-Account-A#AVGRATE,View-w#Periodic,Currency-C2#EUR
    A#AVGRATE.w#Periodic.C2#CFA and so on for rest of the currencies....
    and same in the below rows for the Closing Rates---- A#CLORATE.w#Periodic.C2#EUR
    A#CLORATE.w#Periodic.C2#CFA
    This might help you.....

  • How to create an export of APEX application with DB?

    How to create the common script of Application an Data Base?
    What is the best way to make an update of my application on host machine, if I develope my application in personal one?
    Regards, Kostya

    Thanx for your reply's
    If I understand the tutorial correctly I should do
    something like this to start the map:
    Map<String, myClass> myMAP = new HashMap<String,
    MyClass>();
    and something like this to add a new instance of the
    class every time:
    myMAP.put(myString, new myClass());
    So this would result a link between the Strings and
    the instance of the Class?
    Thanks
    Message was edited by:
    JasperLevinkyep. the String is the key, and the MyClass instance is the value. to get the value out of the map, use map.get(key)

  • How to create Sub Queries In Webi

    Hi,
    we are creating webi reports by using BICS connection..
    Now my requirement is how to create sub queries in webi.
    Any one give me suggestions how to achieve this
    Regards,
    G

    Hi Bhargav,
    Below is thread related to same topic-
    http://scn.sap.com/thread/3430274
    ~Anuj

  • How to create a event to display records depend on selection ofdropdownlist

    BSP
    how to create a event to display records depend on selection of dropdownlist box,
    Using BHTML,
    thank you,
    regards,
    jagrut bharatkumar shukla

    1) Copy this script to the code
    <script type="text/javascript">
    function displayVacationDates() {   
        for (var i=0; i < document.forms[0].Status.length; i++) {
            if (document.forms[0].Status[i].checked && document.forms[0].Status[i].value=='Vacation'){
              document.getElementById('startDateRow').style.visibility='visible';
              document.getElementById('endDateRow').style.visibility='visible';
             if (document.forms[0].Status[i].checked && !(document.forms[0].Status[i].value=='Vacation')){
             document.getElementById('startDateRow').style.visibility='hidden';
              document.getElementById('endDateRow').style.visibility='hidden';
    </script>
    2) Set initial style to 'hidden'
    <tr id="startDateRow" style="visibility:hidden">
    <td align="left"><blockquote>
      <p><span class="style16 style8"><strong>Start date:
      </strong></span></p>
    </blockquote>                 </td>
    <td align="left"><script>DateInput('VacStart', true, 'DD-MON-YYYY')</script></td>
    </tr>
    <tr id="endDateRow" style="visibility:hidden">
    <td align="left"><blockquote>
      <p><span class="style16 style8"><strong>End date:
      </strong></span></p>
    </blockquote>                      </td>
    <td align="left"><script>DateInput('VacEnd', true, 'DD-MON-YYYY')</script></td>
    </tr>
    3) Call the display script
    <input name="Status" type="radio" value="In the Field" onclick="displayVacationDates()">
    <input name="Status" type="radio" value="Vacation" onclick="displayVacationDates()">
    <input name="Status" type="radio" value="Sick day" onclick="displayVacationDates()">
    <input name="Status" type="radio" value="Admin Day" onclick="displayVacationDates()">
    <input name="Status" type="radio" value="DSR Ride Along" onclick="displayVacationDates()">
    <input name="Status" type="radio" value="ServiceCall" onclick="displayVacationDates()">

Maybe you are looking for

  • Sound on the video in the ipod

    Hi guys! Like most of the people that post here,i have a problem.To put video in my iPod i click "convert selection for iPod", and i synch my ipod after that.But the problem is that i have those video in my ipod but i can't hear the sound of the vide

  • Prints DO NOT come out like I edited them in Lr!

    When I edit my photos in Lr, they look stunning!  When I export them to my computer (pictures) to store them and send them off to a photolab, the quality is awful!  My pictures are very dark, grainy, blurry and sometimes distorted!  For example, I en

  • PrintWindow() API does NOT get an image for Windows created by Java?

    Hi WinXP added the PrintWindow() API that allows one application to take an image copy of another app's window, even if the window is off-screen or obscured, ie beyond the scope of a simple BitBlt. (PrintWindow seems to be a cross-process "extension"

  • Not able to use Bluetooth with Mitsubishi Outlander (2014)

    I have a new iPhone 6 with iOS ver: 8.1.3 and I am able to pair the phone with the car (Bluetooth) system, Bluetooth says it's connected, but I am unable to make/receive calls using Bluetooth. On the phone it shows that it is connected via Bluetooth,

  • Should i initialize the instance variables or not?

    hi guys ,i am trying to learn java therefore if i miss something sorry. for example i have like this a class is it good thing to always initialize those variables or initialize like in this exam and initialize with constructor too ? public class Some