Retrieving and Resetting textEdit Content Using JavaScript

I need to retrieve the content within a textEdit box using JavaScript, and then append a String to that content, and re-enter that content as the inner content of a textEdit box.  Does anyone know how to do this? 
I tried using jsObjectNeeded for textEdit, but it is an invalid parameter for that object.  I also tried grabbing the ID in a round-about way in JavaScript using _1texteditor or _1htmlbeditor, but I get an "Object Expected" error everytime.
Here is the item I am working with, and within my JS method, I need to grab the text inside, append a string to it, and reset that new content as the text within the edit box.
<hbj:textEdit id="summaryBox"
   text="Add summary here."
   wrapping="SOFT"
   tooltip="Add summary here."
   rows="5"
   cols="70">
This is the content inside the box.
</hbj:textEdit>
Thanks in advance for your help...

Thank you for your help, guys, but neither suggestion solved my problem and I solved it on my own.  You have to find the parameter ID through a line of Java, like Damian had mentioned about an ID, but I was looking for the value within the textEdit, not the ID. 
In the JavaScript method, you set a variable to the Java variable, which found the parameter ID.
Then, using that JS variable, you do:
var blah = <%=javaParameterId%>;
var funcName = htmlb_formid+"_getHtmlbElementId";
func = window[funcName];
var textEditField = eval(htmlb_formid + "." + blah);
var wordsWithTexEdit = textEditField.value;
Thanks anyways...

