Is it possible to trigger a JSP ?

Hello All,
Thank you for your answers on all my previous posts,
This time, I was just wondering if it is possible to trigger a JSP to run at a given time of a day ?.
Scenario :
I have done a JSP coding to automatically write an XML file from the database. I use this XML for the RSS feed in my project. If I could automate the creation of XML at a given time of the day, then my RSS feed system will completely be automated.
Thank you for your thoughts and suggestions in advance.

The best way is if you have a Unix flavoured box and can benefit from the cron as the previous posts said. Then use the curl command to essentially ping a website.
I have also used lynx in the past which is gives you the ability to use on windows as well as add session/cookie and better result logging capabilities if necessary.
Hope that helps!

Similar Messages

  • Is it possible to trigger action in backing bean on page unload event?

    Hi,
    There is a RichPopup in my page which has a Listener to save data or not by user choice "Data change detected, do you want to save those changes?"
    I've tried with the javascript event 'window.onbeforeunload', but this way must be fit with a Servlet function which I am not allowed to use.
    The attibute 'onunload' in the tag '<af:document>' seems useless. Even there is few description or example in the 'Tag Reference'.
    So, is it possible to trigger action in backing bean on page unload event? Thanks in advance for helping.
    Viva

    Hi Frank
    Thanks for helping, I've tried in your way. My codes are like below:
    Page codes:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1" clientComponent="true" title="viva test">
          <af:resource type="javascript">
            if (!window.addEventListener) {
                // alert('window.addEventListener is not supported in IE8. Override it!');
                window.addEventListener = function (type, listener, useCapture) {
                    window.attachEvent('on' + type, function() {listener(event)});
            window.addEventListener('beforeunload', function (){performUnloadEvent()}, false);
            function performUnloadEvent() {
              var eventSource = AdfPage.PAGE.findComponentByAbsoluteId('d1');
              //var x and y are dummy variables obviously neeed to keep the page
              //alive for as long it takes to send the custom event to the server
              var x = AdfCustomEvent.queue(eventSource, 'handleOnUnload', {args:'noargs'}, false);
              var y = 0;
          </af:resource>
          <af:serverListener type="handleOnUnload" method="#{vivaTestBean.testOnUnload}"/>
          <!--
          <af:form id="f1">
            <af:commandButton text="Unload" id="cb1" action="unload"/>
          </af:form>
          -->
        </af:document>
      </f:view>
    </jsp:root>The backing bean codes:
    public class VivaTestBean {
        public VivaTestBean() {
        public void testOnUnload(ClientEvent clientEvent) {
            System.out.println("Thanks God");
    }The first way which triggers a 'unload' event by clicking a button DO WORKS. :)
    But when I changed the triggered way by changing the <af:document> to clientComponent as what you did, the 'onbeforeunload' event won't come out when I refreshed or closed the page.
    That doesn't make sence, since I think the two ways to trigger a 'unload' event are the same.
    Edited by: 841766 on 2011-3-7 上午1:13

  • Is i possible to trigger a workflow from the creation of an event in iCal

    Is i possible to trigger a workflow from the creation of an event in iCal
    Or is is possible to create a workflow to ad events to an iCal calendar which then triggers the workflow or is combined with the ad events workflow.
    Graeme

    Hmm, nope. Not that I'm aware of. Very few apps allow you to hook scripts directly to user activity. Finder* is a notable exception. iCal's "publish" feature has the ability to auto-update after user activity, but you'll either need dot mac accounts or your own webdav server to get that working.
    I'd re-consider the idea of triggering a periodic workflow with iCal. That way if the computer is shut down or asleep, iCal will wait to run the workflow at its next opportunity. You could hide the unsightly repeating events in a second calendar so they're out of the way.
    The next best thing is to write a faceless AppleScript application with a long-duration idle handler. The user would simply add it to their login items in System Preferences. This would also resume its cycle after sleep or shutdown.
    Yet another option is to write an AppleScript that can register itself in the crontab. This has the advantage of running at a predictable time. If you're careful, you can even set the script to wake up or power on the computer as necessary.
    * Folder action scripts can be triggered when files are created, moved, or deleted, but not when they're merely updated. This probably rules out much of iCal's activities in ~/library/application support/ical/.

  • Is it possible to trigger an event when clicking context menu trigger icon?

    When opening a context menu on a UI element, is it possible to trigger an event to handle, eg. set the lead selection for this context element to which the UI element is bound, when clicking the menu trigger icon ?

    First, these NW04s menus are not really context menus. They are static menus that are rendered within the view layout. Real context menus will come later.
    There is no "onMenuOpen" event for an application.
    Armin

  • Is it possible to trigger FIPP event (and how?) when parking an FI document

    Hello
    I wander is it possible to trigger FIPP event (and how?) when parking an FI document with transaction fbv1(and not fv60)
    Thx in advance

    Hi,
    In Financial Accounting --> Accounts Receivable and Accounts payable >  Business Transaction> Incoming Invoices/Credit Memos  --> Make and check settings for Document Parking -->  Create Workflow Variant for Parking Documents (Click  this)
    There you have to assign your workflow.
    Regards,
    Surjith

  • Is it possible to trigger the acquisition and recording of data in this condition?

    Hi
    I am a LabVIEW newbie,
    Is it possible to trigger the data acquisition and recording in the following case;
    I have two input signals 1. Pressure Transducer 2. Pulse from a magnetic pickup.
    I have to plot the pressure data against the pulses. Can I make the magnetic pickup signal as master signal to trigger the data acquisition and recording? and at the same time acquiring the pressure data as well.
    How can I do that ?
    Thanks.

    Hi Rich
    Thanks...
    I have PCI - 6033E High resolution multifunction I/O board and NI BNC - 2090 adapter chasis.
    What I am getting is the pressure from the transducer and magnetic pulses.
    Two cosecutive pulses encompass one complete cycle of the combustion process inside the engine.
    I need to record the data for presenting the information offline.
    Since combustion is a highly unstable process I need to get the optimum representative grapgh at a particular engine speed.
    So lets say, I want the magnetic pulse to trigger this the data acquisition for 50 of such pulses, i.e. 50 complete cycles of diesel engine. So that these 50 acquired cycles may be averaged for pressure readings and a single representative curve (graph) may be produced.
    Thanks again
    Message Edited by SeaMist on 06-26-2008 02:49 AM

  • ** Is it possible manual trigger when JDBC is sender

    Hi Friends,
    Is it possible manual trigger to send the new records to the JDBC sender adpter ? Instead of Stored Procedure or SQL statement (Stored Procedure) in 'Query SQL Statement' parameter ?
    The purpose is instead of JDBC poll at frequent interval,we want to send newly inserted record whenever required.
    Any idea friends, to do this ?
    Kind Regards,
    Jeg P.

    Hi,
    You can try this way. On insertion of any record in a table trigger a Stored Procedure which will call the url for activating and deactivating the channel. For more help on invoking the url from Stored procedure, please refer to the link below.
    http://www.lorentzcenter.nl/awcourse/oracle/appdev.920/a96612/u_http.htm#1012294
    Your code will look something like this
    req := utl_http.begin_request('http://host:port/AdapterFramework/ChannelAdminServlet?party=party&service=service&channel=channel&action=action ');
    Thanks
    Amit

  • Possible to trigger HRMD_A IDoc immediately

    Hi experts,
    Can you please let me know if it is possible to trigger an Outbound HRMD_A IDoc immediately i.e. as soon as someone creates a new record for any of the infotypes associated with this IDoc the IDoc is sent; without having to schedule PFAL or BD21.
    Thanks and regards,
    Brendon

    Can you please let me know if it is possible to trigger an Outbound HRMD_A IDoc
    immediately i.e. as soon as someone creates a new record for any of the infotypes
    associated with this IDoc the IDoc is sent; without having to schedule PFAL or BD21.
    Well I think some confusion out here, PFAL or BD21 does not have any control on when the IDOC
    is sent they will just read the infotype data and create IDOCs. WE20 Partner Config has got the
    setting to tell system whether COLLECT the IDOCs in ready state or dispatch as soon as they
    gets creates (PFAL/WE21) Without scheduling BD21/ PFAL you will not have IDOCs itself
    triggering comes later.
    Hope this clarifies.

  • Is it possible to add own JSP tags to the palette?

    Is it possible to add own JSP tags to the palette?
    Currently we are using other JSP tag library like Coldbeans, Display Tag Lib, and JSF tags like ourFaces, etc.
    And we have few own JSF tags and it would be good to keep them in JSC.

    http://www.youtube.com/watch?v=aKxw4_gv2vE
    DISCLAIMER: I haven't tried this myself, but I've seen it posted before.
    Matt

  • Possible to trigger output type through Function module?

    Hi,
    Is it possible to trigger output type through Function modules or through some codings or any standard FM's?
    Regards
    Bala.

    You did not specify what area you need to retrigger an output type for, but here is a sample to retrigger a delivery output.
      CALL FUNCTION 'BAPI_LIKP_PROCESS_MSG_DIRECT'
        EXPORTING
      DYNAMICOUTPUTDEVICE       =
          processing                       = PROCESSING
      SORTMESSAGE               = 1
        TABLES
          deliverynumber                 = delnbrs
          outputtype                       = outputs
          messageprotocol              = bapimsgprot
          return                              = bapiret2.
    Thanks

  • Is it possible to trigger remote R/3 connection through WD ABAP

    Hi Colleagues,
    I am trying to trigger a remote R/3 Connection through WD ABAP. I created an RFC destination through SM59. i tested the connectivity and it works fine from R/3 to R/3. But when i trigger the same code through a WD ABAP application, nothing happens.
    Is it possible to open an SAP GUI screen through the remote connection using WD ABAP? If yes, can you provide me a solution.
    Thanks,
    Gaurav.

    Hi,
    Please refer this link for Thomas's reply
    Calling TCODE on click of LinkToAction UI
    Or
    If you are using the Enterprise portal, create an Iview of R/3 or Transaction where you can give the transaction that you want to open.
    Regards,
    Lekha.

  • Is it possible to trigger a bpel process from a database object.

    Hi,
    We want to schedule a bpel process to run daily .So we want to trigger it from a database job.
    Is it possible to call a bpel process from database..?
    Or
    Is there any way to schedule a bpel process from bpel server it self.
    Thank you
    Gayaz

    If you know about DBMS_JOBs then I would say the easiest way to invoke a BPEL process is via the AQ adapter. You just need to populate an AQ and a way you go. The good thing about this is that if SOA SUite is down when the schedule is run you don't need to retry, it will be picked up when it comes online again.
    cheers
    James

  • Is it possible to trigger an error so that the running stored procedure is stopped?

    Hello all,
    I want to run an existing stored procedure and then I want to manually trigger an error/abort/interruption so see what happens and do some testing with that.
    Is it possible to manually trigger an error/abort/interruption on a running stored procedure so that it is stopped?
    If yes, how can I do that?
    I hope someone has an idea. For me it sounds not really difficult, but I just do not get the idea how to do it.
    Kind regards
    Peter

    Hello Visakh,
    I dont want to modify the existing procedure. I just want to run it and than stop it, but not with the button to stop it, but "kill" it somehow with an error (with not destroying the database).
    Nope you cant simulate an intermediate failure inside procedure code from outside. For that you have to modify the actual sp code itself
    Another way is by doing data manipulation in such a way which causes a error in procedure but for that you need to revisit the logic to ensure you do changes in such way as to cause an error
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Is it possible to trigger download of more than one file in a single click.

    Hi
    Is there a way to initiate download of multiple files by a single click on Button ? I have a download button in my page which on clicking initiates download of a single file. I have a usecacse, where i need trigger downnload of 2/3 files with the same single click. Is it possible ?
    Thanks in advance.

    On solution would be to zip the multiple files into one and send this to the client.
    An other possible way (never tested this) is to use the click on the button to send the files in a sequence. You send the first file, then queue a click onto a hidden button to send the next and repeat this until all files are send. I'm not sure how the client reacts, e.g. if the second file is send while the first file still needs to be accepted on the client or if the user first has to accept the file, download it and then get the next dialog.
    For a sample of how to queue a click onto a hidden button you can check http://tompeez.wordpress.com/2011/07/14/validate-data-before-export-via-afexportcollectionactionlistener-or-affiledownloadactionlistener/
    Timo

  • T's possible to use the jsp to develop stand-alone application?????

    Hello everybody, I would like to know your considerations about this topics: It's possible to use jsp to develop stand-alone application that will be not run on the server but on the local machine?There are some negative aspects on make this? Thank you for your reply

    i don't think you could ever protect the jsp code and it wouldn't do you much good to bother anyway, since anyone with a browser can just "View Source" and see all the HTML on the page anyway.
    the only thing you would want to protect is your java source. you don't have to distribute the .java files with your application, just the .class's. you could try and obfuscate the .class files, but a determined person will always be able to reverse it back to a .java program and read it. it would take a bit of work and knowhow though, so figure out how smart the consumer is going to be and if they will be able to figure out how to reverse .class files back to .java

Maybe you are looking for