Link from Applet to web??

Hi,
is it possible to have a link in an Applet that opens up a new browser
window with a fixed address??
If yes, how? or where can I find documentation about it?
I am thankful for any help.
dunja

In your Applet, add the following code:
AppletContext ac = this.getAppletContext();
URL url = null;
String targetWindow = "_blank";
try {
url = new URL(...);
} catch (Exception e) {}
ac.showDocument(url, targetWindow);

Similar Messages

  • Send data from applet to web server

    Hi,
    I want to send data(event notification) to resource through web server using url.
    Like,As long as perticular action or event is occuring I am sending that message to url.
    I reffered Sevlet theory uses HTTPMessage,but I am confused how should start and what would be feasible?
    Even when I run my code I am not finding browser.How should I place an applet in web server page?
    Regards,
    Palak
    Message was edited by:
    palak_shah

    Hi
    I agree usage of HttpClient is a better and a simple method.
    But If your Application Requirements are Simple you may go by using URL & URLconnection Objects in java.net package.
    Just to Add In You Can Checkout the links given below to have a better understanding of how the communication works...
    The Example APPLET code:
    http://mindy.cs.bham.ac.uk/AppletServletExample/EgApplet.java.txt
    The Example SERVLET code:
    http://mindy.cs.bham.ac.uk/AppletServletExample/EgServlet.java.txt
    and the Example AppletDemo Class
    http://mindy.cs.bham.ac.uk/AppletServletExample/EgApplet.class
    Hope this helps :)
    REGARDS,
    RaHuL

  • Zzxc: Links from email and web pages

    When I click on an email link - Firefox opens two browser windows - My homepage AND the page relating to the link. Tried setting up DNS and that hasn't helped. This problem began with version 3.6 and none of the subsequent updates have addressed the problem.
    == Operating system ==
    OS 10.5.8

    The suggestion to change the DNS server was to address the problem with "Server not found" appearing part of the time. Is this still happening?
    Both tabs opening when clicking a link from e-mail is a known problem in Firefox 3.6.x versions. It has already been reported - and is currently targeted to be fixed in the next major version of Firefox (4.0).

  • Auto log in from applet to web app.

    I'm trying to allow a user to jump from an applet to a web app.
    The applet code I'm pretty sure is complete. It creates a URL and then calls container().getAppletContext().showDocument(new URL(path),name);
    This opens a browser and seems to be sending the correct URL.
    What I have done is send it to a URL like /appName/JumpFromApplet
    Then I have created a filter in the web app to catch anything of that format.
    The doFilter method is being executed and it the if statement is catching it appropriately.
    But when the browser opens up the url is just http://localhost:9080/ with a page cannot be found. I'm not sure what I'm doing wrong. Here is the appropriate code. Am I way off base?
    private static final String LOGGEDIN_URL = "login.do";
    //inside doFilter method
    Object o = httpRequest.getSession().getAttribute("LOGGEDIN");
    if(o == null && url != null
             && url.indexOf(JUMP) > 0) {
         config.getServletContext().getRequestDispatcher(LOGGEDIN_URL).forward(request, response);
    }else {
         chain.doFilter(request, response);
    }edit:
    This is basically the same code as in my LoginFilter, I just changed the URL and of course the if statement.
    Edited by: gmachamer on Jan 22, 2008 9:05 AM

    hmmm, strange. I added the code to the loginFilter as an else if.
    If I enter the url in the browser that the filter is suppose to be catching then it works just fine.
    If I jump from the applet it does not... but when stepping through the code in both instances it looks like everything is the same?
    the else if is what is executed.
    public void doFilter(ServletRequest request, ServletResponse response,
            FilterChain chain) throws IOException, ServletException {
        HttpServletRequest httpRequest = (HttpServletRequest) request;
        Object o = httpRequest.getSession().getAttribute("LOGGEDIN");
        String url = httpRequest.getRequestURL().toString();
        if (o != null
                || (url != null && (url.indexOf(LOGIN_URL) > 0
                        || url.indexOf(LOGIN_FORM_URL) > 0
                        || url.indexOf(EXTERNAL_LOGIN_URL) > 0
                        || url.indexOf(EXTERNAL_LOGIN_FORM_URL) > 0
                        || url.indexOf("images") > 0 || url.indexOf(services) > 0))) {
            chain.doFilter(request, response);
            return;
        }else if(o == null && url != null
                  && url.indexOf(JUMP) > 0) {
              config.getServletContext().getRequestDispatcher("/" + JUMP_URL).forward(request, response);
            return;
        config.getServletContext().getRequestDispatcher("/" + LOGIN_FORM_URL)
                .forward(request, response);
    }Edited by: gmachamer on Jan 22, 2008 9:43 AM

  • Add a link from image in web app

    I need to add a link to social media site in a static image in a web app detail layout.
    I have thought this would be...
    <a href="{tag_facebook}"><img alt="" src="/_assets/css/images/social-facebook.png" /></a>
    but this displays the link bedside the icon.
    I have tried field type "Text string (Hyperlink)" and "Text string (String)".
    any help appreciated.
    thanks megan

    Hey Liam,
    Franchise list of stores added to a web app abd each store can have a different link added to the icon.
    The icon is hard coded into the layout
    The url needs to change for each
    e.g. 15 Stores, some have their own Facebook page, some will link to a central Facebook page.
    So the icon is static in the web app detail layout, but url changes.
    When I add the code
    <a href="{tag_facebook}"><img alt="" src="/_assets/css/images/social-facebook.png" />
    the result in browser looks like...
    thanks Liam

  • Calling web service from applet

    Hi,
    I am trying to consume a .NET web service from a java applet. I use JDev9i and I generated a clientside-stub...
    It works fine in the development environnement, but I get this exception when executing from browser:
    java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPropertiesAccess(Unknown Source)
         at java.lang.System.getProperties(Unknown Source)
         at oracle.soap.transport.http.OracleSOAPHTTPConnection.<clinit>(OracleSOAPHTTPConnection.java:105)
         at AppletPackage.Service1Stub.<init>(Service1Stub.java:23)
    I replaceOracleSOAPHTTPConnection with SoapHTTPConnection, but then I get the same exception when trying to execute
    requestBodyEntries.addElement(toElement(wrappingName, targetNamespace, requestData)); (in the stub)
    Is there anything wrong with the methods of the Oracle packages that could cause security problems?

    Nope, the problem is that the webservice impl is trying to get all system properties and this is a restricted operation for applets. Seems like every single api impl done by oracle is not usable from applets, unless you sign them. I've tried webservices, xml and jndi.. all of them rely on system properties

  • When I click on a link from a web page opened in Safari I get a blank black screen. Why can't I see the contents of the page?

    When I click on a link from a web page opened in Safari I get a blank black screen. Why can't I see the contents of the page?

    Is this any link in any page, or one particular link in a particular page?

  • Link from BOBJ Webi report to CRM webUI screen

    Hi experts,
    I was wondering, if there's a way to create a link from Webi report (based on CRM data) to webUI content in CRM? For example, Webi report will have opportunity numbers. User will be able to click on the opportunity number and get to webUI screen where he could see opportunity details and maybe even modify it.
    Best regards,
    Vlad

    Hi,
    You can link Webi Document to webUI content in CRM with help of Hyperlink based on particular column then you need to parse the data.
    Once Parse button is clicked, it displays with the parts of the URL parsed into sections depending on parameters specified in OpenDocument URL.
    for more information kindly go through following document.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0daee1d-0e38-2d10-0c91-8bb4ab5aa266?QuickLink=index&overridelayout=true&47467978778722
    Best Regards,
    Pushkar Dhale

  • I have just updated to Firefox v 6.0.2 and can no-longer open web links from Windows Live Mail 2011 (Bld 15.4.3538).

    Shutting down programmes and rebooting computer did not help. Launching web links from Live Mail has never been a problem before. Error message reads " There was a problem sending the command to the program"

    Firefox 3.6.4 and 3.6.6 use a process called, "plugin-container.exe" which was using up most of my CPU when I opened up multiple tabs that contained Adobe Flash files, and caused Firefox to lock up.
    My solution was to use Firefox 3.5.10 which you can get from the Mozilla website at [http://www.mozilla.com/en-US/firefox/all-older.html]
    I am using Adobe Flash 10.1.53.64 without any problem in this version of Firefox. Check the release notes, I believe it contains all the latest security fixes in "Firefox 3.6.4".
    Hopefully, they will fix Firefox 3.6 in the next version (e.g. Firefox 3.6.7), until then you should probably use "Firefox 3.5.10".

  • Select a link from list of links in web page

    I'm new to OATS. Please help me. I want to click a link from a list of links. I'm testing a web page and try to create a functional test script.

    you can also use regular expression. For example if you know a keyword (unique) in your link, the try with follows:
    String linkText = "myLink";
    web.link("/web:window[@index='0' ]/web:document[@index='0']/web:a[@text='*"+ linkText +"*']").click();
    Regards,
    Deepu M

  • Can I make a url link from my logo in web gallery?

    I'm in LR 1.
    I have a logo in the upper left in web gallery.
    Can I make a url link?
    Pity that clients can see the logo but cannot link to the url. thanks.

    The ability to link html and flash web pages has been in LR since version 1. More specifically 1.4.1, which was the last version of LR 1.
    The link, in the case of Flash galleries is placed in the box called Web or Mail link and will link from the text placed in the Contact info. In Html galleries the link can also be placed in the id plate. Many downloadable galleries have more sophisticated linking systems although some of them will not work in LR 1.4.1 (most will). Do a search for Lightroom Galleries as there are a lot about, or visit the Lightroom Exchange. All are either free or have trial versions (as does LR 3 which you can try for 30 days before buying)

  • Accessing web application JAR files from applet

    I've got an applet which is part of a web application.
    All the web application JARs are in the webapps/myappl/WEB-INF/lib directory, and I
    can't seem to place anything in that directory on the archive attribute of <OBJECT> tag.
    I'm running into trouble because I'm sending objects from the servlet to the applet and keep getting classnot found during deserialization because I've missed some jar file on the archive attribute. I've had to copy lots of jar files up to where the codebase in the HTML file is to make this run. My question is this.
    Is it better to just change the tomcat security policy file (catalina.policy in tomcat conf directory) so that the JARs are directly accessible and I don't have to copy them from WEB-INF/lib???? Has anyone done this before? What would the line look like?
    I'm assuming that I have to follow the instructions (THAT I DON'T UNDERSTAND)
    at the bottom of the policy file. Can someone help me out here????
    should I have something like
    grant codeBase "file:${catalina.home}/webapps/myappl/WEB-INF/classes/-"
    { permission java.security.AllPermission; };
    grant codeBase "file:${catalina.home}/webapps/myappl/WEB-INF/lib/-"
    { permission java.security.AllPermission; };
    Will this allow me to place references to jar files (and the classes directory) in the archive attribute, such as
    <OBJECT .....  >
        <param name="archive" value="../WEB-INF/lib/applet.jar,../WEB-INF/lib/someapp.jar,../WEB-INF/classes" />trailer for catalina.policy is
    // You can assign additional permissions to particular web applications by
    // adding additional "grant" entries here, based on the code base for that
    // application, /WEB-INF/classes/, or /WEB-INF/lib/ jar files.
    // Different permissions can be granted to JSP pages, classes loaded from
    // the /WEB-INF/classes/ directory, all jar files in the /WEB-INF/lib/
    // directory, or even to individual jar files in the /WEB-INF/lib/ directory.
    // For instance, assume that the standard "examples" application
    // included a JDBC driver that needed to establish a network connection to the
    // corresponding database and used the scrape taglib to get the weather from
    // the NOAA web server.  You might create a "grant" entries like this:
    // The permissions granted to the context root directory apply to JSP pages.
    // grant codeBase "file:${catalina.home}/webapps/examples/-" {
    //   permission java.net.SocketPermission "dbhost.mycompany.com:5432", "connect";
    //   permission java.net.SocketPermission "*.noaa.gov:80", "connect";
    // The permissions granted to the context WEB-INF/classes directory
    // grant codeBase "file:${catalina.home}/webapps/examples/WEB-INF/classes/-" {
    // The permission granted to your JDBC driver
    // grant codeBase "file:${catalina.home}/webapps/examples/WEB-INF/lib/driver.jar" {
    //   permission java.net.SocketPermission "dbhost.mycompany.com:5432", "connect";
    // The permission granted to the scrape taglib
    // grant codeBase "file:${catalina.home}/webapps/examples/WEB-INF/lib/scrape.jar" {
    //   permission java.net.SocketPermission "*.noaa.gov:80", "connect";
    // };

    Thank you for your reply.
    As I mentioned in my first post I had seen a couple of posts mentioning ServletContext before, but dismissed them as I am not using any servlets of my own. However, since you showed me exactly how it was used I realised I could probably just use a dummy servlet to get this information.
    The following page suggests a couple of techniques for doing just this.
    http://www.jguru.com/forums/view.jsp?EID=1087411
    So I think that's me sorted, cheers.

  • Link from WEBI chart to WEBI report

    All, how can I link a WEBI chart (column) chart to an detail WEBI report. Appreciate any inputs.
    Thanks,
    Ann

    Hi Ann,
    You can use the chart bars as reportfilter (much like the dropdown box filter effect),
    It is actually implemented as an input control, so you can control a detail table below the chart by clicking on a chart bar.
    However hyperlink from the table is not possible in BI40 (yet).
    (Right click the table, Linking, Add element link).
    So you either have to use the data in the same report option, or use the hyperlink option from a table cell...
    (Right click the cell, Linking, Add hyperlink).
    As I noticed you are using BICS, before jumping to using dashboards (FKA excelsius), be aware that the BICS connectivity in there is still the version running on BW, so unlike a WebI report, you have to publish the dashboard in BW and access it via an SAP portal environment, you cannot run it directly from within BI launchpad (in BI41 this will change). So to link from the portal environment to the BI launchpad for the WebI document you would need some portal integration work too.
    Hope this helps,
    Marianne

  • Upgrade web link from Acrobat X to Acrobat XI broken

    Upgrade web link from Acrobat X to Acrobat XI broken

    Hi Jeff
    Upgrade from Acrobat Pro X to Acrobat Pro XI
    I'm in Perth Western Australia, Australia
    TYIA
    Have a great day
    Kind regards
    Bob Fawcett
    Clearmoon Pty Ltd trading as
    <Removed by Moderator>

  • Link from Web Content overlay to another article

    Thinking caps on, guys. I am trying to reduce the overall size of a folio that contains a pop-out panel (a two-state MSO) that reveals image thumbnails in a vertical scrolling content frame. Each thumbnail is a button that takes the user to another article in the folio. The panel is repeated across all articles, which is handy for the user but wasteful in file size.
    In theory, I ought to be able to reduce the file size of the pages containing these panels if I was to replace the vertical scrolling content frame with a tall Web Content frame that would point to an appropriately designed HTML doc in HTMLResources.zip. This would minimise repetition of all those thumbnails.
    The problem, if you haven't already guessed it, is that DPS does not allow you to link from a Web Content overlay to folio articles. The 'navto://' convention simply won't work in this scenario.
    Is there ANY way to jump a Web Content frame to other locations in the folio? A non-standard, non-supported workaround would do me just fine.
    Thanks for reading this far.
    Ali

    Ali - Check out the new "Linking" article in the Advanced Overlays issue of DPS Tips. It explains how to use an unsupported method for cross-folio linking. I explained how to create buttons with this format, but the same format would work using <a href="URL"> in HTML.
    Johannes also breaks down this method here:
    http://digitalpublishing.tumblr.com/post/26564811021/cross-publication-linking-bonus-qr-co des

Maybe you are looking for

  • Flash files not working in Cap 5.5 upgraded from Cap 3 or 4 and Flash 8

    We just upgraded some projects from Captivate 3 and Captivate 4 to Captivate 5.5 and now some of the .swf files we have on certain slides do not play. They play in Flash itself and they play in Captivate when I use F3 for that slide, but when I creat

  • Column filter on transparent table

    Hi Experts, I have a table (not ALV) and I need column filters on each column of the table. Following are the steps I have followed: 1. Defined 'TABLE' attribute type ref to IF_WD_TABLE_METHOD_HNDL. 2. Created a Tool Bar element on Table with its Vis

  • Transaction to view infoset in SAP R3

    Hello all, Can any one tell the transaction to view infosets in SAP r3. regards kaushik

  • Binding eDirectory to Xserve?

    I need to bind Novell E-Directory to a G5 Xserver running OS 10.5 leapord server, in the past we have been able to bind but it fails immediately, the idiots here absolutely won't extend the Novell E-Directory Scheme, the one time that we did get the

  • One more dumb question

    Say I have and editorPane, and i make it a html viewer, that much i know how to do. But i what i don't know how to do, is on a button event setPage() to some thing like www.yahoo.com for example. I know i would use the java.net.URL, but how do i get