ShowDocument(URL URL)

Hi,
Im trying to open a webpage with my applet
public class SidebarApp extends JApplet implements ActionListener
       // removed code not related
     AppletContext appletContext;
public void actionPerformed(ActionEvent event)
     if( event.getSource() == Hypo_one)
            appletContext.showDocument("((URL to a site))!");
}What im trying to do*if it's not clear*: ( on click of this button((Hypo_one)) ... change the web page ... ))
Im really not sure what I'm doing here ....... i tried looking at the documentation. and at someone's post on the Forums
Any help is greatly appreciated ...
Edited by: Andy577 on Jul 16, 2008 7:00 PM

import java.net.*;
public class SidebarApp extends JApplet implements ActionListener
        AppletContext appletContext;
     URL url = new URL(www.ghpaa.org.uk/_private/Priv.htm);
        JButton Hypo_one = new JButton("Link One");
public void actionPerformed(ActionEvent event)
          if( event.getSource() == Hypo_one)
               appletContext.showDocument(url);
     }so ... String url = ("Address");
is my other code alright?
At the moment i get an error here:
appletContext.showDocument(url);
Say's "method showDocument(java.lang.String)" .. which is what i have ....
Edited by: Andy577 on Jul 16, 2008 11:06 PM
Edited by: Andy577 on Jul 16, 2008 11:12 PM

