Help with Return on Investment

I was trying to build a spreadsheet for this calculation to transfer to my Ipad, but then I saw there is a template already made, but I don't think it will work for me. I would appreciate any assistance.
This is to calculate the potential ROI from buying a business. This is only a return for year one...so in calculation interest on both seller financing and bank financing we are only interested in the cost during year one.
The relevant numbers are:
Purchase Price: say $260,000
Owner Benefits: This is a combination of net profit, depreciation, amortization and any expenses that are a benefit to the owner.
Seller financing...the amount, rate, and term
Buyer financing...say from a bank
Thanks.
Jon

Create your own FedEx label and pay for it out of your pocket. By doing this it will cost you roughly 6 bucks to send it back but then you get control over the contract for shipping. You can launch the investigation when Verizon says they have not received it, or you can provide the weighed shipping label once the box was in FedEx's hands so when Verizon claims the box was empty you have other proof. You can also add insurance to it so if anything really does happen you are not charged.

Similar Messages

  • Help with returning query from loadURL()

    I finally came across loadURL() and figured out that I can
    use it to invoke my ColdFusion components without page
    reloading--very handy!
    Now, I need to figure out how to do this to return values
    from my components. Has anyone done this and have an example I
    could see, or at least point out to me a suggestion of code for
    successfully doing this?
    Right now, my component looks like this:
    <cfcomponent output="no">
    <cffunction name="getComments" access="remote"
    output="no" returntype="query">
    <cfset var rsComments = "">
    <cfquery name="rsComments" datasource="xmlTest">
    SELECT *
    FROM comments
    ORDER BY commenter DESC
    </cfquery>
    <cfreturn rsComments>
    </cffunction>
    </cfcomponent>
    I am trying to use loadURL() as follows:
    function myQuery() {
    var myDatasetURL = 'xmlTest.cfc?method=getComments';
    var req = Spry.Utils.loadURL("GET", myDatasetURL, true);
    In Firebug, the "Response" shows a serialized WDDX packet.
    I've not really messed with these before, so any help would be
    greatly appreciated!
    Thanks
    Joel

    Your first mistake was to choose an array. An array has a fixed length, so it's not appropriate for storing a sequence whose length you don't know in advance. You should choose a List instead; an ArrayList would be a reasonable implementation to choose.
    Then you just add the Point to the ArrayList. Here's how you declare it:
    List<Point> points = new ArrayList<Point>();and here's how you use it in the listener:
    points.add(evt.getPoint());Returning anything from the listener to its caller, which is something buried in the GUI hierarchy, would be... um... pointless.

  • Powershell - Help with returning dynamic variable values

    Add-Type -AssemblyName System.Windows.Forms
    $frm1 = New-Object System.Windows.Forms.form
    $frm1.Name = "Hey"
    $flw1 = New-Object System.Windows.Forms.FlowLayoutPanel
    $flw1.flowdirection = 'TopDown'
    $frm1.controls.add($flw1)
    $m = "apple","orange","banana"
    for($i=0;$i -le $m.Length-1;$i++){
    $lb = New-Object System.Windows.Forms.linkLabel
    $lb.text = $m[$i]
    $m[$i] = $null
    $flw1.Controls.Add($lb)
    $lb.add_Click({Write-Host $lb.text})
    $frm1.showdialog()
    Could someone please help me with a method to return the value of the label that was clicked? Or a means to identify which linklabel was clicked. Thank you.

    Hi, jrv-
    Awfully sorry to trouble you. Could you please assist with the solution to this script or a better way to approach this scenario? I need to return the current value of label ($lb) from the form ($frm1), when $btnfrm2 on form ($frm2) is clicked.
    Thank you.
    Add-Type -AssemblyName System.Windows.Forms
    $frm1 = New-Object System.Windows.Forms.form
    $frm1.Name = "Hey"
    $flw1 = New-Object System.Windows.Forms.FlowLayoutPanel
    $flw1.flowdirection = 'TopDown'
    $frm1.controls.add($flw1)
    $m = "apple","orange","banana"
    function frmDisplay{
    $frm2 = New-Object System.Windows.Forms.Form
    $btnfrm2 = New-Object System.Windows.Forms.Button
    #$btnfrm2.Add_Click()
    $btnfrm2.text = 'Click'
    $frm2.Controls.Add($btnfrm2)
    $frm2.Add_Shown({$frm2.Activate()})
    [void] $frm2.ShowDialog()
    for($i=0;$i -le $m.Length-1;$i++){
    $lb = New-Object System.Windows.Forms.linkLabel
    $lb.text = $m[$i]
    $m[$i] = $null
    $flw1.Controls.Add($lb)
    $lb.add_Click({Write-Host $this.text; (frmDisplay)})
    $frm1.showdialog()

  • Ugent help with return problem

    Hello everyone,
    please can someone help me with this return problem? I'm getting a retrun error problem with this code
    public static float getVitaminPrice()
              for(int j=0;j<Vitamins.length;j++)
                        if(Vitamins[j].getCode().equals(s))
                             return Vitamins[j].getPriceByBox();               
         }

    OK thanks every one but there are things that I don't fully understand yet, just some exprience but not alot, however I'll take all the advise into consideration. I'm a person who most times only learn from examples. I have some classes called VitaminInfo, and one for Customer apart from the one that contains the main method.
    the following code is all that main contains, what I'll like to accomplish is getting back the vitamin price which was already stored in an array based on the vitamin code the user typed in.
    can you help me with that?
    public static void main(String args[])
              for(int j=0;j<Vitamins.length;j++)
                   String vitaminCode = new String(JOptionPane.showInputDialog("Please Enter the Vitamin Code"));
                   String vitaminDesc = new String(JOptionPane.showInputDialog("Please Enter the Vitamin Description"));
                   int vitaminWeight = Integer.parseInt(JOptionPane.showInputDialog("Please Enter the Vitamin Weight"+"/n" + "Vitamin Weight must be between 50 to 500 grams"));     
                   while(vitaminWeight >500 || vitaminWeight< 50){
                        vitaminWeight = Integer.parseInt(JOptionPane.showInputDialog("Please Enter the Vitamin Weight"+"/n" + "Vitamin Weight must be between 50 to 500 grams"));          
                   int vitaminPrice = Integer.parseInt(JOptionPane.showInputDialog("Please Enter the Vitamin Price"));
                   VitaminInfo vita = new VitaminInfo(vitaminCode , vitaminDesc, vitaminWeight, vitaminPrice);
                   Vitamins[j] = vita;           
              for(int j=0;j<Customers.length;j++)
                   String customerName = new String(JOptionPane.showInputDialog("Please Enter a Customer Name"));
                   String customerAddress = new String(JOptionPane.showInputDialog("Please Enter the Customer's Address"));
                   String postalCode = new String(JOptionPane.showInputDialog("Please Enter the Customer's Postal Code"));
                   Customer cust = new Customer(customerName, customerAddress, postalCode);
                   Customers[j] = cust;
              float  vprice = getVitaminPrice();
              String vcode = getVitaminOrderCode();
              int vamount = getVitaminCount(vcode);
              JOptionPane.showMessageDialog(null,"You have ordered " + vamount + " Vitamin (" + vcode + ")."+ " VitaminPrice (" + vprice + ").","Your Order",JOptionPane.INFORMATION_MESSAGE);
              showCatalog();
              showCustomers();
              System.exit(0);
         }

  • Need help with returning an array of object

    hello, i've been trying to make a method that returns bot ha boolean and a colour for a render for a Jtable and the code for the method is:
         public Object[] isHighlightCellsWithColour(int xInternal, int colInternal) {
              Object[] returnWithTwoValue;
              boolean isHighLight = false;
              returnWithTwoValue = new Object[2];
              returnWithTwoValue[0] = isHighLight;
              returnWithTwoValue[1] = null;
              if (colourPassed == true && this.foundDupeInternal > -1) {
                   for (int c6 = 0; c6 < foundDupeInternal; c6++) {
                        if (this.rows[c6] == xInternal && this.cols[c6] == colInternal) {
                             isHighLight = true;
                             Color colourToSet = errorColourList[c6];
                             returnWithTwoValue = new Object[2];
                             returnWithTwoValue[0] = isHighLight;
                             returnWithTwoValue[2] = colourToSet;
                             return returnWithTwoValue;
              } else {
                   return returnWithTwoValue;
              return null;
         }and when i go and try to use it at
              check = new Object[2];
              check = isHighlightCellsWithColour(xCurrentlyDrawing, colCurrentlyDrawing);
              boolean z = false;
              try {
                   z = (Boolean) check[0];
              } catch (NullPointerException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              Color x = Color.white;
              try {
                   x = (Color)check[1];
              } catch (NullPointerException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              it gives me a nullpointerexception, which i try to catch, but it STILL gives me that error, i have no clue on how to cast from object back to boolean or colour after they are cast into objects
    or else is there a way to pass two different types of data back from a method? Other than using static variables that is, since that gave me problems, it only draws the first cell in colum that is in error in the colour specified , not the rest...
    thanks for your time
    Edited by: TheHolyLancer on Mar 8, 2008 12:42 AM

    yay that got it working, but the method still only draws the first cell with the colour only, need another way to do this one...
    now comes another puzzeling question, it is giving me an null pointer exception again in:
    System.out.println("setting colour "+ x.getBlue() + " On cell " + xCurrentlyDrawing + colCurrentlyDrawing);when i add that to the part where i set the colour, and colour is set to x (which is a color that is passed down by the method) and this will only run if it is determined that a colour is already passed, but it still gives me null pointer error?
    maybe i'll take this to the swing forum tommrow
    Edited by: TheHolyLancer on Mar 8, 2008 2:17 AM
    Edited by: TheHolyLancer on Mar 8, 2008 2:19 AM

  • Need help with Return syntax

    I though that the two pieces of code below would perform the same function but apparently i am missing something. The code is supposed to multiply two integers. Both use the add method.
    //Method that adds two integers this method works great
    public static int add(int a, int b)
             if(a <= 0)
                return (a < 0) ? add(MCH.succ(a), MCH.pred(b)) : b;
             else
                return (a > 0) ? add(MCH.pred(a), MCH.succ(b)) : b;
          }//The variable total is defined earlier as what ever a originally was and is not modified.
      //This method for multiplying also works great for positive numbers but i wanted to shorten it.
      public static int multiply(int a, int b)
              if(b==1)
                    return a;
              return multiply(add(total,a),--b) ;
        //This code i though was the same as above just in one line but apparently not
        //10*10 will return 10
        // 5*5 will return 5
        public static int multiply(int a, int b)
              return (b==1) ? multiply(add(total,a),--b) : a;
          }Why are the two sections of code returning different values. Any help is much appreciated

    I tried 5*6 which produced 5 as an answer using the second version of multiply so it looks like no matter what i put in the output is always the first int.

  • Help with return statements

    Can someone explain to me what a return statement does exactly and how I would use it to return a value in the follwoing type of program.
    Its a array making program that allows up to 25 values with the value 0 stopping the method. I need to be able to display the how many usable values the user input (anywhere from 1-25).
    To do this I need to use a return statement, correct? if so, how do utilize it correctly if it is nesasary I will post the code itself.

    Heres what I have for the code...
    To simplify amounbt of typing(I wrote program in telnet) The beginning is a set of options using switch statement. 4 choices, 1)new data. 2) list the data 3) change the data and 4) exit.
    For the new data I need to have the user input up to 25 values or stop at any time by entering 0. the values also cannot be greater than 12000 or less than -12000. it should also return the number of usable values in the array. The return statement is what I am having trouble with.
    Code...
    static int NewData(double a[]) //This part is not changeable
    {   int 1;
    for(i=0; i<25; i++)
    {  System.out.print("Enter Element"+(i +1)+ "- ");
    a=MyInput.readDouble();
    if (a[i]>12000 || a[i]<-12000)
    {System.out.println("the last value is not valid");
                                 break;}
    if (a[i]==0)
    break;
    } return i;
    As of right now the method functions as is but two things need to be changed or added. If possible the program should now break if the user inputs an element greater than 12000 or less than -12000, it should just reset to the integer they were on. Also, how do I get the return value to display something? have i used it correctly to show the number of usable values ithe user entered?

  • Help with return carriage and JDOM

    I'm pretty new to XML, so I may be asking a nonsense. Here is my problem: I employ JDOM to create, store and load XML files. The text of the elements (not the tags of the elements) contains carriage returns ('\n'). They desapear when the text is written to the disk.
    �Is this normal or am I doing something wrong? �Can I avoid it?
    Thanks in advance.
    Abraham

    I'm employing:
    XMLOutputter xml_outputter = new XMLOutputter();
       xml_outputter.setIndent(true);
       xml_outputter.setNewlines(true);but I doubt the proble is there, as far as I understand this formating is only to the XML document, I mean, it prints newlines after every element, so ther aren't all in the same line.
    My preblem is that when I have:
    String s = "Hello \n Tom"
    Element greeting = new Element("greeting");
    greeting.setText(s);The XML document in the HDD constain a greeting element with a text "Hello Tom", and no "Hello \n Tom".
    Thanks for your reply.
    Abraham.

  • I don't want a discussion.  I want help with returning a borrowed ebook via digital editions

    I need help returning borrowed ebooks in athe new version of digital editions.  I just get error messages. 

    Then you should ask in the Digital Editions forum; this is the Reader one.
    http://forums.adobe.com/community/adobe_digital_editions

  • Help with return

    Hi,
    I ordered a basic phone line for my father in the week of Christmas. Upon opening the box, we found that phone was loose in the shipping box and battery bag was ripped. So, we called customer service and the rep was very helpful. She ordered a replacement new device, confirmed there won't be any return (restocking fees etc) for the device and I can activate and use it until I receive the replacement one. Btw, upon activating also found that the ear-piece had issue. The voice coming out was always scratchy.
    Upon receiving the replacement device, I went to My Verizon order history to print the return shipping label. I clicked on the button and confirmed all info and clicked on the button to print but it turned out that it pops a new window and blocked by popup blocker. Again, upon returning to the order history, I saw the the button to print again. I thought again, I will have to go to the info page to confirm details. But this time, it just blocked the popup.
    Now, I don't get option to re-print. it says, label reprinted date and the tracking number.
    I called customer service and the rep told me that I can go to any verizon wireless store and they will process the return. The store says, they can't and if they do, they'll charge re-stocking fees.
    Not sure, why can't they send the label in an email or allow to re-print etc.
    Any idea if there is any other option?
    Thank you
    --Pratik
    Private info removed as required by the Terms of Service.
    Message was edited by: Admin Moderator

    Create your own FedEx label and pay for it out of your pocket. By doing this it will cost you roughly 6 bucks to send it back but then you get control over the contract for shipping. You can launch the investigation when Verizon says they have not received it, or you can provide the weighed shipping label once the box was in FedEx's hands so when Verizon claims the box was empty you have other proof. You can also add insurance to it so if anything really does happen you are not charged.

  • Need help with returning NULL data using DECODE

    Hello again! I am new to PL/SQL and still fairly new to SQL. I have a query that returns several columns of data and based on the year entered I want either current data or past data. If the number is null that is considered current data only.
    Below is part of my where clause, it kinda of works the way I want. It is returning the correct numbers but it is not returning any null numbers when I enter 2007 for the current year. I hope this makes sense, any suggestions/tips would be great thanks!
    WHERE table1.num = decode(table1.num,
    null,
    decode(:p_year, to_char (current_date,'yyyy'),
    table1.num,null),
    decode(:p_year,(select to_char(open_date,'yyyy') from table2 where table2.num = table1.num),
    table1.num,null))

    maybe something like this?
    WHERE Nvl(table1.num,'x') = Decode(table1.num, null, Decode(:p_year, to_char(current_date,'yyyy'), table1.num, 'x'),
                                                         Decode(:p_year, (select to_char(open_date,'yyyy') from table2 where table2.num = table1.num), table1.num, 'x')) note: untested

  • Help with return pdf

    I got a pdf that would not convert to word so it took me hours to answer all the questions with sticky notes but when I went to option to email...I emailed but it is not being received...help

    Email is not the best way to transfer e-documents; it can get damaged, misdirected, or lost.
    Far safer is to use a file sharing service like Acrobat.com, Dropbox, Google Drive, ..., then send the download link via email.

  • Help with Return Goods

    Hi,
    I am new to this forum but I am doing a class using SAP GUI. Currently created an additional PO, in which I posted so I have additional inventory I shouldnt.
    What I want to know is how do i return the goods to the vendor. I have tried doing some research about MIGO 122. Can someone please tell me the steps to returning the goods to the vendor from the extra PO I created? Thanks

    Tcode : MIGO
    Select CANCELLATION and Select MATERIAL DOCUMENT and execute
    Check ITEM OK and post the document.
    KK

  • CcmSetup is exiting with return code 0 Need Help

    Installing SCCM Client on Window 7 Machine, Examining the log file, this caught my eye. 
    <![LOG[Successfully deleted the ccmsetup service]LOG]!><time="13:58:26.463-480" date="05-09-2014" component="ccmsetup" context="" type="1" thread="3656" file="ccmsetup.cpp:3345">
    <![LOG[0]LOG]!><time="13:58:26.463-480" date="05-09-2014" component="ccmsetup" context="" type="1" thread="3656" file="ccmsetup.cpp:9763">
    <![LOG[Deleted file C:\Windows\ccmsetup\ccmsetup.xml]LOG]!><time="13:58:26.463-480" date="05-09-2014" component="ccmsetup" context="" type="1" thread="3640" file="ccmsetup.cpp:9493">
    <![LOG[Task 'Configuration Manager Client Upgrade Task' does not exist]LOG]!><time="13:58:26.463-480" date="05-09-2014" component="ccmsetup" context="" type="0" thread="3640"
    file="wintask.cpp:634">
    <![LOG[CcmSetup is exiting with return code 0]LOG]!><time="13:58:26.463-480" date="05-09-2014" component="ccmsetup" context="" type="1" thread="3640" file="ccmsetup.cpp:10875">
    I search around this error code 0, But it seems mine is a different issue? The clients installs normally as usual, but can't see any software updates and such.
    Could the Error Code 0 have cause this also? Need guidance on this matter. 

    You just haven't waited long enough after agent installation. Agent installation and agent communication with the site are two separate things. After successful installation, the agent still has to find the site, register with it, download policies, and
    evaluate policies. This all takes a few minutes initially and after every reboot.
    You can check policyagent.log and policyevaluator.log to see all of the "fun" as far as policy goes.
    Jason | http://blog.configmgrftw.com
    Yea I was checking all the log files specific by everyone here, nothing seems wrong or out of the ordinary. Thanks for your help, and also everyone else here, Sorry I took so long to get back to this post.  

  • Please help with SSL POST: Servlet returns Error 500

    I am struggling for many days to get a Java program to log in to an SSL page. The program is supposed to track ADSL usage statistics from https://secure.telkomsa.net/titracker/, but I never seem to get around Server returned Error 500.
    Could anyone please help me understand what I am doing wrong by looking at the method I used. (It seems on the server side it is a jsp servlet that handles authentication).
    Any help is deeply appreciated!
    I copy-paste the method directly from NetBeans:
    CODE>
    void connectHTTPS(String url){
    try {
    URL page = new URL(url); // login page necessary to get a jsp session cookie
    //------------ SET UP SSL - is it right?
    System.setProperty("java.protocol.handler.pkgs",
    "com.sun.net.ssl.internal.www.protocol");
    try {
    //if we have the JSSE provider available,
    //and it has not already been
    //set, add it as a new provide to the Security class.
    final Class clsFactory = Class.forName("com.sun.net.ssl.internal.ssl.Provider");
    if( (null != clsFactory) && (null == Security.getProvider("SunJSSE")) )
    Security.addProvider((Provider)clsFactory.newInstance());
    } catch( ClassNotFoundException cfe ) {
    throw new Exception("Unable to load the JSSE SSL stream handler." +
    "Check classpath." + cfe.toString());
    URLConnection urlc = page.openConnection();
    urlc.setDoInput(true);
    *Get the session id cookie set by the TelkomInternet java server
    String cookie = urlc.getHeaderField("Set-Cookie");
    //textpane.setText(totextpane);
    textpane.setText(cookie);
    //---------------- form an auth request and post it with the cookie
    String postdata =URLEncoder.encode("ID_Field","UTF-8")+"="+URLEncoder.encode("myusrname","UTF-8")+"&"+URLEncoder.encode("PW_Field","UTF-8")+"="+URLEncoder.encode("mypwd","UTF-8")+"&"+URLEncoder.encode("confirm","UTF-8")+"="+URLEncoder.encode("false","UTF-8");
    // set the servlet that handles authentication as target
    URL page2 = new URL("https://secure.telkomsa.net/titracker/servlet/LoginServlet");
    // cast to httpConn to enable setRequestMethod()
    HttpURLConnection urlc2 = (HttpURLConnection)page2.openConnection();
    // formulate request with POST data urlc2.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
    urlc2.setRequestMethod("POST"); // experimental
    urlc2.setRequestProperty("Content-Length",""+postdata.length());
    urlc2.setRequestProperty("User-Agent","Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)");
    urlc2.setRequestProperty("Accept-Language","en-us");
    urlc2.setUseCaches(false);
    urlc2.setDoOutput(true);
    urlc2.setDoInput(true);
    urlc2.setFollowRedirects(true); // ??
    //send cookies
    urlc2.setRequestProperty("Set-Cookie", cookie); // or "Cookie" - doesn't work either
    //write other data
    PrintWriter out = new PrintWriter(urlc2.getOutputStream());
    out.print(postdata); // username and password here
    out.flush();
    out.close();
    //---------------- get the authenticated page with real ADSL statistics
    BufferedReader br = new BufferedReader(new InputStreamReader(urlc2.getInputStream()));
    String totextpane = "";
    String buffer = "";
    while (buffer != null) {
    try {
    totextpane = totextpane + "\n" + buffer;
    buffer = br.readLine();
    } catch (IOException ioe) {
    ioe.printStackTrace();
    break;
    textpane.setText(totextpane);
    } catch (Exception ex) {
    System.err.println(ex.getMessage());
    ---- END CODE---
    Thank you very much for any attempt at helping with this problem!

    I am struggling for many days to get a Java program to log in to an SSL page. The program is supposed to track ADSL usage statistics from https://secure.telkomsa.net/titracker/, but I never seem to get around Server returned Error 500.
    Could anyone please help me understand what I am doing wrong by looking at the method I used. (It seems on the server side it is a jsp servlet that handles authentication).
    Any help is deeply appreciated!
    I copy-paste the method directly from NetBeans:
    CODE>
    void connectHTTPS(String url){
    try {
    URL page = new URL(url); // login page necessary to get a jsp session cookie
    //------------ SET UP SSL - is it right?
    System.setProperty("java.protocol.handler.pkgs",
    "com.sun.net.ssl.internal.www.protocol");
    try {
    //if we have the JSSE provider available,
    //and it has not already been
    //set, add it as a new provide to the Security class.
    final Class clsFactory = Class.forName("com.sun.net.ssl.internal.ssl.Provider");
    if( (null != clsFactory) && (null == Security.getProvider("SunJSSE")) )
    Security.addProvider((Provider)clsFactory.newInstance());
    } catch( ClassNotFoundException cfe ) {
    throw new Exception("Unable to load the JSSE SSL stream handler." +
    "Check classpath." + cfe.toString());
    URLConnection urlc = page.openConnection();
    urlc.setDoInput(true);
    *Get the session id cookie set by the TelkomInternet java server
    String cookie = urlc.getHeaderField("Set-Cookie");
    //textpane.setText(totextpane);
    textpane.setText(cookie);
    //---------------- form an auth request and post it with the cookie
    String postdata =URLEncoder.encode("ID_Field","UTF-8")+"="+URLEncoder.encode("myusrname","UTF-8")+"&"+URLEncoder.encode("PW_Field","UTF-8")+"="+URLEncoder.encode("mypwd","UTF-8")+"&"+URLEncoder.encode("confirm","UTF-8")+"="+URLEncoder.encode("false","UTF-8");
    // set the servlet that handles authentication as target
    URL page2 = new URL("https://secure.telkomsa.net/titracker/servlet/LoginServlet");
    // cast to httpConn to enable setRequestMethod()
    HttpURLConnection urlc2 = (HttpURLConnection)page2.openConnection();
    // formulate request with POST data urlc2.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
    urlc2.setRequestMethod("POST"); // experimental
    urlc2.setRequestProperty("Content-Length",""+postdata.length());
    urlc2.setRequestProperty("User-Agent","Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)");
    urlc2.setRequestProperty("Accept-Language","en-us");
    urlc2.setUseCaches(false);
    urlc2.setDoOutput(true);
    urlc2.setDoInput(true);
    urlc2.setFollowRedirects(true); // ??
    //send cookies
    urlc2.setRequestProperty("Set-Cookie", cookie); // or "Cookie" - doesn't work either
    //write other data
    PrintWriter out = new PrintWriter(urlc2.getOutputStream());
    out.print(postdata); // username and password here
    out.flush();
    out.close();
    //---------------- get the authenticated page with real ADSL statistics
    BufferedReader br = new BufferedReader(new InputStreamReader(urlc2.getInputStream()));
    String totextpane = "";
    String buffer = "";
    while (buffer != null) {
    try {
    totextpane = totextpane + "\n" + buffer;
    buffer = br.readLine();
    } catch (IOException ioe) {
    ioe.printStackTrace();
    break;
    textpane.setText(totextpane);
    } catch (Exception ex) {
    System.err.println(ex.getMessage());
    ---- END CODE---
    Thank you very much for any attempt at helping with this problem!

Maybe you are looking for

  • Updating the value in frame1 if changed in frame2

    hi, i have two frames....frame 1 has button calculate....frame 2 has button update which can update the data on frame two.....so the scene can be like that user might or might not want to update data on form 2 but in either case will calculate.....Th

  • Problems w/ Zen Xtra 3

    hello everyone!!! i'm having trouble with my Zen Xtra... i opened Creative MediaSource Organizer to transfer my mp3's to the Zen Xtra from my Music Library... and it wouldn't let me do it, there is a msg about an error, it would say, "Error: Unable t

  • Adobe Reader XI not opening

    I updated my Adobe Reader version to XI today and now it won't open.  I am using Windows 7 Home.  I've tried installing with both Windows and with Chrome.  No success.  Also tried various other suggested troubleshooting solutions.  No dice.  Help!  I

  • Restoring photos from the preview in Lightroom 5

    I recently deleted a few files in cleaning up my desktop, however, in doing so managed to delete a few folders that had some really important photos on them. In lightroom I still have the previews for them, but can't work out if/how I can restore the

  • RMAN backup with archivelog (pros/cons)

    When performing a "backup database with archivelogs" where does rman store the info contained in the archive logs. If I do a backup like this do I still need to keep the archive logs out on disk? Does this increase time to do backups? I have some pro