HT1414 I am having a problem with a black screen.. Please HELP

I am having black screen issues. Have tried all the resets and no luck. I hear it but cant see anything. I called support and they said pay more money for it to get resolved. I cant see paying money for something i dont ffeel i caused. I left it charging and went out for several hours and came back to a black screen now its gonna cost 149.99 for telephone support that may or may not resolve the issue. Funny the first time I called them it started working again andthe price to get support at that time was 119.99 then they proceeded argue with me that it was not fixed and i would have to pay them to fix it. The darn thing is only 8 months old never been scratched dropped or abused in any way. Someone please help me get his apple ipad working for my daughter. This is her fun she doesnt do much else and i cant seem to figure out what is wrong with it...It is still under warranty and they say just to send it in is going to cost 99.99. I feel im being taken advantage of by the support comapny apple uses....
Thanks for any feedback
Mindy J

After selecting the Crop Tool you should see a little icon in the Options bar that allows you to select what kind of grid overlay you'd like while cropping, along with some options that define when to show it...
-Noel

Similar Messages

  • Having installation problems with flash player! Please help!

    So i download and begin installation for adobe flash player and it starts installing but stops at 50% to tell me to close Safari browsers. The problem is that there are no safari browsers open because I had already closed out of them but it keeps telling me to close them.
    I have no idea how to fix this, please help!!

    Hello,
    If you're just closing the browser window, you're not actually quitting the application.  You need to quit the application for Flash Player to install.  There are a few different ways to Quit Safari:
    Quit Safari app from the Dock icon:
    Mouse over the Safari icon in the Dock
    Press CTRL and left-mouse click at the same time
    A menu will display. Click Quit to terminate the application.
    Use Activity Monitor to terminate Safari:
    Launch Activity Monitor from Applications/Utilities/Activity Monitor
    Ensure 'All Processes' are being listed (menu in the upper right)
    Find and select Safari
    Click the Quit Process button (upper left)
    Maria

  • Firefox is having problems with "Southwest Airlines website" Please help soon

    Whenever I go on Southwest Airline website, it does not work. I am having this problem since last month. Please help on this as soon as you can.

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Other things that need your attention:
    Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
    * Shockwave Flash 10.0 r22
    * Java Plug-in 1.6.0_07 for Netscape Navigator (DLL Helper)
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://kb.mozillazine.org/Flash
    *http://www.adobe.com/software/flash/about/
    Update the [[Java]] plugin to the latest version.
    *http://kb.mozillazine.org/Java
    *http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)

  • TS1363 my iPad air cannot reconnect to my computer and it has  the iTunes logo with a plug picture on a black screen, PLEASE HELP!!!!

    I was updating my iPad air  and in the middle of update it suddently cannot reconnect to my computer and it has  the iTunes logo with a plug picture on a black screen, PLEASE HELP!!!! I did try steps from http://support.apple.com/kb/HT1808?viewlocale=en_US    - IT DOES'N WORK!

    Yes, that is your only option.Yes.  You have to restore.
    Try the following if you have difficulty restoring.
    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iPod fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar

  • Having some problems with the 8350i. Need Help Please!

    I just got the 8350i through Sprint/Nextel and already am having problems receiving text messages and when I finally do receive them (one day later or after turning set off then back on), I have to manually receive the message.
    Also, I have customers complaining about an echo on their side of the phone every time they call me.  Saw some others where having this problem as well.
    Is there anything I can do to fix this?  My phone is vital to my business and any help is greatly appreciated!!!
    Thnaks!!

    How are you receiving the sms manually?
    If your device is new, proceed to change the device. 
    If I help you with any inquire, thank you for click kudos in my post.
    If your issue has been solved, please mark the post was solved.

  • Having Problem with stuttering video. Please help!

    I haven't had a problem with viewing video online with my laptop until a few days ago. Now, all it will do is start to play, then freeze, play for a few seconds, then freeze, etc. etc. If I am on Hulu and pause the video to allow it to buffer, it will go good for a few minutes then start the same thing over again. I have done the same thing on CBS.com, but the results haven't been as good as on Hulu. I have noticed that it is considerably worse when the commercials start. I tried uninstalling my Flashplayer several times to no avail, and I even uninstalled my Antivirus and reinstalled that thinking that might be the problem. Tried right clicking on the player when it's in use and disableing the hardware accelerator in the settings, but that didn't help. I am about ready to pull my hair out!
    OS is Windows Vista Home Premium Service Pack 2
    Using Mozilla FireFox version3.6.8 and Internet Explorer 8 version 8.0.6001.18928
    Have Adobe Flashplayer version 10.1.53.64
    antivirus is Avast! Free version 5.0.594
    If there is any other info needed, let me know!

    is a video card problem for acne

  • Having problem with switch statement..please help

    here my question :
    GUI-based Pay Calculator
    A company pays its employees as executives (who receive a fixed weekly salary) and hourly workers (who receive a fixed hourly salary for the first 40 hours they work in a week, and 1.5 times their hourly wage for overtime worked).
    Each category of employee has its own paycode :
    ?     Paycode 1 for executives
    ?     Paycode 2 for hourly workers
    Write a GUI-based application to compute the weekly pay for each employee. Use switch to compute each employee?s pay based on that employee?s paycode.
    Use CardLayout layout manager to display appropriate GUI components. Obtain the employee name, employee paycode and other necessary facts from the user to calculate the employee?s pay based on the employee paycode:
    ?     For paycode 1, obtain the weekly salary.
    ?     For paycode 2, obtain the hourly salary and the number of hours worked.
    You may obtain other information which you think is necessary from the user.
    Use suitable classes for the GUI elements. (You can use javax.swing package or java.awt package for the GUI elements.)
    here my code so far :
    import java.awt.;*
    import java.awt.event.;*
    import javax.swing.;*
    *public class PayrollSystem implements ItemListener {*
    JPanel cards, JTextField, textField1, JLabel, label1;
    final static String EXECUTIVEPANEL = "1.EXECUTIVE";
    final static String HOURLYPANEL = "2.HOURLY WORKER";
    public void addComponentToPane(Container pane)
    *//Put the JComboBox in a JPanel to get a nicer look.*
    JPanel comboBoxPane = new JPanel(); //use FlowLayout
    JPanel userNameAndPasswordPane = new JPanel();
    *// User Name JLabel and JTextField*
    userNameAndPasswordPane.add(new JLabel("NAME"));
    JTextField textField1 = new JTextField(25);
    userNameAndPasswordPane.add(textField1);
    *String comboBoxItems[] = { EXECUTIVEPANEL, HOURLYPANEL };*
    JComboBox cb = new JComboBox(comboBoxItems);
    cb.setEditable(false);
    cb.addItemListener(this);
    comboBoxPane.add(cb);
    *//Create the "cards".*
    JPanel card1 = new JPanel();
    card1.add(new JLabel("WEEKLY SALARY"));
    card1.add(new JTextField(6));
    card1.add(new JLabel("TOTAL PAY"));
    card1.add(new JTextField(8));
    card1.add(new JButton("CALCULATE"));
    JPanel card2 = new JPanel();
    card2.add(new JLabel("HOURLY SALARY"));
    card2.add(new JTextField(6));
    card2.add(new JLabel("TOTAL HOURS WORK"));
    card2.add(new JTextField(8));
    card2.add(new JButton("CALCULATE"));
    *//Create the panel that contains the "cards".*
    cards= new JPanel(new CardLayout());
    cards.add(card1, EXECUTIVEPANEL);
    cards.add(card2, HOURLYPANEL);
    pane.add(comboBoxPane, BorderLayout.PAGE_START);
    pane.add(userNameAndPasswordPane, BorderLayout.CENTER);
    pane.add(cards, BorderLayout.PAGE_END);
    public void itemStateChanged(ItemEvent evt)
    CardLayout cl = (CardLayout)(cards.getLayout());
    cl.show(cards, (String)evt.getItem());
    ** GUI created*
    *private static void createAndShowGUI() {*
    *//Make sure we have nice window decorations.*
    JFrame.setDefaultLookAndFeelDecorated(true);
    *//Create and set up the window.*
    JFrame frame = new JFrame("GUI PAY CALCULATOR");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    *//Create and set up the content pane.*
    PayrollSystem demo = new PayrollSystem();
    demo.addComponentToPane(frame.getContentPane());
    *//Display the window.*
    frame.pack();
    frame.setVisible(true);
    *public static void main(String[] args) {*
    *//Schedule a job for the event-dispatching thread:*
    *//creating and showing this application's GUI.*
    *javax.swing.SwingUtilities.invokeLater(new Runnable() {*
    *public void run() {*
    createAndShowGUI();
    HOW CAN I PERFORM THE SWITCH STATEMENT INSIDE THIS CODE TO LET IT FULLY FUNCTIONAL..?
    I MUST PERFORM THE SWITCH STATEMENT LIKE IN THE QUESTION..
    PLEASE HELP ME..REALLY APPRECIATED...TQ

    hi
    A switch works with the byte, short, char, and int primitive data types. So you can simply give the
    switch (month) {
                case 1: 
                            System.out.println("January");
                            break;
                case 2:  {
                            System.out.println("February");
                             break;
                case 3: {
                              System.out.println("March");
                              break;
                             }where month controlls the flow
    moreover u can go to http://www.java-samples.com/java/free_calculator_application_in_java.htm
    for reference, just replace the if statement with switch with correct syntax

  • Problem with brand new Imac, please help

    I was suggested that it would be best for me to post this topic here in this forum.
    Hi I am new to Mac, I had just gotten my 17" imac isight last week, for the most part i am very happy with it. But last night I was having some troubles with it. I had been online and was using Firefox as my browser....I went on one website and all of a sudden my mac froze up, the cursor changed to a spinning colored pinwheel and i couldn't click out of the page at all. In the upper right hand corner of the webpage which i didn't notice when i originally went on it was a message saying "you've been owned noobie"....my only guess was that this person's page had been hacked.
    I tried manually shutting down the imac, when it came back on I could not do anything. Firefox and Safari kept shutting down, and even when i tried going into System Peferences it kept closing on me. I tried shutting down at one point and the computer seemed like it was still on, the light in the lower right hand corner was going in and out. I tried starting up again and could not get onto the desktop, it was stuck on the blue screen. I tried holding the power button down in the back for a few seconds and i took the power cord out from the back for 30 seconds, after that it seemed to work fine.
    I am afraid that this may happen again, right now everything seems fine....has anyone else experienced this issue or has any insight on it? Is it a hardware problem or simply a bad webpage?
    I appreciate any help that you guys can give me!

    Hi and welcome to the wonderful world of iMacs. I too, just got the same iMac as you.
    Here are some new usesr tips & links to check out:
    - Get Applecare in the first 90 days.
    - Apple stores have Free classes, and online seminars & tutorials.
    A new service called: One to One for new users.
    http://www.apple.com/support/mac101/
    http://www.apple.com/support/tiger
    http://www.apple.com/pro
    http://www.apple.com/macatwork
    http://guide.apple.com/index.lasso (all made4mac apps, utilities,
    games etc.)
    **For new Switchers from Pc to Mac:
    http://www.apple.com/support/quickassist
    http://www.apple.com/support/switch101
    http://www.xvsxp.com
    http://www.switchingtomac.com
    - for comparisons of hardware and apps, etc.
    http://guides.macrumors.com/Mac_Beginner's_Guide
    ** For Questions, Problems, and lots of answers:
    - Always try the Help feature in the top menu of the finder and any
    app for lots of info. And, Spotlight, too.
    - try: macfixit.com forums and everymac.com, as well. They have
    excellent forums, and tutorials.
    * David Pogue's, The Missing Manual Series, of books are
    indispensable! Just make sure to get the correct version for your
    particular OS! Panther, Tiger, & Leopard. He has one just for
    Switching, from PC to Mac.
    - For more help try MacUser group in your area:
    http://www.apple.com/usergroups
    - You can also sign up for Kbase info from apple, too.
    http://search.info.apple.com
    - Check out the MacFixit Pro news, too. Tons of info.
    - Helpful tutorials:
    http://www.screencastsonline.com, http://www.howdoimac.com and http,
    www.learntomac.com
    - http://www.macinstruct.com
    - software resource:http://www.iusethis.com
    Have Fun,
    Cali-Kate
    New iMac Intel 17" Core 2 Dou, 2.0Ghz, 1G Ram, 160G HD   Mac OS X (10.4.7)   500mhz Cube, 1.2g ram, 120g HD, Geforce2MX, iSticks + iSub

  • Multiple Problems with itunes...PLEASE HELP

    i'm crossing posting this to try and get as much help as possible, so i'm sorry if you see this in a bunch of places.....
    i posted awhile back and didnt get much help and i'm still having problems with itunes
    first of all when i open itunes it attempts to do the gapless playback stuff....if i let it do it....it gets half way through and freezes....but if i stop it before it freezes, i am able to play music BUT not import any songs from cd, ipod, or downloading software....
    so, i deleted the library and imported "iTunes Music Library.xml"....then i went into my itunes folder and started dropping the songs into itunes...and i got about 3/4s of my music (about 25 gigs) and it starts to freezes when looking for album covers....if i force quit and reopen the song will be in there...just not the album work....which is fine....but if i have to force quit every time i import a song, its going to get rediculous....i have tried deleting the library and importing the "iTunes Music Library.xml" file about 6 times now, with the same results.....
    ALSO...when i connect my ipod to my computer (i have 80 gig 5G) it will freeze while syncing....
    i honestly have NO idea what to do....any suggestions would be welcomed...thanks....
    -Lisa

    modulatetome,
    See if these articles help to narrow down the issue:
    First: How to recreate your iTunes Library
    http://docs.info.apple.com/article.html?artnum=93313
    - You stated you had " deleted the library and imported "iTunes Music Library.xml", so verify steps in article are what you've done, or try them again.
    Second: How to open an alternate iTunes Library file or create a new one
    http://docs.info.apple.com/article.html?artnum=304447
    - You can use this to open iTunes with an empty Library, import one CD and test how iTunes works.
    Hope this helps,
    Generik
    Dual 2.3 GHz PowerPC G5   Mac OS X (10.4.8)  

  • IOS 8.0.2 update causing problems with wifi connectivity..please help

    latest update having problems ...please help..!!!!!!!!!!

    Just a quick snapshot of my chain of events.  I’m currently on my fourth iPhone 6 Plus 64GB here in London, UK. Every time I have spoken to AppleCare and told them that I have gone through all the Wi-Fi troubleshooting methods possible they have asked me to get a brand new retail replacement as I’m within my 14 day return period.  I’ve been experiencing the following issues:
    Wi-Fi disconnects and switches to 4G (Restart required for temp fix)
    Wi-Fi is still active but there is no traffic or activity– often when in sleep mode for long periods of time.  (Toggle Wi-Fi on/off for temp fix)
    Wi-Fi disconnects and cannot find any networks (restart required for temp fix)
    This has been occurring on both iOS 8 and 8.0.2
    The issues are the same on both my 2.4Ghz and 5Ghz networks
    This is affecting my ip6+ and 5s (5s used to work perfect on ios7 on same networks) – My MBP-R and all other devices run perfectly on my network.
    I spoke to AppleCare again yesterday and asked for their advice as its now my fourth iPhone in just under a month. This time they said that apple were fully aware of the Wi-Fi problem and that new repair tickets were not being raised for their engineers as they are already working hard to get this resolved. They also said they could see all the issues raised on the apple discussions boards which they usually don’t admit too! I asked what to do next and the advisor apologised and said this is clearly a software glitch and will be resolved in the next update. I asked for a timescale but unfortunately none was given.
    As stated above I have tried all the troubleshooting methods discussed on forums and on tech websites but the only thing that gives me a stable connection without any disconnects (especially on my 6 plus) is turning cellular/mobile data off when I know I’m going to be on Wi-Fi for a sustained period of time (e.g. at home or work). I appreciate this is annoying but it’s the best temp fix until an update comes out.
    Hope it helps everyone who is having issues with their devices that have cellular functionality.
    Any comments welcome

  • N95 problems with mototrola S9 BT PLEASE HELP!!!!

    I have an N95 and am having real problems connecting with my motorola S9 headset.
    My software version is 11.0.026, 17-04-07, RM-159, 65.01 (not sure which numbers are relevant.
    The S9 connects with all my other phones.
    I assume its a software problem but if anyone has the same issue or a fix please help.
    o2-uk, N95 8GB
    V20.0.016, 28-02-08, RM-320, (88.01)
    Running Rotate Me 2.2 & Rock'n'Scroll & Shake SMS & ShakeLock & Flip Silent

    Will it never connect or the the connection closes afther a while?
    In the first case it can be two things.
    1. The headset has reached the maximum amound of connections. Max os often 7.
    2. The BT profiels are diffrent. Nothing you can do.
    If the connection closes it's your Nokia phone. The nokia profile difrens from the one of the motorola. The refresh time is difrent.
    Hope I helpt.
    Drunken

  • Problems with the Proxy Programme--Please help

    Hi All,
    I have written a simple proxy server in the form of a servlet. I changed the proxy config of my browser to connect to this servlet hosted on the default context(http://localhost:8080) of the Tomcat 5.0.25 . Well , this servlet internally connects to the proxy of the corporate LAN . The logic that I have applied is as follows. The servlet gets the request from the client (ie the browser in this case) , extracts the headers and contents from the request, sets them to a new request that it forms and finally send this new request to the proxy. When the proxy responds, the servlet collects the response headers and contents adn writes them in its response. To sum up , this servlet transparently carries the requests and responses between the client(browser) and the corporate LAN proxy. Now the problem is this. Let's say , now I am accessing http://www.google.com.The browser sends a request to my servlet with the following headers as they are extracted by my servlet.
    ProxyServer:::>posting request
    ProxyServer:::>headerValue::> headerName = accept : headerValue=*/*
    ProxyServer:::>headerValue::> headerName = referer : headerValue=http://www.google.com/
    ProxyServer:::>headerValue::> headerName = accept-language : headerValue=en-us
    ProxyServer:::>headerValue::> headerName = proxy-connection : headerValue=Keep-Alive
    ProxyServer:::>headerValue::> headerName = user-agent : headerValue=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; UB1.4_IE6.0_SP1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
    ProxyServer:::>headerValue::> headerName = host : headerValue=www.google.com
    ProxyServer:::>headerValue::> headerName = cookie : headerValue=PREF=ID=1be27c0a74f198ca:TM=1082058853:LM=1082058853:S=bu6ORrygzm8AUkm8
    ProxyServer:::>postRequest
    I set these headers into a new connection opened to the proxy and post a fresh request to the proxy,which, in turn responds with the following headers.
    ProxyServer:::>posted request successfully
    ProxyServer:::>writing response
    ProxyServer:::>writeResponse-->headerName = Proxy-Connection : headerValue = [close]
    ProxyServer:::>writeResponse-->headerName = Content-Length : headerValue = [257]
    ProxyServer:::>writeResponse-->headerName = Date : headerValue = [Tue, 13 Jul 2004 14:01:40 GMT]
    ProxyServer:::>writeResponse-->headerName = Content-Type : headerValue = [text/html]
    ProxyServer:::>writeResponse-->headerName = Server : headerValue = [NetCache appliance (NetApp/5.5R2)]
    ProxyServer:::>writeResponse-->headerName = Proxy-Authenticate : headerValue = [Basic realm="Charlotte - napxyclt2"]
    ProxyServer:::>writeResponse-->headerName = null : headerValue = [HTTP/1.1 407 Proxy Authentication Required]
    ProxyServer:::>writeResponse exiting
    ProxyServer:::>wrote response successfully
    I write these headers back to the client. According to what I was thinking, the client ie the browser would open a new dialog box asking for username/password owing to the presence of the "Proxy-Authenticate " header. But it does not happen that way. Rather the browser stops responsding and displays a blank page. Does anyone know why it happens this way? I am pasting the server prog below for everybody's reference.
    package server.proxy;
    //import all servlet related classes
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    import java.io.*;
    import java.net.*;
    import server.resources.*;
    //My Proxy server --->Currently it is very simplea and relies on
    //other proxy servers of an already connected network.
    public class ProxyServer extends HttpServlet
    //stores the resource bundle
    private ServerResBundle resBundle = null;
    //checks for the mode of operation
    private boolean proxySet = false;
    private String proxy = null;
    //storing the original System out/err etc
    private PrintStream sysOutOrig = null;
    private PrintStream sysErrOrig = null;
    private InputStream sysInOrig = null;
    //initialise certain features that are required later
    public void init() throws ServletException
    try
    //initialise the resource bundle
    this.initResBundle();
    System.out.println("ProxyServer:::>res bundle init");
    //set the mode of operation
    this.setMode();
    System.out.println("ProxyServer:::>mode set");
    //set the system out and err --System.setOut etc
    this.setSystemOutErr();
    System.out.println("ProxyServer:::>in/out/err set");
    }//End try
    catch(Exception e)
    System.out.println("Exception in init..."+(e.getMessage()));
    throw new ServletException(e);
    }//Edn
    catch(Throwable e)
    System.out.println("Irrecoverable Error...");
    throw new ServletException(e);
    }//End
    }//End init
    //method to init the resource bundle;
    private void initResBundle()
    this.resBundle = ServerResBundle.getBundle();
    }//End
    //method to set the mode of the server--proxy or direct
    private void setMode()
    //read the target proxy property from the bundle and
    //if it is set,take that URL
    String temp = (String)(this.resBundle.getResource(ResKeys.PROXY_SERVER));
    if ( (temp != null) && (temp.length() > 0) )
    this.proxySet = true;
    this.proxy = temp;
    temp = null;
    }//End
    }//End
    //method to set the system out and err etc
    private void setSystemOutErr() throws Exception
    //keep a copy of the original system out and error
    this.sysOutOrig = System.out;
    this.sysErrOrig = System.err;
    try
    //read the options adn if they are set, take the values directly
    String newOutStr = (String)(this.resBundle.getResource(ResKeys.SYSTEM_OUT));
    String newErrStr = (String)(this.resBundle.getResource(ResKeys.SYSTEM_ERR));
    if ((newOutStr != null) && (newOutStr.length() > 0))
    System.setOut(new PrintStream(new FileOutputStream(new File(newOutStr),true),true));
    }//End if
    if ((newErrStr != null) && (newErrStr.length() > 0))
    System.setErr(new PrintStream(new FileOutputStream(new File(newErrStr),true),true));
    }//End if
    }//End
    catch(Exception e)
    //restore the stuff
    System.setOut(this.sysOutOrig);
    System.setErr(this.sysErrOrig);
    }//End
    }//End
    //this is where the proxy functionalities will be embedded
    public void service(HttpServletRequest req,HttpServletResponse resp)
    throws ServletException,java.io.IOException
    //conenction URL
    URL target = null;
    //conenction to the remote object
    URLConnection targetConn = null;
    //stores the OOS and the OIS
    ObjectOutputStream oos = null;
    ObjectInputStream ois = null;
    try
    //check for the mode of operation
    if (proxySet)
    URLConnection objects go through two phases: first they are created, then they are connected.
    After being created, and before being connected, various options can be specified
    (e.g., doInput and UseCaches). After connecting, it is an error to try to set them.
    Operations that depend on being connected, like getContentLength, will implicitly perform the connection,
    if necessary.
    //for the URL to the proxy
    target=new URL(this.proxy);
    //conenct to the proxy
    targetConn = target.openConnection();
    //set the details of the connectuon
    targetConn.setDoInput(true);
    targetConn.setDoOutput(true);
    targetConn.setUseCaches(false);
    // If true, this URL is being examined in a context in which it makes sense to allow user interactions such as popping up an authentication dialog. If false, then no user interaction is allowed
    targetConn.setAllowUserInteraction(true);
    //connect to the remote object
    // targetConn.connect();//call this only when all the request properties are set
    System.out.println("ProxyServer:::>posting request");
    //post the received request to the URL
    this.postRequest(targetConn,req);
    System.out.println("ProxyServer:::>posted request successfully");
    System.out.println("ProxyServer:::>writing response");
    //receive the response
    //write the received response to the client
    this.writeResponse(targetConn,resp);
    System.out.println("ProxyServer:::>wrote response successfully");
    }//End if
    else
    //currently this functionality is not supported
    throw new ServletException(
    (String)(this.resBundle.getResource(ResKeys.ERR_FUNC_NOTSUPPORTED)));
    }//End
    }//End try
    catch(Exception e)
    if(e instanceof ServletException)
    throw (ServletException)e;
    }//End
    if (e instanceof IOException)
    throw (IOException)e;
    }//End
    //wrap it up in ServletException
    throw new ServletException(e);
    }//End
    }//End
    //method to write the response back to the client
    private void writeResponse(URLConnection targetConn,HttpServletResponse resp)
    throws ServletException
    //get all the header fields from the response connection and set them to the
    //response of the servlet
    Map headerFields = null;
    Iterator headerFieldEntries = null;
    Map.Entry header = null;
    //stores the input stream to the conn
    BufferedReader brConn = null;
    //stores the writer to the response
    PrintWriter prResp = null;
    //checks if the proxy authentication needed or not
    boolean proxyAuthReqd = false;
    try
    //juste ensuring that the proxy authentication is reset
    proxyAuthReqd = false;
    if( (targetConn != null) && (resp != null) )
    //Returns an unmodifiable Map of the header fields.
    //The Map keys are Strings that represent the response-header field names.
    //Each Map value is an unmodifiable List of Strings that represents the corresponding
    //field values
    headerFields = targetConn.getHeaderFields();
    //Returns a set view of the mappings contained in this map
    Set temp = headerFields.entrySet();
    //Returns an iterator over the elements in this set
    headerFieldEntries = temp.iterator();
    if (headerFieldEntries != null)
    while (headerFieldEntries.hasNext())
    Object tempHeader = headerFieldEntries.next();
    if (tempHeader instanceof Map.Entry)
    header = (Map.Entry)tempHeader;
    Object headerName = header.getKey();
    Object headerValue=header.getValue();
    System.out.println("ProxyServer:::>writeResponse-->headerName = "+headerName+" : headerValue = "+headerValue);
    //do not select the key-value pair if both the key adn the value are null
    if ( ( headerName == null) && (headerValue == null) )
    continue;
    }//Enmd
    if (headerValue != null)
    List headerValList = null;
    if (headerValue instanceof List)
    headerValList = (List)headerValue;
    }//End
    if(headerValList != null)
    for (int i=0;i<headerValList.size();i++)
    Object headerValueStr = headerValList.get(i);
    if (headerValueStr instanceof String)
    //note that the header-key can not be null for addHeader
    //I have made this temporary provision to make the programme work.
    resp.addHeader(( (headerName==null)? ("null_header"+i) :(String)headerName),
    (String)headerValueStr);
    //check if the proxy authentication required or not
    if (((String)headerValueStr).
    indexOf(resp.SC_PROXY_AUTHENTICATION_REQUIRED+"") != -1)
    System.out.println("ProxyServer:::>writeResponse-->proxy auth needed");
    //proxy authentication is needed
    proxyAuthReqd = true;
    }//End
    }//Ednd of
    else if (headerValueStr == null)
    resp.addHeader(( (headerName==null)? null :(String)headerName),
    null);
    }//End
    }//End for
    }//End if
    }//End if
    }//End
    }//End while
    }//End if
    //get the writer to the client
    prResp = resp.getWriter();
    System.out.println("ProxyServer:::>writeResponse-->proxyAuthReqd="+proxyAuthReqd);
    //juste test a simple header
    System.out.println("Proxy-Authenticate = "+(resp.containsHeader("Proxy-Authenticate")));
    //if the proxy asks you for authentication,pass on the same to the client
    //from whom you have received the request.When this flag is true,the connection
    //is closed by the remotehost adn hence any attempt to open in input steram
    //results in an error ie IOException
    if (!proxyAuthReqd)
    //now get the content adn write it to the response too
    brConn = new BufferedReader(new InputStreamReader(
    targetConn.getInputStream()));
    String tempStr = null;
    while ((tempStr = brConn.readLine())!=null)
    prResp.println(tempStr);
    }//End while
    //close the connections
    brConn.close();
    }//End if
    else
    prResp.println("Proxy Authentication needed...");
    }//End
    //close the streams
    prResp.flush();
    prResp.close();
    }//End if
    System.out.println("ProxyServer:::>writeResponse exiting\n");
    }//End try
    catch(Exception e)
    throw new ServletException(e);
    }//End
    }//End
    //method to post request to the internet
    private void postRequest(URLConnection targetConn,HttpServletRequest req)
    throws ServletException
    //extract the header parameters and the body content from the incoming request
    //and set them to the new connection
    Enumeration reqHeaders = null;
    //reads the incoming request's content
    BufferedReader brReqRd = null;
    PrintWriter prResWt = null;
    //stores temp header names and values
    String headerName = null;
    String headerValue = null;
    try
    if( (targetConn != null) && (req != null) )
    reqHeaders = req.getHeaderNames();
    //extract a header adn set it to the new connection
    while (reqHeaders.hasMoreElements())
    headerName = (String)(reqHeaders.nextElement());
    headerValue = req.getHeader(headerName);
    targetConn.setRequestProperty(headerName,headerValue);
    System.out.println("ProxyServer:::>headerValue::> headerName = "+headerName+" : headerValue="+headerValue);
    }//End
    System.out.println("ProxyServer:::>postRequest\n");
    //establis the actual connection
    //calling this method bfore the above loop results in IllegalStateException
    targetConn.connect();
    //NOTE : try reading from and writing into OIS and OOS respectively
    //now read the contents and write them to the connection
    // brReqRd = req.getReader(); //this hangs for some reason
    brReqRd = new BufferedReader(new InputStreamReader(req.getInputStream()));
    System.out.println("Got the reader..brReqRd = "+brReqRd);
    if (brReqRd != null)
    String temp = null;
    //establish the printwriter
    // prResWt = new PrintWriter(targetConn.getOutputStream(),true);
    prResWt = new PrintWriter(targetConn.getOutputStream());
    System.out.println("trying to read in a loop from brReqRd.. ready="+(brReqRd.ready()));
    while( (brReqRd.ready()) && ((temp=brReqRd.readLine()) != null) )
    System.out.println("In while::>temp = "+temp);
    prResWt.println(temp);
    }//Emd while
    //close the streams adn go back
    brReqRd.close();
    prResWt.flush();
    prResWt.close();
    }//End
    }//End outer if
    System.out.println("ProxyServer:::>postRequest exiting\n");
    }//End try
    catch(Exception e)
    throw new ServletException(e);
    }//End
    }//End
    }//End

    Hi serlank ,
    Thanks for your reply. Well , I initially I thought of not pasting the code,as it was too long. But I could not help it,as I thought I must show in code what I exactly meant. That's why I followed a description of my problem with the code. You could probably have copied the code and pasted it in one of your favourite editors to take a look at it. Did you,by any chance, try to read it on the browser? And as regards reposting the same message, I can say that I did it as I felt the subject was not quite appropriate in the first posting and I was not sure as to how I could delete/alter the posting. I am not asking for a code-fix,but some suggestions from some one who might ever have come across such a thing.Anyway, lemme know if you have any idea on it. Thanks...

  • Problem with adobe acrobat/reader - please help!

    Hello,
    My acrobat reader was fine and I was able to open the pdf files sent to me, then suddenly it just wouldn't open anything at all.  It went into open mode and just stayed there, and wouldn't let me close it.  Then I got a message saying "there is a problem with adobe acrobat/reader.  Please exit and try again".  I've done this lots of times and it still isn't working.
    I would be very grateful for any help or suggestions.  I have windows 7, and as I said its all been fine up until now.
    Thanks.
    mspryce.

    This is the Acrobat forum, not the Reader forum. You should check the reader forum. In the meantime, if you are not running AR9.3 or so, you should update. Prior versions before 9 are not designed for Win7 and that might be your issue -- you gave no indication of version.

  • A Few Questions/Problems With My New iPod *PLEASE HELP*

    Hello! I just received my first iPod (4th Gen, 4GB, Red Nano) two days ago (Christmas Eve) and have so far been fairly happy with it. However, I'm experiencing a few problems with it and am hoping that someone could help me.
    Firstly, a few of the album covers on my iPod are just black squares. I've read other complaints about this on the forums, but haven't seen any solutions. What can I do to fix this?
    Second, I can't figure out how to put my songs in order. On iTunes, it allows me to put songs in alphabetical order, but being that most of my songs are part of full albums, I want my songs to be in the order of when they play on the actual albums. When I try to drag my songs into their correct places, I'm not able to.
    Also, is there any way to delete the games that my iPod came with? I think they might be taking up too much room for my liking...
    OK, well if you can help or add some extra tips to getting started with my iPod, it would be much appreciated. Thank you!

    Bump...

  • Problem with php code. Please help!

    Hello!
    I'm using the following syntax to bring content into my
    websites' layout template:
    Code:
    <?php //check in the root folder first
    if(file_exists('./' . $pagename . '.php'))
    include './' . $pagename . '.php';
    //if it wasn't found in the root folder then check in the
    news folder
    elseif(file_exisits('./news/' . $filename . '.php'))
    include './news/' . $pagename . '.php';
    // if it couldn't be found display message
    else
    echo $pagename . '.php could not be found in either the root
    folder or the news folder!';
    } ?>
    What it's essentially saying is, if you can't find the .php
    file in the _root folder, look for it in the /news/ folder.
    It works perfectly if loading something from the _root folder
    but I get an error if I need to bring something from the /news/
    folder.
    Can anyone see any potential problems with my code?
    Thank you very much and I hope to hear from you.
    Take care,
    Mark

    I've never seen the code written like that before, but I'm
    assuming it's
    legal?
    Perhaps try:
    <?php
    $newsroot = $_SERVER['DOCUMENT_ROOT']."/news";
    if (!file_exists("$pagename.php")) {
    elseif (!file_exists("$newsroot/$pagename.php")) {
    else
    Or the other thing you can try is replacing the elseif
    statement with:
    elseif (!file_exists("news/$pagename.php"))
    If not - I'm sure Gary will be on here soon...
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    =============================================
    Proud GAWDS Member
    http://www.gawds.org/showmember.php?memberid=1495
    Delivering accessible websites to all ...
    =============================================
    "Spindrift" <[email protected]> wrote in
    message
    news:e5mled$272$[email protected]..
    > Hello!
    >
    > I'm using the following syntax to bring content into my
    websites' layout
    > template:
    >
    > Code:
    >
    > <?php //check in the root folder first
    > if(file_exists('./' . $pagename . '.php'))
    > {
    > include './' . $pagename . '.php';
    > }
    > //if it wasn't found in the root folder then check in
    the news folder
    > elseif(file_exisits('./news/' . $filename . '.php'))
    > {
    > include './news/' . $pagename . '.php';
    > }
    > // if it couldn't be found display message
    > else
    > {
    > echo $pagename . '.php could not be found in either the
    root folder or
    > the
    > news folder!';
    > } ?>
    >
    > What it's essentially saying is, if you can't find the
    .php file in the
    > _root
    > folder, look for it in the /news/ folder.
    >
    > It works perfectly if loading something from the _root
    folder but I get an
    > error if I need to bring something from the /news/
    folder.
    >
    > Can anyone see any potential problems with my code?
    >
    > Thank you very much and I hope to hear from you.
    >
    > Take care,
    >
    > Mark
    >

Maybe you are looking for

  • PLEASE HELP!! How Do You Restore ITunes Library From IPOD Back To Computer

    My entire library on intunes has been deleted and now all I have left is the music which i still stored on my ipod. I have done a total search on my PC and there is no track listings at all. My only chance is to restore the itunes library from the Ip

  • No initial load of Customers, Material and delta load of Sales Orders.

    Hi Experts, I am facing a very troublesome issue. I am not able to setup the Middleware portion for initial and delta loads. I read a lot of documents and corrected a lot of things. finally, the connectivity is done with R/3 and CRM. Initial load of

  • Bubble Chart Label in OBIEE

    Hello, I have a bubble chart on dashboard measure1 - x axis measure2 - y axis org name - level access revenue - size of bubble quarter - legend axis the problem is when, i move the mouse over the buble i see the revenue, but what I want to see is org

  • Smart Form print out in Chinese Language

    Hi All, I am using a template to print Condition Type text and Condition Value in a SmartForm. The English output preview and the printout looks ok(amount values are aligned in a straight line) but when printed in Chinese the condition value(amount)

  • Laptop difficult finding printer on bootcamp imac

    Hello ! Thank you very much for your time ! Info: iMac is bootcamp with Windows 7. Printers have been set up and shared on both OSX/Windows on the network. iMac is the main computer. Drivers have been installed on all computers. Problem: Asus Laptop