Similar Messages

  • IOException  :server returned http response code:505 for url url

    hi,
    my program creates IOException server returned http response code:505 for url <some url>
    I close the i/p stream.I dont know ,where is the problem.plz let me know.Thanks in advance.
    Here is the code:
    public class CallApplicationURL
    private static final String className = "[CallApplicationURL] ";
    private MailAlert ma = new MailAlert();
    public String callURL(String purl, RequestObject ro, Debug log)
         URL url = null;
         String URLResponse = "No response from Provider";
         ProxySetter ps = new ProxySetter();
         try
              ps.setProxy(ro, log);
              url = new URL (purl);
         catch (Exception e)
         URLResponse = className+"Exception while URL assignment \n"+purl+"\n, Exception is "+e;
         return (URLResponse);
         try
         HttpURLConnection h = (HttpURLConnection) url.openConnection();
         h.connect();
         BufferedReader br = new BufferedReader( new InputStreamReader( h.getInputStream() ) );
         URLResponse = br.readLine();
         br.close();
         catch (Exception e)
              URLResponse = className+"Exception while calling URL "+purl+", Exception is "+e;
         return (URLResponse);
         return (URLResponse);
    }

    http response 505: http://libraries.ucsd.edu/about/tools/http-response-codes.html
    This would indicate nothing is wrong with your applet but with your http server (not supporting http 1.1??)
    A full trace might help:
    To turn the full trace on (windows) you can start the java console, to be found here:
    C:\Program Files\Java\j2re1.4...\bin\jpicpl32.exe
    In the advanced tab you can fill in something for runtime parameters fill in this:
    -Djavaplugin.trace=true -Djavaplugin.trace.option=basic|net|security|ext|liveconnect
    if you cannot start the java console check here:
    C:\Documents and Settings\userName\Application Data\Sun\Java\Deployment\deployment.properties
    add or change the following line:
    javaplugin.jre.params=-Djavaplugin.trace\=true -Djavaplugin.trace.option\=basic|net|security|ext|liveconnect
    The trace is here:
    C:\Documents and Settings\your user\Application Data\Sun\Java\Deployment\log\plugin...log
    When you catch the exception you should print the stacktrace: (e.printStackTrace()).

  • Applet.getImage(URL url) question

    Hi,
    I experienced delays of up to several hundreds milliseconds for calling Applet.getImage(URL url) when accessing an image the first time.
    The API states that "This method always returns immediately, whether or not the image exists." but this does not seem to be correct. In contrast, Applet.getToolkit().getImage() returns immediately.
    What are the differences between these two methods?
    What caching mechanisms (browser, SUN cache) are running behind the scenes?
    Used environment: IE6/Java1.5, IE6/Java1.6, Firefox2/Java1.6 ...all running under WinXP.
    Thank you so much!

    I have had exactly the same problem with Applet.getImage.
    In previous JRE versions, Applet.getImage returned immediately,
    but this has apparently changed (I don't know at which version).
    I had to rewrite my program to use Applet.getToolkit().getImage
    - then the program worked as before...
    Looks like a bug to me.
    H�vard Tveite

  • ShowDocument,  valid URL

    hi All,
    I am very new to Java and would appreciate any help!
    I have an applet running on our web server which our customers are using to search and look at files. Some files will have images (.pdf) that I would like for the customers to view in a new browser window.
    I was able to show a .pdf file in a new browser by using the showDocument method, and hardcoding the url. url1= "http:/mywebserver.com/file123.pdf"
    showDcoument(ur11)
    My question is... what is the best way for me to validate and see if this pdf file exists ? so that I can show a button for the customer to view this document.
    I am using the below method where xxx.pdf does not exist.. but it seems to always show the button even though xxx.pdf does not exist.
    try {
    url = new URL (http://mywebserver.com/xxx.pdf)
    viewImageButton.setVisible(true);
    catch (MalformedURLException e)
    {viewImageButton.setVisible(false)}
    Another thought I had was to use f.exists() to check if the file exists but that only works on local drives right ?
    I would appeciate any help.
    thank you !!

    thanks for the suggestion marvin. the problem with that approach is that a database of all devices and their capabilities would need to be maintained and checked against. if we're just talking ipads, iphones and ipod touches, that's reasonable; but there's a huge and growing number of android devices out in the wild and they all have different capabilities...?
    g

  • Rendering Problems using PDK-URL (URL dynamically changes)

    Oracle 9i Application Server 1.0.2.2.1
    Oracle Portal 3.0.9.8.0
    PDK Services for Java version 3.0.9.0.5.
    PDK URL Services version 3.0.9.0.4.
    Oracle HTTP Server 1.3.19.0.0a
    The PDK-URL installed fine and the rendering examples work
    (www.google.com, etc). As a POC, I'd like to render our help
    desk page on portal tab. For the help desk portlet, I added an
    entry in the URL provider.xml with the following url:
    <pageUrl>http://intranet.mas.alcoa.com/tiweb/default.asp</pageUrl>
    When the portlet is placed on a public help desk tab on the main
    portal and the help desk tab is clicked, the address resolved is
    http://mas_itport-ws2/servlet/scripts/TrackIt.asp. The
    "intranet.mas.alcoa.com" portion of the URL is being
    replaced with "mas_itport-ws2/servlet".
    Metalink referred me to this discussion forum. Please let me
    know if you have any ideas regarding this issue or can advise
    where else to get support.
    Thank you in advance,
    [email protected]

    Thank you for the reply amjad. But I do not understand what it
    is that I am suppose to look for. Here is the provider.xml
    entry.
    <provider class="oracle.portal.provider.v1.http.URLProvider">
    <proxyInfo
    class="oracle.portal.provider.v1.http.ProxyInformation">
    <httpProxyHost>na-proxy.alcoa.com</httpProxyHost>
    <httpProxyPort>80</httpProxyPort>
    </proxyInfo>
    <session>true</session>
    <portlet class="oracle.portal.provider.v1.http.URLPortlet">
    <id>1</id>
    <name>TrackIt Portlet</name>
    <title>TrackIt Portlet</title>
    <description>Display TrackIt as a portlet.</description>
    <timeout>100</timeout>
    <timeoutMessage>Timed out waiting for TrackIt
    Portlet.</timeoutMessage>
    <acceptContentType>text/html</acceptContentType>
    <showEdit>false</showEdit>
    <showEditToPublic>false</showEditToPublic>
    <showEditDefault>false</showEditDefault>
    <showPreview>false</showPreview>
    <showDetails>false</showDetails>
    <hasHelp>false</hasHelp>
    <hasAbout>false</hasAbout>
    <renderer class="oracle.portal.provider.v1.RenderManager">
    <contentType>text/html</contentType>
    <showPage class="oracle.portal.provider.v1.http.URLRenderer">
    <contentType>text/html</contentType>
    <charSet>ISO-8859-1</charSet>
    <pageUrl>http://intranet.mas.alcoa.com/tiweb/default.asp</pageUrl
    >
    <filter class="oracle.portal.provider.v1.http.HtmlFilter">
    <headerTrimTag>&lt;body</headerTrimTag>
    <footerTrimTag>/body></footerTrimTag>
    <baseHRef>http://intranet.mas.alcoa.com/Tiweb/default.asp</baseHR
    ef>
    <secBaseHRef>http://intranet.mas.alcoa.com/Tiweb/default.asp</sec
    BaseHRef>
    <inlineRendering>true</inlineRendering>
    </filter>
    </showPage>
    </renderer>
    </portlet>

  • Webservice , URL & URL Variable

    hi all ,
    i got a problem with my project and its regarding connectinng
    to a webservice page for methods interacting with my SQL server
    database and URL variable. (Front end is chinese checker Game )
    Is there any related problems with sending URL variable to
    another swf files and declaring a webservice address as i use the
    URL variable in the methods of the webservices.
    i found out that i cannot connect to the webservice page
    sometimes ( random occurance) with the page being directed by new
    urlrequest with the url variable attached.
    However if it has successfully connected , there is no
    subsequent problems anymore .
    Can someone enlighten mi ?

    I resolved...
    Thanks
    Muvva

  • JEditorPane.setPage(URL url), then I want to clean up HTML, how?

    According to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4695909
    the problem with the inconsistent ArrayIndexOutOfBoundsException that
    I have been getting whenever I would go to a particular URL to put
    into JEditorPane using setPage() - this may also be due to JEditorPane
    containing HTML which contains a <META> tag and/or <!-- comment tag --
    . I created a class SimpleHTMLRenderableEditorPane which extendsJEditorPane, based upon code I found in the aformentioned bug link
    which should auto-strip out "bad tags":
    * SimpleHTMLRenderableEditorPane.java
    * Created on March 13, 2007, 3:39 PM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package com.ppowell.tools.ObjectTools.SwingTools;
    import javax.swing.JEditorPane;
    * A safer version of {@link javax.swing.JEditorPane}
    * @author Phil Powell
    * @version JDK 1.6.0
    public class SimpleHTMLRenderableEditorPane extends JEditorPane {
        //--------------------------- --* CONSTRUCTORS *--
        // <editor-fold defaultstate="collapsed" desc=" Constructors
    ">
        /** Creates a new instance of SimpleHTMLRenderableEditorPane */
        public SimpleHTMLRenderableEditorPane() {
            super();
        // </editor-fold>
        //----------------------- --* GETTER/SETTER METHODS *--
        // <editor-fold defaultstate="collapsed" desc=" Getter/Setter
    Methods ">
         * Overloaded to fix HTML rendering bug Bug ID: 4695909.
         * @param text
        public void setText(String text) {
            // Workaround for bug Bug ID: 4695909 in java 1.4
            // JEditorPane does not handle the META tag in the html HEAD
            if (isJava14() && "text/
    html".equalsIgnoreCase(getContentType())) {
                text = stripMetaTag(text);
            super.setText(text);
        // </editor-fold>
        //--------------------------- --* OTHER METHODS *--
        // <editor-fold defaultstate="collapsed" desc=" Methods ">
         * Clean HTML to remove things like <script>, <style>, <object>,
    <embed>, and <!-- -->
         * Based upon <a href="http://bugs.sun.com/bugdatabase/view_bug.do?
    bug_id=4695909">bug report</a>
        public void cleanHTML() {
            try {
                String html = getText();
                if (html != null && !html.equals("")) {
                    String[] patternArray = {
                        "<script[^>]*>[^<]*(</script>)?",
                        "<style[^>]*>[^<]*(</style>)?>",
                        "<object[^>]*>[^<]*(</object>)?>",
                        "<embed[^>]*>[^<]*(</embed>)?>",
                        "<!\\-\\-.*\\-\\->"
                    for (int i = 0; i < patternArray.length; i++) {
                        html = html.replaceAll(patternArray, "");
    setText(html);
    } catch (Exception e) {} // DO NOTHING
    * Determine if java version is 1.4.
    * @return true if java version is 1.4.x....
    private boolean isJava14() {
    String version = System.getProperty("java.version");
    return version.startsWith("1.4");
    * Workaround for Bug ID: 4695909 in java 1.4, fixed in 1.5
    * JEditorPane fails to display HTML BODY when META
    * tag included in HEAD section.
    * <html>
    * <head>
    * <META http-equiv="Content-Type" content="text/html;
    charset=UTF-8">
    * </head>
    * <body>
    * @param text html to strip.
    * @return same HTML text w/o the META tag.
    private String stripMetaTag(String text) {
    // String used for searching, comparison and indexing
    String textUpperCase = text.toUpperCase();
    int indexHead = textUpperCase.indexOf("<META ");
    int indexMeta = textUpperCase.indexOf("<META ");
    int indexBody = textUpperCase.indexOf("<BODY ");
    // Not found or meta not inside the head nothing to strip...
    if (indexMeta == -1 || indexMeta > indexHead && indexMeta <
    indexBody) {
    return text;
    // Find end of meta tag text.
    int indexHeadEnd = textUpperCase.indexOf(">", indexMeta);
    // Strip meta tag text
    return text.substring(0, indexMeta-1) +
    text.substring(indexHeadEnd+1);
    // </editor-fold>
    However, upon running the following line:
    SimpleBrowser.this.browser.cleanHTML();I spawn the following exception:
    Exception in thread "Thread-2" java.lang.RuntimeException: Must insert
    new content into body element-
            at javax.swing.text.html.HTMLDocument
    $HTMLReader.generateEndsSpecsForMidInsert(HTMLDocument.java:1961)
            at javax.swing.text.html.HTMLDocument
    $HTMLReader.<init>(HTMLDocument.java:1908)
            at javax.swing.text.html.HTMLDocument
    $HTMLReader.<init>(HTMLDocument.java:1782)
            at javax.swing.text.html.HTMLDocument
    $HTMLReader.<init>(HTMLDocument.java:1777)
            at
    javax.swing.text.html.HTMLDocument.getReader(HTMLDocument.java:137)
            at javax.swing.text.html.HTMLEditorKit.read(HTMLEditorKit.java:
    228)
            at javax.swing.JEditorPane.read(JEditorPane.java:556)
            at javax.swing.JEditorPane$PageLoader.run(JEditorPane.java:
    647)What should I do at this point?
    Thanks
    Phil

    Transfer all purchases from the iPad to iTunes on your computer, backup the iPad and then sync one last time.
    Then go to Settings>General>Reset>Erase all content and Settings to completely erase the iPad.
    Connect the new iPad to your computer and launch iTunes, restore from the backup of the old iPad and then sync with iTunes. You should be prompted to restore from the backup when you connect the new iPad to your computer's iTunes, but you can select it on your own as well.
    Transfer purchases.
    http://support.apple.com/kb/HT1848
    How to backup
    http://support.apple.com/kb/HT1766

  • Need help with configuring web root and root url URL

    Hello Folks,
    I have been trying for a while to the flex 4 tutorial which asks you to connect to a mysql database. I have been able to configure the DB but cannot figure out what my web root and root url should be. Is there a web service that needs to be deployed or started. Would it be the IP address of the database that I created ( I tried that ) . I get the idea that an apache service must be started somehow on my flex environment and then I must find the root of the apache server. I dont see an apache directory anywhere. I am finding this difficult to know where to begin.

    Hi,
    First you need to be running a web server on your computer something like wamp/mamp is usually the better choice as most people have had the best success with this server setup(and it has all the current services like php and myssql)
    When you use the wizard the path to your webroot is usually whre you located the wamp/mamp install, for windows it maybe something like c:\wamp\www not 100% sure about macs but I think the 'www' folder on a mac is 'htdocs'.
    your url is either http://localhost or http://127.0.0.1.
    David.

  • Search Engine keyword.url, URL

    How would I figure out what the search engine's URL is if I wanted to add it to the keyword.url? I know the main search engine's URL's for keyword.url, but what if I wanted to use another search engine in the awesome bar that isn't popular?

    You can right-click the search bar on the page and use add a keyword for this search to create a bookmark for that particular search engine to see its URL.
    Then you can use that URL without the %s parameter for the keyword.URL pref (reorder the GET parameter is the query parameter is not the last).
    *http://kb.mozillazine.org/Keyword.URL
    *http://kb.mozillazine.org/Using_keyword_searches
    *http://kb.mozillazine.org/List_of_keyword_searches

  • Passing user/pass by URL (url.openstream())

    Hi guys,
    I have a tough one for you...hehe
    In a JSP, I create a URL... and open it URL.openstream...read each line and write them into another file.
    1)Since the calling JSP is in a directory that ask username and password, when I call the URL, it cannot open it because no username and password give access to the page.
    How can I pass username and password?
    2)I could let the called jsp in a public zone, but the problem is that even if I use jsessionid the session change... do you know why?
    Thanks guys!

    You should have session variables attached to your page. Check Connection and Session, you should be able to use something like getProperties ("userid")

  • URLs  cache and applet context showDocument question

    Hello:
    I wrote an applet and realized that when I try to read from a URL using this code:
    URL Url=new URL(ReadAddress);
    BufferedReader Input = new BufferedReader(new InputStreamReader(Url.openStream()));I was getting cached information from the web browser. So the problem was solved using this:
    URL Url=new URL(ReadAddress);
    URLConn=Url.openConnection();
    URLConn.setUseCaches(false);
    URLConn.setDoInput(true);
    BufferedReader Input = new BufferedReader(new InputStreamReader(URLConn.getInputStream()));However, I wonder what about this?
    URL Url=new URL(ReadAddress);
    getAppletContext().showDocument(Url);Since in this case I can't tell to the applet context to use a specific URLConnection, I don't know if showDocument(Url) will show always the most updated document or could show also a cached one... I could try before calling showDocument:
    Url.openConnection().setUseCaches(false);However, I know this would create a new connection, and I don't know if that's the one that showDocument() will use or if it will internally use anotherone...
    Any idea?

    I don't know if I can help you with this.
    I am able to run the following applet successfully in my Netscape 7.1 browser on Windows 2000 professional. I am including it for you to try. Although I have a feeling it is probably similar enough to what you have already tried, my interest in this topic has to do with the fact that I am having the same error as you when I run an applet in Camino v0.7 on Mac OS X 10.2 and also an older version of Mozilla 1.0.2 also on the Mac. Like you, I don't see any error messages. The browser simply does not redirect to the new page. The thought here is that if you are not able to redirect a user using an applet that will redirect a user on my own Netscape/Windows environment, maybe then the problem will turn out to be one of configuration (? or not) and hopefully I can solve it somehow on Camino. In any case, I'll be watching this thread hoping for a solution for you.
    public class RedirectApplet extends java.applet.Applet
         public void init()
         public void start()
              redirect();
         }// end start
         private void redirect()
              try{
              java.net.URL url
              = new java.net.URL(getCodeBase() + "/WebPage.html");
              this.getAppletContext().showDocument(url, "_self");
              catch(Exception e)
                   System.out.println("Error with redirection - " + e.getMessage());
         }// end method
    }// end applet class

  • Open URL from Applet

    Hi, I have read through past posted messages to try to figure out my problem, but it has not helped. I am trying to open up a browser depending on which link is selected in the drop-down list box. Nothing happens when I click the button so I have hard-coded the link to just see if a browser will open. And, still, nothing happens.
    Here is my code:
    public class Searcher extends Applet implements ActionListener {
      static String[] siteNames = {
        "AltaVista",
        "Excite",
        "HotBot",
        "Infoseek",
        "WebCrawler",
        "Yahoo",
        "Lycos"};
      static String[] siteURLs = {
        "http://www.altavista.com",
        "http://www.excite.com",
        "http://www.hotbot.com",
        "http://www.infoseek.com",
        "http://www.webcrawler.com",
        "http://www.yahoo.com",
        "http://www.lycos.com"};
      Choice searchChooser;
      Button searchButton;
    public void actionPerformed(ActionEvent evt) {
       Button source = (Button) evt.getSource();
        if (source.getLabel().equals("Go Search!")) {
            int indx = searchChooser.getSelectedIndex();
            try {
                 URL url = new URL("http://www.lycos.com");
                AppletContext browser = getAppletContext();
                browser.showDocument(url);
            } catch (MalformedURLException e) {
                System.err.println("Bad URL: " + siteURLs[indx]);
    }

    http://java.sun.com/docs/books/tutorial/applet/overview/index.html
    See "What applets can and can't do" and follow the link.

  • Openning an URL in a new window when the page is submitted, from a pl/sql p

    Hi,
    What I want to do is a procedure (called by an apex process) that opens a new window browser at the URL defined in the procedure.
    I have tried with the following procedure:
    create or replace procedure reportes (par1 NUMBER, par2 NUMBER)
    BEGIN
    htp.htmlOpen;
    htp.headOpen;
    htp.title('Reporte SAF - .: SINERWARE - 2008:.');
    htp.headClose;
    htp.bodyOpen;
    htp.area('0,0,200,400', 'rect', '200.31.86.173/Orden_pedido.jsp?centro_costo='||par1||'&orden_inicial='||par2, NULL, '_blank');
    htp.bodyClose;
    htp.htmlClose;
    END;
    Thanks for any comment.
    Alejandro T.

    I assume your are writting an applet. You can do this by adding a little Javascript to your HTML page. Add this to the HEAD section:
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
      function openURL(url) {
        window.open( url, "", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes" );
      } //end openURL
    // End -->
    </SCRIPT>Execute the Javascript using showDocument():
    String url = "http://somewhere.com/" ;
    try {
      getAppletContext().showDocument((new URL("javascript:openURL(\"" + url +"\")"));
    } catch (MalformedURLException me) {
    } //end try

  • Question regarding URL (extremely urgent)

    I have this:
    try{
       url = new URL(getDocumentBase() + "App.htm");
    catch(Exception ex){
       System.out.println("No such page");
    getAppletContext().showDocument(url, "_blank");This code is what my action listener for a button does.
    The problem is that when I click the button, a page is opened with url:
    (the document base)\AotA.htmApp.htm
    note: AtoA.htm is where my applet is embeeded.
    I wonder why this still includes the AtoA.htm in the new URL.
    thanks

    here's the whole of my code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.net.*;
    public class AtoA extends JApplet implements ActionListener{
         JPanel panel;
         JButton button;
         URL url;
         public void init(){
              new AtoA();
         public AtoA(){
              panel = new JPanel();
              getContentPane().add(panel);
              GridBagLayout g = new GridBagLayout();
              GridBagConstraints c = new GridBagConstraints();
              panel.setLayout(g);
              button = new JButton("Button");
              button.addActionListener(this);
              c.anchor = GridBagConstraints.CENTER;
              c.gridx = 0;
              c.gridy = 0;
              g.setConstraints(button, c);
              panel.add(button);
         public void actionPerformed(ActionEvent e){
              if(e.getSource() == button){
                   try{
                        url = new URL(getDocumentBase() + "App.htm");
                   catch(Exception ex){
                        System.out.println("No such page");
                   getAppletContext().showDocument(url, "_blank");
    }... just in case you wanna check it out.
    thanks for sparing me some of your time.     

  • URL: newbie needs help with simple programming question!

    Hi everyone,
    Please direct me to a FAQ or other resource, or help me with this problem:
    I want to create a text field (or similar container) that contains both ordinary text AND a URL/hyperlink in it. For example, the following text might appear in the text field:
    "I have many _pictures_ from my vacation"
    where the word "pictures" is actually a hyperlink to a web site, and the other portions of the string are simple text.
    All advice and help is appreciated!
    -Dennis Reda
    [email protected]

    Well here is one way you code do it but if you do alittle research on them links above it will explain how this code works.Well it will explain how jeditorpane and hyperlinklistener work
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.event.*;
    import java.net.*;
    public class b extends javax.swing.JApplet implements HyperlinkListener  {
       JEditorPane field = new JEditorPane();
      public b() {
        Container pane = getContentPane();
        FlowLayout flo = new FlowLayout();
        pane.setLayout(flo);
        field.setPreferredSize(new Dimension(200, 25));
        field.setEditable(false);
        pane.add(field);
        setContentPane(pane);
         String gg1 = "<html><body>I have many_<a    href='http://www.home.com'>pictures</a>_from my vacation</body></html>";
         field.addHyperlinkListener(this);
         field.setContentType("text/html");
         field.setText(gg1);
      public void hyperlinkUpdate(HyperlinkEvent e) {
         if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
          try{
            URL url = new URL("http://www.msn.com");
            getAppletContext().showDocument(url,"_self"); 
            }catch(Exception r) {};
      public void init()  {
         b c = new b();
    ps hope this helped                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • HT204053 Can I set up icloud services on multiple iphones under a single account? More specifically, can I use- find my iphone services -under one account?

    Can I use Find My iphone service with multiple iphones under one account? I have 4 iphones in my family and I want to monitor all phones by logging into one account!

  • Refresh Delay with Radial Charts

    Hi, We have deployed a dashboard in XCelsius 2008 SP2 which is composited of two screens. Both screens are published in a B.O. 3.1 environment. One screen has the general information about our sales and the other screen has more detailed data. We hav

  • Batch-input on F-02, how to know next screen?

    Hi people! I have a program that read a excel file and load data to Sap with F-02. The problem is if in first screen is used PStKy 11 the next screen will be 301, if I use PstKy 31 the next screen will be 302, if I use PstKy 40, the next screen will

  • Alerts Question

    Hi Generally by default alert is triggered AFTER the max number of retry (say 3 times) as configured in J2EE visual admin. However, is it possible if I would like the alert trigers immediately the 1ST attempt failed while runtime still will continue

  • HTTP Monitoring through Java

    Hi All, I would like to monitor my browsing data, such as the websites browsed, domain names, redirected websites informations, ad-popup details, finding the active session duration of each window, cookies created by the websites etc. I hope there ar