Similar Messages

  • How to find the font and replace another font using javascript in illustrator?

    Dear All,
    how to find the font and replace another font using javascript [batch process] in illustrator?
    i have 700 image file, it very deficult replace one by one.
    regards,
    .Suresh.S

    Ask the creator of the file for a unprotected version.

  • Why is Acrobat cloud sooooooooo slooooooooooooow - it's quicker to file, retrieve and photocopy paper than use this rubbish!!!!!!!!!!!!!!!!!!!!!!!!!!!

    And why is it so difficult to find out how it should work - trying it out is so slow
    and there appear to be no manuals or user guides
    One day somebody will invent PAPER!
    I used to be an Acrobat fan, but it's getting slower to run any of the applications and the cloud storage is about as responsive as clouds in the Gobi Desert
    Please get a Grip Adobe!
    Matt

    OK, I like it when I understand that.  What is this LIITETIEDOSTO, I do not
    in English. I am game assistant and I play practical games, in the Euro
    Palace.
    Abraded ID send it. This was number 1135-4568-998-1
    Word Press.
    I deposit in the 2000, I trye witchery, there are free $ 500, I have to got
    my own deposit and same my  win.
    Can you send those Players to you, I write it some think.
    If you can be help to that in the play panel. I have to play here and
    write own things, now I have got my money,  as possible as soon as.
    kindly
    Mervi Korhonen
    2014-09-21 2:51 GMT+03:00 Mervi Korhonen <[email protected]>:
    olen samaa mieltä kanssasi, osa toimintaan käy abroven toiminnat hyvin,
    mutta tavallisessa kirjoituksesta en saa itse aina selvää. mikä vietävän
    liite tiedosto. hävitin tuon abroden takia taas rahani, kyllä tämä "fani"
    puuha on
    minun puolestani mainospilaa , josta otetaan joka kuukausi maksu, kun
    muuten ei saa selvää tekstistä. Missä on taas pelattu 500 free, voitto Euro
    Palace, suuret rahat pitäisi  olla, mutta en löytänyt nostotilejä lainkaan.
    2014-09-21 2:05 GMT+03:00 mattdurcan <[email protected]>:
    >>     why is Acrobat cloud sooooooooo slooooooooooooow - it's quicker to
    >> file, retrieve and photocopy paper than use this
    >> rubbish!!!!!!!!!!!!!!!!!!!!!!!!!!!  created by mattdurcan
    >> <https://forums.adobe.com/people/mattdurcan> in *Adobe acrobat.com
    >> <http://acrobat.com> services* - View the full discussion
    >> <https://forums.adobe.com/message/6748371#6748371>
    >>

  • Scroll() in Adobe Acrobat and Adobe Reader X using Javascript

    Hi there,
    Does someone know how scrolling works in Adobe Acrobat/Reader using javascript?
    The scroll() functions needs two parameters: x and y.
    How are these axises defined? Is this based per page or does the scrolling reference change every time the page changes?
    Why we need to know this? We're making and application in Flash Builder that loads a PDF. External buttons need to call an embedded javascript within the PDF that scrolls up or down.
    Anyone who can provide us with some information concerning this topic: thank you!
    Regards
    Mario

    Well,
    It's hard to formulate: basically we need to understand how the scrolling is handled in Adobe Reader.
    Like: why does the scrolling index change every time you change to a new page. It gets resetted or something.
    Anyway: you cannot create a variable "scrollVerticalIndex" and "scrollHorizontalIndex" and increment it everytime you want to go down or up/left or right and say scroll(scrollHorizontalIndex,scrollVerticalIndex). Also, if you zoom in, the dimension of your page stay the same. We cannot find a way to calculate top or bottom of a document.
    In a perfect world you could say: (height of a page) x ((number of pages)-1) = total height of the document (and thus the total amount you can scroll up/down). But that is just not the case...
    We want to get an insight how the scrolling works :-)
    Does this make sence ;-) ?

  • Reset report pagination using javascript / ajax ?

    Hiho,
    i have a page where i pull a ppr report from a different page using htmldb_get like described in Carls excellent examples. The first page also contains a textfield to set a where condition in the report, for examle to search a streetname..
    Now i need a way to reset the pagination of the report using javascript.
    Example:
    I search for street_name_1 and the report returns 100 rows, 10 rows on each page. Now i use the pagination links to switch throught report pages to page 5.
    Now i search for street_name_2 and the report returns 5 rows, so this would only be one page in the report. But the report pagination still is on page 5, so no results are shown. And no pagination buttons either.
    What can i do to reset the pagination before i pull the report without submitting the page?
    Thanks for help,
    DIrk

    I have similar problem with AJAX report pagination. When I click the pagination for next set of rows, it gives "undefined" error. I'm trying to call "get.clear('RP');" in the javascript function as susggested in above url, but doen't work. any examples are appreciated.
    thanks,
    Surya

  • Sum child list items and update parent total using javascript

    I have a SharePoint 2010 Parent/Child list setup using a lookup field to join both the lists, this is working well.
    The Parent list contains requisition requests and the child list contains related item details. Each of the related child list items has a 'Line Item Total' field. I need to aggregate the Line Item Totals in the child list and place the result in a 'Requisition
    Total' in the parent. So for any given parent record the sum of it's related child 'Line Item Totals' is reflected in the 'Requisition' total in the parent row.
    I am struggling with the JavaScript code below. I am trying to aggregate Line Item Totals for a given Requisition#? Could someone please review and advise?
    <script language="javascript" src="/Purchasing/Documents/jquery-1.8.2.js" type="text/javascript"></script>
    <script language="javascript" src="/Purchasing/Documents/jquery.SPServices-2014.01.min.js" type="text/javascript"></script>
    <script>
    $(document).ready(function()
     $('select[title=Requisition#]').children().attr('disabled',true);
     $("input[title='Old Amount']").attr("readonly","true").css('background-color','#F6F6F6');
       // Retrieve the name of the selected parent item.
       var strParent=$("select[title$='Requisition#'] :selected").text(); 
     splist li = web.lists["ReqDetails"]; // This is the child list
        spquery q = new spquery();
        q.Query= "<Where>" +
         "<And>" +
          "<Neq>" +
           "<FieldRef Name='ID'/><Value Type='Number'>0</Value>" +
          "</Neq>" +
          "<eq>" +
           "<FieldRef Name='LinkID'/><Value Type='Number'>ReqID</Value>" +
          "</eq>" +
         "<And>" +
        "</Where>" +
        "<OrderBy>" +
         "<FieldRef Name='LineItemTotal'/>" +
        "</OrderBy>"
        q.ViewFields = string.Concat("<FieldRef Name='LineItemTotal' />");
        q.ViewFieldsOnly = true; // Fetch only the data that we need
        splistitemcollection items = li.getitems(q);
        foreach(SPListItem item in items)
        sum += parseInt(item["LineItemTotal"], 10);
      alert(sum)
     </script>
    Rick Rofe

    I do something similar for a PO Header/PO Detail set of lists. I use SPServices to pull the data.
    I put this code in the child edit page - so any time any child is edited, the parent is updated. I get all children records and total them up (except for the item I'm displaying at the current time. I add that value in directly from the form itself.
    <script type="text/javascript" src="/Javascript/JQuery/JQueryMin-1.11.1.js"></script>
    <script src="/Javascript/JQuery/jquery.SPServices-2014.01.min.js"></script>
    <script>var poNumber = '';
    var poDetailID = '';
    $(document).ready(function() { var queryStringVals = $().SPServices.SPGetQueryString();
    poNumber = queryStringVals["PO"];
    poDetailID = queryStringVals["ID"];
    function PreSaveAction() {
    // update the PO header with the total of all items + shipping + adjustments
    var query = "<Query><Where><And><Eq><FieldRef Name='Title' /><Value Type='Text'>" + poNumber + "</Value></Eq><Neq><FieldRef Name='ID' /><Value Type='Counter'>" + poDetailID + "</Value></Neq></And></Where></Query>";
    var viewFields = '<ViewFields><FieldRef Name="Total" />';
    viewFields += '</ViewFields>';
    var poTotal = 0.00;
    $().SPServices({
    operation: "GetListItems",
    async: false,
    listName: "PO Details",
    webURL: "/po",
    CAMLViewFields: viewFields,
    CAMLQuery: query,
    completefunc: function (xData, Status) {
    //alert(xData.responseText);
    $(xData.responseXML).SPFilterNode('z:row').each(function() {
    if($(this).attr("ows_Total")) {
    //alert($(this).attr("ows_Total"));
    poTotal += Number(parseFloat($(this).attr("ows_Total").split(";#")[1],2).toFixed(2));
    // add in this changed line (we skipped it above)
    var qty = $('input[title="Quantity Ordered"]').val();
    var price = $('input[title="Price"]').val().replace(',','');
    var extend = Number(qty)*Number(price);
    poTotal += extend;
    //alert(poTotal);
    // update the PO Header
    $().SPServices({
    operation: "UpdateListItems",
    async: false,
    listName: "Purchase Orders",
    webURL: "/po",
    ID: poID,
    valuepairs: [["Total", poTotal]],
    completefunc: function (xData, Status) {
    //alert(xData.responseText);
    $(xData.responseXML).SPFilterNode('z:row').each(function() {
    return true;
    Robin

  • IPod Touch (2nd Generation): Erase and Reset all contents before selling

    Dear all,
    I have an iPod Touch sencnd generation and I am about to ship it out to someone who has bought it online. I want to delete *all* the important info I have on this piece of hardware and reset it to the default settings. I have gone through the following steps so far: settings > general > reset > "erase all settings and contents."
    But I wonder if with a sophisticated software someone can still recover my previously stored passwords and private materials on this iPod Touch. How is it possible to completely zero out the hard drive just like you'd do on a computer? How reliable is "erase all settings and contents" by the way?
    Many thanks,
    Ron

    I would be satisfied with what you did.  The iPod touches use Flash storage so there is no hard drive.  You can tr erasing all contents amd setting a few times since that overwrites existing data.  From the Users Guide:
    Erase all content and settings:  Connect iPod touch to your computer or a power
    adapter. Choose General > Reset and tap “Erase All Content and Settings.”
    This resets all settings to their defaults and erases all your information and media:
    Â On iPod touch 3rd generation or later:  by removing the encryption key to the data
    (which is encrypted using 256-bit AES encryption)
    Â On iPod touch 2nd generation:  by overwriting the data
    Important:  You can’t use iPod touch while data is being overwritten. This can take
    up to four hours or more, depending on the model and storage capacity of your
    iPod touch. (On iPod touch 3rd generation or later, the encryption key is removed
    immediately.)

  • Retrieve and Read XML Files using Oracle6i Forms

    Dear all .. i have some problem here: How can i retrieve and read a XML files using Oracle6i Forms? What should i do? Thanks - ASAP -

    Several ways - Pick up a copy of the Oracle XDK off of OTN. This provides Java and PL/SQL toolkits for dealing with XML files.
    The PL/SQL one would be in the Database, so you might have to use the Java one of you need to do it on the Forms machine.
    You can use the Java Importer in 6i to create PL/SQL wrappers that you can call from forms into the Java XDK APIs.
    Or of course you can just use the TEXT_IO package to read the XML as a text stream and parse it in your own PL/SQL code...

  • Web Galleries: retrieving and transferring settings / content

    I use multiple LR databases to manage different websites. For each one, I use a few standard Web Gallery templates to create different pages for photos with different themes. When I first created the pages, I entered different information on each page for the Collection Title, Description, etc. I noticed that LR somehow remembered what that information was, pulling up the correct data when I go back later to recreate the web page from the original set of photos! How does it do that? Clearly, this is not part of the image metadata or the Web Gallery template; it seems to be stored elsewhere.
    Unfortunately, the settings do not transfer when exporting the image folder as a catalog. I would like to be able to duplicate them on another LR database. How can I retrieve and transfer these? Any suggestions would be greatly appreciated!
    Thanks,
    Peter

    "Migrating" your photos, albums, adjustments, etc. is a piece of cake. Just export the project/s using file export project from your laptop and use file import project on your desktop. Move or share the .approj file from your laptop to desktop in the way you are most comfortable with.
    More info here:
    [Aperture on multiple computers|http://photo.rwboyer.com/2008/09/managing-aperture-2-on-multiple-comp uters>
    As for web galleries - can't answer that one with detail because I find them uselessly frustratingly unexplainably notoriously unreliable and I hate that you have no control over color profile for downloadable images. So I don't use them now after playing with them for a bit.
    RB

  • Why do my DROID ULTRA keeps freezing up and resetting when i use Navigation

    I just got a DROID ULTRA and it keeps freezing up when i open APPS and resetting when i try use navigation do anyone else have this problem.

        I'm here to help wake that device up bigdogg2! When did this first start? Any new apps or features added recently? Is it specific to certain apps? My first recommendation would be to clear the cache on the apps themselves. http://vz.to/1jwkj2c
    JonathanK_VZW
    VZW Support
    Follow Us on Twitter@VZWSupport

  • How to hide table with empty content using Javascript?

    Hello!
    I'm using Adobe LiveCylce Desinger integrated in SAP. I have a task to hide a database-table, if the table empty is.
    Normmaly we can do following to check, whether the content empty is.
    if (this.REMARK_TEXT.rawValue == null )
    this.presence = "hidden";
    else
    this.presence = "visible";
    The question is, how to check in Javascript, if a table empty is.
    Many thanks in advance!
    regards
    longholiday

    could try something like this:
    function showOrHideTable(table){
         var isVisible = false;
        // gets the count of instance managers, event_initialize and row objects
        var rowCount = table.nodes.length;
        for(var i=0; i<rowCount; i++)
            //get the class name
            var myTestNode = table.nodes.item(i).className;
            //ignores the instance managers and event_init
            if(myTestNode == "subform")
                var innerCells = table.nodes.item(i).nodes;
                for(var j=0; j<innerCells.length; j++){
                    //ignores non-input boxes
                    if(innerCells.item(j).className == "field")
                        //check value
                        if(innerCells.item(j).rawValue != ""))
                            isVisible = true;
                        else
                            //hide the row
                            table.nodes.item(i).presence = "hidden";
        //if any row has a value specified
        if(isVisible)
            table.presence = "visible";
        //no value specified
        else
            table.presence = "hidden";

  • Extracting/Setting PDF Table contents using javascript

    Hello,
    Can you experts please let me know the following?
    1. Is there a way to extract PDF table contents?
    2. Can I set the row value via java script?
    Bottom line is I need to implement editable table in PDF. What are the ways I can achieve this feat?
    Thanking you in advance!
    Best Regards

    Hi PDL,
    I am actually writing a piece (C++) of code that generates Acroform currently. It is still in the primitive stage, just provided support only for text fields, choice fields and buttons.
    As I mentioned above, I have a requirement to generate a editable table...
    Sure I can provide the PDF(acroform) that is generated by the code.
    But how can I send the file to you? Can you share your email-Id? Or can I paste the content of the output here ?
    %PDF-1.5
    %%âãÏÓ
    1 0 obj
    <<
    /Pages 2 0 R
    /AcroForm 6 0 R
    /Type /Catalog
    >>
    endobj
    6 0 obj
    <<
    /CO []
    /Fields [ 7 0 R 9 0 R 10 0 R 11 0 R ]
    /NeedAppearances true
    >>
    endobj
    2 0 obj
    <<
    /Type /Pages
    /Count 1
    /Resources
    <<
    /ProcSet 3 0 R
    >>
    /Rotate 0
    /Kids [4 0 R ]
    >>
    endobj
    7 0 obj
    <<
    /A 8 0 R
    /BS <</W 1 /S /S>>
    /DA (/Helv 12.00 Tf 0.00 0.00 0.00 rg 0 G)
    /DR
    <<
    /Font <</Helv 14 0 R >>
    >>
    /F 4
    /FT /Btn
    /Ff 65536
    /H /P
    /MK
    <<
    /BC[0.87 0.83 0.55]
    /BG[1.00 0.94 0.55]
    /CA(PDF Button)
    >>
    /P 4 0 R
    /Rect [300.00 690.00 400.00 710.00]
    /Subtype /Widget
    /T (Button)
    /TU (PDF Button)
    /Type /Annot
    >>
    endobj
    8 0 obj
    <<
    /S /JavaScript
    /JS (if \(app.viewerVersion>=5\) {app.alert\("I-PDF 0.1 DEMO", 1\);})
    >>
    endobj
    9 0 obj
    <<
    /BS <</W 1 /S /S>>
    /DA (/Helv 12.00 Tf 0.00 0.00 0.00 rg 0 G)
    /DR
    <<
    /Font <</Helv 12 0 R >>
    >>
    /F 4
    /FT /Tx
    /Ff 12582912
    /H /P
    /MK
    <<
    /BC[0.00 0.00 0.00]
    /BG[1.00 1.00 1.00]
    >>
    /MaxLen 45
    /P 4 0 R
    /Rect [200.00 750.00 400.00 770.00]
    /Subtype /Widget
    /T (Text Field1)
    /Type /Annot
    >>
    endobj
    10 0 obj
    <<
    /BS <</W 1 /S /S>>
    /DA (/Helv 12.00 Tf 0.00 0.00 0.00 rg 0 G)
    /DR
    <<
    /Font <</Helv 13 0 R >>
    >>
    /F 4
    /FT /Tx
    /Ff 12591104
    /H /P
    /MK
    <<
    /BC[0.00 0.00 0.00]
    /BG[1.00 1.00 1.00]
    >>
    /MaxLen 15
    /P 4 0 R
    /Rect [200.00 720.00 400.00 740.00]
    /Subtype /Widget
    /T (Text Field2)
    /Type /Annot
    >>
    endobj
    11 0 obj
    <<
    /DA (/Helv 10.00 Tf 0.00 0.00 0.00 rg 0 G)
    /DR
    <<
    /Font <</Helv 15 0 R >>
    >>
    /F 4
    /FT /Ch
    /Ff 67239936
    /MK <</BG[0.87 0.83 0.55]>>
    /Opt [[( )( )] [(AMX) (American Express)] [(CBL) (Carte Blanche)] [(DCL) (Diners club)] [(DSC) (Discover)] [(ENR) (EnRoute)] [(JCB) (JCB)] [(MSC) (Mastercard)] [(VIS) (Visa)]]
    /P 4 0 R
    /Rect [200.00 650.00 300.00 670.00]
    /Subtype /Widget
    /T (Choice)
    /Type /Annot
    /V (VIS)
    >>
    endobj
    4 0 obj
    <<
    /Parent 2 0 R
    /Annots [7 0 R 9 0 R 10 0 R 11 0 R ]
    /MediaBox [0 0 595.00 842.00]
    /Resources
    <<
    /ProcSet [/PDF /Text /ImageI /ImageC]
    >>
    /Contents 5 0 R
    /Type /Page
    >>
    endobj
    5 0 obj
    <</Length 26>>
    stream
    q
    BT
    36 806 Td
    ET
    Q
    0 0 m
    endstream
    endobj
    3 0 obj
    <<[/PDF /Text /ImageI /ImageC]>>
    endobj
    12 0 obj
    <<
    /BaseFont /Helvetica
    /Subtype /Type1
    /Encoding /WinAnsiEncoding
    /Type /Font
    >>
    endobj
    xref
    0 13
    0000000000 65535 f
    0000000016 00000 n
    0000000172 00000 n
    0000002016 00000 n
    0000001756 00000 n
    0000001942 00000 n
    0000000081 00000 n
    0000000272 00000 n
    0000000603 00000 n
    0000000709 00000 n
    0000001017 00000 n
    0000001326 00000 n
    0000002064 00000 n
    trailer
    <<
    /Root 1 0 R
    /Size 13
    >>
    startxref
    2162
    %%EOF

  • Use gvim to edit text areas and get it to use javascript.vim syntax file

    I have had a lot of trouble with javascript and editting files via apex's "javascript" sections in the page.
    The font in firefox did not distinguish various braces well enough for me. I kept accidentally mixing curly braces and parens... And I would now and then put the plsql concatenate operator || instead of the javascript +. Bleah! There are SO many ways to completely break javascript. And the whole javascript herd goes down when just one little function anywhere in there has an errant brace or quote. So I started resenting not using my customary text editor gvim. I have to have this stuff colorized and have showmatch turned on!
    So anyway I found that you can edit textareas with gvim, I don't know if this is commonly known or not so
    I thought I'd mention it. Or you can use whatever editor you want.
    I only tried this on windows but theoretically it works on other operating systems modulo you
    adjusting the shell details appropriately.
    First of all install the"It's all text!' firefox extension and restart firefox.
    then create a batch file something like this:
    (NB: don't call a batch file the same name as an executable. That can cause pesky loops :-)
    gvimrun.bat:
    c:\vim\vim73\gvim.exe %1 -c "set filetype=javascript"
    Note the pathname to gvim.exe needs to be customized. Note the parameter for passing the first argument along. (%1) The set filetype is telling it effectively to use the c:\vim\vim73\syntax\javascript.vim file.
    so then when you bring up your page in apex , when you put the mouse cursor right below the
    down arrow of the vertical scrollbar on the rhs of the textarea, you should see a little blue button
    that says "edit". Then right click and choose preferences. Direct it to your batch file.
    And if all is well it will work and invoke gvim with syntax coloring. Which makes it just a tiny bit less likely to really flub it.
    Now if anyone else wants to pick up the baton and figure out how to get more than one syntax
    in effect such as javascript and jquery? I did find a jquery.vim file out there. ...
    Now that we know how to do this if someone knows some really super great javascript /jquery
    editor that might be way better than gvim I would definitely consider that! Javascript is easy to screw up
    Edited by: lake on Jan 2, 2011 11:34 AM

    Hi Mathan. Here is something i have trying to do. This vi does not write it correct... and have I done something wrongly or "stupidly" in code
    Problems:
    -Second row is inroccet
    -If i know that device returns array where is 10 elements. Can I trust that and just return 10 elements from array and changed it to string?
    -Can I trust queue in this way?
    I think hardest in labview coding is that you dont know what kind component you should use and what is the right way to use them.
    Attachments:
    array to file.vi ‏21 KB

  • Add application and document level events using javascript

    Hi All,
    I need to do some validation in the preprint event of the pdf document. There are samples available using the UI and adding the script in the script dialog, but my requirement is that i need to map the 'preprint' event and event handler to the pdf document using pure javascript code without the UI. Any help would be greatly helpful. Thanks in advance.
    Regards,
    Charan

    You can write a document-level function into the actions handlers using the doc.setAction() method from a folder-level script, but one folder-level script cannot create another.
    Suppose you have a folder-level function triggered by a menu item, and it has collected a reference to the active document as oDoc:
    var myScript = 'console.println("I am about to be printed and I have " + this.numPages + " pages" );';
    oDoc.setAction("WillPrint",myScript);

  • Reading file content using Javascript

    Hi Friends,
    is it possibel to read the contents of the child window opened from a javascript.for example am opening a window using Window.open function in javascript, after opening the window can i read the contents ?If so how can anyone help in this.
    Thanks
    Vishy

    Below is the code of my normal java program which works fine.
    try {
    // File destFile = new File("./SourceFiles/savedFile.txt");
    File destFile = new File("./SourceFiles/", "savedFile.txt");
    BufferedWriter writer = new BufferedWriter(new FileWriter(destFile));
    writer.write("TESTing File Save");
    writer.flush();
    System.out.println("SAVED!!");
    } catch ( IOException e ) {
    e.printStackTrace();
    Structure of this project is
    Samples
    |SaveSample
    |SaveSample.java
    |SourceFiles
    |savedFile.txt
    I have implemented similar code in my servlet too. But this doesnt save the content to the HTML file.
    protected void doPost(HttpServletRequest request,
                   HttpServletResponse response) throws ServletException, IOException {
              action = request.getParameter("action");
              try {
    File destFile = new File("./SourceFiles/", "savedFile.html");
    BufferedWriter writer = new BufferedWriter(new FileWriter(destFile));
    writer.write(action);
    writer.flush();
    System.out.println("SAVED!!");
    } catch ( IOException e ) {
    e.printStackTrace();
    Im getting FileNotFound Exception
    java.io.FileNotFoundException: .\SourceFiles\savedFile.html (The system cannot find the path specified)
         at java.io.FileOutputStream.open(Native Method)
         at java.io.FileOutputStream.<init>(Unknown Source)
         at java.io.FileOutputStream.<init>(Unknown Source)
         at java.io.FileWriter.<init>(Unknown Source)
         at savepackage.SaveContent.doPost(SaveContent.java:81)
    Edited by: 849224 on Apr 5, 2011 4:17 AM

Maybe you are looking for

  • Mid 2010 macbook pro freezes and restarts when moved.

    My macbook pro crashes daily and sometimes I have to keep turning it on for about 5 minutes because it doesn't start up it just beeps. once it starts up it tends to crash when moved even slightly. I have the crash reports and I'm hoping someone can h

  • Substitution Variable update issue

    Hi, I am using Essbase 9.2.0.3. I have noticed a problem afetr updating Substitution Variable. The calculation script which uses the Substitution Variable works well after updating the variable. But the Member formula doesn't work, unless we restart

  • Why can't I download the update to Firefox?

    I have a brand new I-mac and just recently added Mozilla Firefox to my browsers. I get a notice that a security update is available. When I select update, it say "connecting to update server", but it just stays on that place and never downloads the u

  • Library window does not work

    Though I am signed in to Creative Cloud (even within PS) when I open the Libraries window, it tells me I am signed out and must sign in to use.  Why doesn't it see that I am signed in and how can that be corrected?

  • I do not want iOS to update itself automatically, does it do this?

    I am new to the iPhone, and iOS. I have an iPhone 4s running iOS 5.0.1 I hear 5.0.2 is coming out any day now. As a Mac user I always like to wait after an update is released to read the feedback. Will iOS update itself automatically? If so how do I