Writting confirmation message??

Hi all friends,
I am developing one uploading software it is a total automatic process of uploading user only copy the files in predefind folder and click on upload button once and my software starts uploading one by one from queue and move the file one by one into another folder automatically after completion of uploading.After that in between uploading if user copy more files in that folder my software automatically takes those file for uploading not require to click on upload button again.Now I am facing problem on writing confirmation message of uploading of every file on my swing interface which my servlet writing on PrintStream after completion of writing of every file on destination.But my interafce not writing those confirmation messages on textArea but it is writing confirmation message of last file on Dos-Prompt coz iam running my application from Dos-prompt.I want to write every file's uploading confirmation message on textArea of my swing application.Can any one plz guide me how I can do that.Below r my codes:-
swing application(Iam pasting those portion only):-
===================
class Loglater implements Runnable {
String msg;
public Loglater(String s) { msg = s; };
public void run() { log(msg); }
public void log(String msg) {
if (SwingUtilities.isEventDispatchThread()) {
textArea.append(msg);
textArea.append("\n");
System.err.println(msg);
else {
SwingUtilities.invokeLater(new Loglater(msg));
return;
servlet:-
========
import java.io.*;
import java.util.Enumeration;
import javax.servlet.*;
import javax.servlet.http.*;
public class RecvFileServlet extends HttpServlet {
String s,str,str1,filename,path;
public void init() throws ServletException {
super.init();
baseFile = new File(BASE_DIR);
str="false";
str1="false";
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
response.sendError(response.SC_NOT_ACCEPTABLE, "Must use POST method.");
public void doPost(HttpServletRequest request,HttpServletResponse response)
throws ServletException, IOException
PrintStream pos = new PrintStream(response.getOutputStream());
response.setContentType("text/plain");
filename = request.getParameter("name");
path = request.getParameter("path");
File outfile = new File(filename);
System.out.println("path value = " + ((path == null)?("null"):(path)));
System.out.println("name value = " + ((filename == null)?("null"):(filename)));
if (path != null && filename != null) {
outfile = new File(path, filename);
System.err.println("Final output file: " +
outfile.getAbsolutePath());
// create a DataInputStream to read from sender
DataInputStream dis;
dis = new DataInputStream(request.getInputStream());
OutputStream os;
// create file output stream to write the output file
System.err.println("Using output file " + outfile);
os = new BufferedOutputStream(new FileOutputStream(outfile));
int cc;
byte [] buf = new byte[1024];
long tot = 0;
// read from the input stream and write to the file
try {
for(cc = dis.read(buf, 0, 1024);cc > 0 ; cc = dis.read(buf, 0, 1024))
os.write(buf, 0, cc);
tot += cc;
System.err.print("+" + cc + "(" + tot + ")");
catch (IOException ie) {
try { os.close(); } catch (Exception e2) { }
pos.println("Problem : " + ie.getMessage());
// done reading and writing, close the file output stream
System.err.println("Write" + tot + " bytes.");
os.close();
// Send back a response message to the application
pos.println("File" +" "+ filename+" "+"Upload Completed !");
Regards
Bikash

OK, he must have just put that limit in because of some reports of looping, although when I tested it, it seemed to work.
If you are happy with running javascripts, there is a java script to do the same thing in the Apple iTunes COM SDK which you can download from here:
http://developer.apple.com/sdk/itunescomsdk.html
I wouldn't bother unless you have some knowledge of how to run scripts from the cmd Window.
EDIT added later, sorry I am going mad here, I was talking about another script. What you need to do is to delete your iTunes preference files which resets iTunes to the state it was in when you first installed it.
May need to make hidden files visible
My Documents>Tools>Folder Options>View
Check Show hidden files and folders
-- Quit iTunes
-- Delete C:\Documents and Settings\<your username>\Application Data\Apple Computer\iTunes\iTunes.pref and/or iTunesPrefs.xml
-- Delete C:\Documents and Settings\<your username>\Local Settings\Application Data\Apple Computer Inc\iTunes.pref and/or iTunesPrefs.xml
For Vista the files are in:
C:\Users\username\AppData\Local\Apple Computer\iTunes
C:\Users\username\AppData\Roaming\Apple Computer\iTunes

Similar Messages

  • Issue with page processing - confirmation message & show /hide a button..

    Hello,
    I am working on a to do list application.
    I have events and for each event, I show list of tasks (grouped in reports based on the calculated task's status).
    In one region I have a drop down list of events and a Select Event button.
    For each task, I had to create a CLOSE option (initially I used a link, but the requester wanted a confirmation before closing the task).
    Now I have a checkbox for each task (generated dynamically with apex_item.checkbox(1,task_id)).
    Closing a task in my application means to set the end_date to sysdate.
    I followed the instructions from
    http://download-west.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/check_box.htm#CEGEFFBD. I've created also a button and a process and updated the sql from "delete" to "update".
    The process is set: OnSubmit - After Computations and Validations; Run Process Once per page visit (default).
    The issue number 1 is that I see the confirmation message (that tasks have been closed) every time I reload the page (the same when I click Select_event button).. not only after I press on that Close_task button..
    For issue number 2, I have to mention that I've added a condition to show / hide the Close_task button, only if I have at least 1 task in the report.
    The issue number 2 is that I see the button only if I click 2 times on the Select_Event button.. The same is for hide.
    I feel like I am missing something very important about how to synchronize different events(buttons clicks), processes..
    help..?
    Thank you!
    Anca

    This forum is magic..
    As soon as write here, I find the answer!
    Issue 1: I fixed it by specifying this: When Button Pressed (Process After Submit When this Button is Pressed) and my button. I miseed this 1st time.
    Issue 2: I moved the button after the report.. and now it's working just fine!
    I did this about it for some time before asking the question here.. but I just had to write here and got the right answer ;)
    Have a nice day!
    Anca

  • HTML DB  Delete confirm Message

    I have a Delete button and I have TWO QUESTIONS for this Delete button.
    1- How do I implement confirm message to allow the user to either confirm or
    cancel?
    2- How do I have a popup that was three buttons, namely [Delete One Record],
    [Delete All Record] and [Cancel].
    If the user click on [Delete One Record]. One selected record is deleted.
    If the user click on [Delete All Record]. One all records are deleted.
    [Cancel] do nothing.
    Help!

    The javascript confirm popup only has OK and CANCEL options. If you want other options, you'll have to write them yourself (or find one that someone else has already written).
    If you don't want to do that, I have a suggestion: instead of putting two DELETE buttons in the confirm popup, put two buttons on the web page, one for DELETE MARKED RECORD and one for DELETE ALL RECORDS. Each would then call its own individual javascript confirm. Each button would have a different request associated with it, so your process would know which button had been selected from the page.

  • How to display a confirmation message to the second stage approver.

    Hi,
    I am working on an application which involves 2 stages of serial approvals. After the first stage approval, the request is forwarded to the second stage. When the second stage approver approves the request, the workflow proceeds with the user creation. I would like to let the second stage approver know about the status of user creation after he clicks the approve button. It can be just a simple message saying that the user creation has been successful or unsuccessful.
    My question is how is it possible to show this confirmation message to the second stage approver after the user creation process?
    I tried to use manual action. But it is not working(probably because the owner of the workflow is different from the second stage approver). Is there any other way to implement this?
    thanks,
    manoj.

    It is really simple to implement, you have to just write another manual action to second supervisor after user creation and pass the result to manual action.
    Hoping you are tried to create simple user with out assigning so many resources otherwise it will take time to load.
    Please let me know if you face any issue to implement.

  • Last Confirmation Message

    I am having a problem with oracle forms 6i, the problem is that when I have changed something in my form and exit the form through the X button in the form it asks for confirmation if I want to save the changes from my form. How do I deactivate this confirmation message when I close my form. Is there a trigger to validate, or better yet which trigger fires at last before or on exit of my form?

    Hello,
    Write following code at KEY-EXIT trigger at form level or on BUTTON which closes the form.
    exit_form(no_validate);
    Please mark if it help you or correct
    Regards,
    Danish

  • Presentation properties-Changing the confirmation message!

    Hye All,
    In presentation properties, there is a property called "confirmation message" on submit or cancel. If I write something in that then it popups that message on clicking submit. The option in that pop up comes as OK or CANCEL. I want to change those two buttons as SAVE and EXIT. Can anyone tell how to do that. Thanks in advance.

    Hi,
    Everything you have mentioned is possible in the form itself. Just write the valid script at valid event of valid field.
    1) For example in the form, if user puts value_A in field_1, then, the field_2 should be greyed out.
    Ans: Write on change event of Field1:
    if($.rawValue eq "value_A")
    then
    Field2.access = "readOnly"
    Field2.fillColor = "192,192,192"
    endif
    2) If user puts value_B in field_3, then, system automatically populate the value_C in field_4 in order to let the user make easy- user friendly
    Ans: Write on change event of Field3:
    if($.rawValue eq "value_B")
    then
    Field4.rawValue =  "value_C"
    endif
    3) If user puts value_D in field_5, then, only allowed value in field_6 is value_E, if by mistake user puts value_F in field_6, then, system should throw error message
    Ans: Write at exit event of Field6:
    if(Field5.rawValue eq "value_D" and $.rawValue ne "value_E")
    then
    xfa.host.messageBox("Wrong Value", "Error", 0)
    endif
    For such type of scripts you can refer to designer help also. So please check there before posting your query that would save your time.
    Regards,
    Vaibhav

  • HT1498 Where does the confirmation message appear?

    The rental instruction article is not very clear without visual cues or elaboration.  When and where does the confirmation message appear after renting a movie?  Do I have to keep my Apple TV on while waiting for the confirmation?  Also, my movie "top shelf," that the article refers to, is crowded with advertisements or movies with numbers under them (which I have not rented), depending on what the writer means by the "top shelf."  Sheesh.

    Your 'question' is rater unclear but here. Go watch this video, around the 5:10 mark you might get your answers, if what you're asking is how to rent a movie.
    http://www.youtube.com/watch?v=i_GUuJyyyRQ

  • Prob.. confirm message

    hey...
    its the updation query.In this page when i click the update button it updates the values in the row..and this query is working...
    I want to do that..when i click a update button it gives me a confirms message whether did u want to update the row and also displaying the particular gl_code no in that confirms message.when i click on yes it updates the row..otherwise it doesnot.
    after updation it shows message that this particular gl_code no is has been updated.
    <%
    String action = request.getParameter("action");
    if (action != null && action.equals("update")) {
    conn.setAutoCommit(false);
    PreparedStatement pstatement = conn.prepareStatement(
    "UPDATE gl_mast SET gl_descr = ?, db_amt = ?, " +
    "cr_amt = ?, gl_type = ? , gl_pct = ? WHERE gl_code=?");
    pstatement.setString(1, request.getParameter("gl_descr"));
    pstatement.setFloat(2,Float.parseFloat(request.getParameter("db_amt")));
    pstatement.setFloat(3,Float.parseFloat(request.getParameter("cr_amt")));
    pstatement.setString(4, request.getParameter("gl_type"));
    pstatement.setFloat(5,Float.parseFloat(request.getParameter("gl_pct")));
    pstatement.setInt(6,Integer.parseInt(request.getParameter("gl_code")));
    int rowCount = pstatement.executeUpdate();
    conn.setAutoCommit(false);
    conn.setAutoCommit(true);
    %>
    <%
    Statement statement = conn.createStatement();
    ResultSet rs = statement.executeQuery
    ("SELECT * FROM gl_mast ");
    %>
    <form action="gl_update.jsp" method="get">
    <input type="hidden" value="update" name="action">
    <tr>
    <td><input value="<%= rs.getInt("gl_code") %>" size="5" name="gl_code"></td>
    <td><input value="<%= rs.getString("gl_descr") %>" size="55" name="gl_descr"></td>
    <td><input value="<%= rs.getFloat("db_amt") %>" size="12" name="db_amt"></td>
    <td><input value="<%= rs.getFloat("cr_amt") %>" size="12" name="cr_amt"></td>
    <td><input value="<%= rs.getString("gl_type") %>" size="3" name="gl_type"></td>
    <td><input value="<%= rs.getFloat("gl_pct") %>"size="5" name="gl_pct"></td>
    <td><input type="submit" value="Update"></td>
    </tr>
    </form>

    int rowCount = pstatement.executeUpdate();
    conn.setAutoCommit(false);
    conn.setAutoCommit(true);
    Just a doubt... could you tell me why you are doing this?
    ***Annie***

  • Ipod not syncing with itunes. delayed write failed message

    yes i know there are already posts with similar problems but i cant find any with working answers...if answers at all. so sorry if this annoys you but im helpless.
    i have a 80gb ipod classic (with the click wheel thing) and whenever i connect it to my pc it comes up on the my computer screen under devices with removable storage. . I can go through files etc as i have disk use enabled but for some reason it wont show up on iTunes. i have had the ipod for about 6-7 months and before everything would work fine. just recently it started playing up and wont appear on itunes. i did the 5 R's thing but no luck.
    also i formatted the ipod and then it shows up on itunes but tells me restore to factory settings...which i follow i let it do everything but then nothing happens and then it doesnt appear in itunes as it said it would.
    oh yh i also get a message pop up out of the task bar saying 'delayed write failed' while the ipod is plugged in my pc is very very slow until the write delayed message shows up. then after this message i get a message in itunes saying ipod was detected but couldnt be identified. something along those lines.
    there is also a file in my ipod sayin metadataneverindex. it is 0kb so could it be that which is causing the problem. as far as i have read here and there that it is for mac but i use windows xp. is this the problem?
    im at my wits end as i use my ipod a lot and would really really appreciate if anybody could help me out.

    Go to iTunes>Store and Authorize the computer. It will say if it is authorized when you try to authorize it again.
    Is the the computer you last synced with? You did not answer that question.

  • Jdbc adapter error on confirmation message in message monitor (rwb)

    I have the scenario iDoc -> PI 7 - > jdbc (AS400 odbc driver).
    When I do INSERT statements, the data is stored in the Database and the RWB message monitoring shows status Successfull.
    However, for every insert, an other message shows up in the message monitoring with reversed Sender and Receiver (so it looks like a confirmation message is trying to find its way back to XI). This message first is is Status "Waiting", and after some time gets in Status "System Error".
    As I am not expecting any responses in my XI configuration (as I have no place to send them to), I want to stop these messages showing up in the Adapter Engine (as there will be many Error Status messages that are of no interest to me).
    How can I stop these messages, or what should I do in XI to process them (and dump them in my receiver determination). I have NO  BPM involved .

    Hi,
    For each open connection a entry is made j2ee stack.So when the it reaches to max and execption is thrown.
    In Jdbc adapter configuration -> advance mode -> Set -> Disconnect from the database after processing each message.
    Should solve the prob
    <b>Cheers,
    *RAJ*
    *REWARD POINTS IF FOUND USEFULL*</b>

  • Exporting to PDF - Selection Formula confirmation message

    Hi,
    We're using Crystal Reports 11 from within a Delphi 7 application which, on a timed schedule, loads data into a MS SQL server database and generates and prints or e-mails a report of the data loaded in PDF format. This process should be automatic and not require monitoring but we're now seeing the report generation being stalled by a confirmation message appearing when the report is generated. The message reads:
    Confirm
    Selection Formula for {Report Name} to Printer   // or To Export
    {Selection Formula Here}
    Continue?
    (RETRY=edit with Crystal, All=copy to clipboard)
    Buttons: Yes No Retry All
    Any help appreciated.
    Thanks,
    Garry

    I'm wondering if this could be easily fixed by going to the links panel and then use the "Copy Links To" and set up a new links folder for the job.
    That would copy all the links and then relink to that folder - right?
    Perhaps that's a quick way to get rid of this problem.
    It could be anything though - I've had weird, but not this problem, of files that are on a server can cause link problems.
    I don't know - it's a one of those have to sit down and look at the files to see what's going on situation - like Bob already said.

  • Adding a link to confirmation message

    I noticed there is no link option for text in a confirmation message.
    Am I missing something? Or is there a workaround? Adding HTML?
    Thank you very much for your help,
    Sacha

    Sorry, we currently don't support inserting links into a confirmation message.
    thanks
    Roman

  • How to get the User input of Dynamic Action confirmation message ?

    Hi Guys,
    I'm using apex 4.1,
    I have added a confirmation message box as page Dynamic Action. How can i get the user input of that confirmation pop up ?
    Thanks

    Hi,
    you don't directly get the user input. But you should still be able to get what you want. Let's assume you have a dynamic action which fires for a "Change" (or any other) event and which has two or more actions
    1) Confirm
    2) Execute PL/SQL Code
    If the user clicks Cancel/No in the confirm dialog, APEX will stop the execution of this dynamic action and not run "Execute PL/SQL Code".
    Hope that helps
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Button not disabling using Java Script after confirm message in button

    I have a STAGEDATA button on a form with the following code to prevent Resubmissions (Apex 4.0)
    Action When Button Clicked:
    Action: Redirect to URL
    Execute Validations: Yes
    URL Target:
    javascript:if ( apex.confirm('Have you saved the data on the current page? Please confirm.','STAGEDATA') ) {javascript:this.disabled=true;this.value='Staging data...';apex.submit('STAGEDATA');}
    When I click the button, the confirmation message is displayed.
    However, after the confirmation message is displayed, the button is not disabled and the value does not show, while post processing of the page takes place before moving to the next page.
    Am I missing something?
    Appreciate your help. Thanks in advance

    Hi,
    try adding
    <script>
       alert('Testing');
    </script>
    This actually adds the script to the page body and not the header as af:resources does
    Frank

  • POWL :IF_POWL_FEEDER :2 Confirmation Messages

    Dear All
    We are implementing this POWL interface and overriding its GET_ACTION_CONF method as well to get the confirmation pop-up message .
    However there is a new requirment to show another popup on clicking of yes button of this popup. I am not sure how can we do that . Is it possible for anyone to share some experience as how can we implement 2 confirmation messages in POWL though we only have one method available to us
    Thanks and Regards
    Gaurav

    Hi,
    I faced with the same problem and I found the class CL_POWL_RUNTIME_SERVICES (POWL runtime services) using the follow methods:
    GET_CONTENT_VALUES
    SET_CONTENT_VALUES
    Example:
    Data:
        L_PARAMETER_VALUE TYPE STRING,
        ST_ADDITIONAL_PARAMETER TYPE POWL_NAMEVALUE_STY.
      CL_POWL_RUNTIME_SERVICES=>GET_CONTENT_VALUES(
        EXPORTING
          I_PARAMETER_KEY   = 'ACTION_VIEW_ID'
        IMPORTING
          E_PARAMETER_VALUE = L_PARAMETER_VALUE ).
      If not L_PARAMETER_VALUE is initial.
        ME->GC_ACTION_REQUEST_VIEW_ID = L_PARAMETER_VALUE.
      else.
        ST_ADDITIONAL_PARAMETER-KEY = 'ACTION_VIEW_ID'.
        ST_ADDITIONAL_PARAMETER-VALUE = GC_REQUEST_VIEW_ID_INBOX.
        CL_POWL_RUNTIME_SERVICES=>SET_CONTENT_VALUES                                                                         ( ST_ADDITIONAL_PARAMETER ).
        ME->GC_ACTION_REQUEST_VIEW_ID = GC_REQUEST_VIEW_ID_INBOX.
      endif.
    Keep it in mind, if you have on or more POWL's queries, the parameter's value will be shared for all them.
    Regards,

Maybe you are looking for