URL.GetRef() and Applets

Hello all,
I've done some extensive searches on the web to try and come up with a solution for this and come up blank.
I have an applet (that renders a diagram) which contains links, some of these links point to other diagrams (in applets embedded in other HTML files) and some point to links within the same diagram.
I want to use HTML fragments (what Java calls References) to identify targets within a page.
This works great the first time the applet loads - it can call GetDocumentBase().GetRef() to get at the initial target.
The problem is how to know that the reference changed if I link to another target in the same file.
This is because the browser knows not to reload the Java applet if the page being loaded is the same as the existing one - and so seemingly doesn't fire any events I can listen to. (If there are any please let me know!)
Furthermore, if I test the GetDocumentBase().GetRef() after following a link to itself - the URL shows the updated HTML fragment - but Java doesn't know about it.
Any suggestions are most welcome.

I guess I should mention that an option that did occur to me is that if the applet executes a link which resolves to itself - it doesn't actually have to let the browser do it - moreover just goto the target internally.
This works well for internal links - but doesn't work well if you have an external control (like a tree) directly trying to execute target links in the same diagram.

Similar Messages

  • 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

  • How to read the param in an URL with an applet???

    I will like to read the in an URL with an applet param (after the ?)
    I need the equivalent of: String parm1 = request.getParameter("param"); but for applet
    I think the HttpServletResponse doesn't work in an applet ???
    Tell me if I'am right
    Thanks for your help
    Benoit

    Hi
    What you can do is, just get that URL in the web page. Like as we can get in the ASP. Store the required information in the variables and pass this information as parameters to the applet.
    Hope this helps!

  • How to stop delay when streaming data from a script as URL to an Applet?

    I have a strange problem and do not know what is causing it. Hope someone here with some experience can help.
    I have a Java Applet which makes a line graph of data. The data source is to be streaming, where the first chunk of data comes from what is already in a data file, and then new data is sent whenever it is ready. The problem in brief is that if I just collect and show the data from the data file and do not stream everything works fine. If I also have the streaming and wait for a long time, everything works fine, but when the applet is first loaded, the graph is not shown until after a long delay time.
    Here is a snippet of the applet code:
             String dataendpoint = "http://phpfunction.php";
             URL url = new URL(dataendpoint);
             InputStream is = url.openStream();
             String line;
             InputStreamReader isr = new InputStreamReader(is);
             BufferedReader br = new BufferedReader(isr);
             while ((line = br.readLine()) != null) {
                   // my code here to handle each line of data which prepares it for
                   // showing on a line graph.
             } In the above, I show the dataendpoint variable hardcoded, but in reality this comes as an Applet parameter. It is a URL of a php script which is on the same server as the applet's code and there are no access problems here.
    The PHP script does the following: It first opens a data file, parses it and prints it out to its standard output using echo or printf statements. The script then enters a loop where it periodically looks to see if new data has been made available. If so, that new data is also printed out to the standard output.
    The PHP script looks like this (in pseudo code):
       // open data files, read lines, and send to standard output using echo
       // flush buffers using ob_flush() and flush() calls
       while (1) {
          sleep(30);
          // get new data, if any, then send to standard output
          // flush buffers again
       Again my problem: If I have the PHP script exit before the while loop everything works fine, my applet makes the graph immediately.
    However, if I include the while loop, then initially the applet does not appear, not until some time afterwards, and then the applet works like it should, scrolling along every time new data arrives.
    I have done a Wireshark sniff and I can see that the initial data is being sent out the the browser and applet immediately. So I do not think it is a buffering problem on the PHP side.
    I have wrapped every Applet code line with debug print statements and from the Java console I see that the Java Applet is stopping at this line:
    InputStream is = url.openStream();
    Can someone explain what is happening here? Why the delay in returning from the openStream() function and how to avoid it?
    By the way, the server is Linux and the Applet is being run on Windows Vista, and I have tried both Internet Explorer and Firefox, both give the same behavior.
    Thanks in advance!
    Steve, Denmark

    I still cannot solve this problem, but I have some more observations:
    1) yes it is a JApplet, and yes, the data streaming is performed in a separate thread.
    2) Wireshark sniffing shows that data sent out by the PHP datasource on the server is sent immediately, and is not buffered (am using ob_start(), ob_flush() and flush() alls in the PHP script).
    3) On Windows Vista, using Internet Explorer or Firefox, there is a constant 30 second delay before the Applet returns from this line: InputStream is = url.openStream();
    4) After this 30 seconds, data appears in the Applet, but it can be seen also with java console debug prints that the data seems to be buffered. The newest data shown in the Applet is not the newest data sent to the client by the PHP datasource script.
    5) On a SUSE Linux client, the Applet works as it should, there is no delay time in showing the data.
    It appears as if there is on Windows a buffering of data which I do not wish to have and which does not occur on Linux. I need to find out how to get the URL openStream() call to return immediately allowing the initial data to be read and shown on the Applet. And I need to remove the buffering of data so that the data can be shown on the Applet when it arrives.
    Can anyone help? Why does this work on Linux but not on Windows, and what can I do, at best within the Java code, to get the Applet to work on Windows as it does on Linux?
    Thanks!
    Steve, Denmark

  • HttpURLConnection and Applet

    I have created an applet and compiled like this because IE was showing ClassNotFoundException
    javac -target 1.1 URLValidatorApplet.java
    now the the browser is displaying applet but it is not working it hangs when the code reaches to connect to my servlet
    http://www.puneetind.com/URLValidator.html is the url for my applet
    and it trys to connect http://www.puneetind.com:8080/servlet/URLValidatorServlet
    but it hangs
    you can try the above urls and see my applet

    just take a look at you java console window, and you will se the exception.
    juergen

  • Security, SocketPermission and applets

    Hi, Im trying to read an url from an applet but I dont know how to set the permissions from the applet.
    here is my code:
    import java.applet.*;
    import java.net.*;
    import java.io.*;
    import java.awt.*;
    public class TestApplet extends Applet{
    private String line;
    public void init () {
    try {
    URL url = new URL(
    "http://www.yahoo.com");
    BufferedReader in = new BufferedReader(
    new InputStreamReader(url.openStream()));
    line = in.readLine();
    in.close();
    }catch (Exception e){
    e.printStackTrace();
    public void paint (Graphics g) {
    g.drawString (line, 20, 40);
    And the problems are here:
    java.security.AccessControlException: access denied (java.net.SocketPermission w
    ww.yahoo.com resolve)
    at java.security.AccessControlContext.checkPermission(AccessControlConte
    xt.java:270)
    at java.security.AccessController.checkPermission(AccessController.java:
    401)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
    at java.lang.SecurityManager.checkConnect(SecurityManager.java:1042)
    at java.net.InetAddress.getAllByName0(InetAddress.java:937)
    at java.net.InetAddress.getAllByName0(InetAddress.java:918)
    at java.net.InetAddress.getAllByName(InetAddress.java:912)
    at java.net.InetAddress.getByName(InetAddress.java:832)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:293)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:264)
    at sun.net.www.http.HttpClient.New(HttpClient.java:336)
    at sun.net.www.http.HttpClient.New(HttpClient.java:317)
    at sun.net.www.http.HttpClient.New(HttpClient.java:312)
    Does anybosy knows how can i fix this program so it can work?
    Thank you

    In order to access anything in client machine u have sign ur applications.
    Signing JAR Files with a Test Certificate
    Here are the steps needed to sign a JAR file with a test certificate:
    1. Make sure that you have a JDK 1.2 or JDK 1.3 keytool and jarsigner in your path (located in the J2SE SDK bin directory).
    2. Create a new key in a new keystore as follows:
    keytool -genkey -keystore myKeystore -alias myself
    You will get prompted for a information about the new key, such as password, name, etc. This will create the myKeystore file on disk.
    3. Then, create a self-signed test certificate as follows:
    keytool -selfcert -alias myself -keystore myKeystore
    This will prompt for the password. Generating the certificate takes a few minutes.
    4. Check to make sure that everything is ok. To list the contents of the keystore, use the command:
    keytool -list -keystore myKeystore
    It should list something like:
    Keystore type: jks
    Keystore provider: SUN
    Your keystore contains 1 entry:
    myself, Tue Jan 23 19:29:32 PST 2001, keyEntry,
    Certificate fingerprint (MD5):
    C2:E9:BF:F9:D3:DF:4C:8F:3C:5F:22:9E:AF:0B:42:9D
    5.Finally, sign the JAR file with the test certificate as follows:
    jarsigner -keystore myKeystore test.jar myself
    6. Repeat this step on all of your JAR files.
    Please note that a self-signed test certificate should only be used for internal testing, since it does not provide any guarantees about the identity of the user and therefore cannot be trusted. A trust-worthy certificate can be obtained from a certificate authority, such as VeriSign, and should be used when the application is put into production.
    Regards
    Edward.i

  • How to display URL images and URL link (html) from Smartforms?

    Hi Gurus,
    I'm having difficulty on how to display targeted URL images and URL link from the smartforms, after i sending it out as html mail. The mail i sent just can be preview as a plain text, which can't execute the html code that i put inside the smartforms itself. I follow a few step from this very useful blog.. Hopefully, you guys can give me some solutions or ideas on this.
    /people/pavan.bayyapu/blog/2005/08/30/sending-html-email-from-sap-crmerp -thanks to Pavan for his useful blog.
    My code is like this..
    <--- Start Code.
    FORM call_smartforms.
      DATA : lv_subject TYPE so_obj_des,
             lc_true(1) VALUE 'X',
             lw_control_parameters TYPE ssfctrlop,
             lw_output_options TYPE ssfcompop,
             lc_graphics(8) VALUE 'GRAPHICS',
             lw_xsfparam_line TYPE ssfxsfp,
             lc_extract(7) VALUE 'EXTRACT',
             lc_graphics_directory(18) VALUE 'GRAPHICS-DIRECTORY',
             lc_mygraphics(11) VALUE 'mygraphics/',
             lc_content_id(10) VALUE 'CONTENT-ID',
             lc_enable(6) VALUE 'ENABLE',
             lw_job_output_info TYPE ssfcrescl,
             lw_html_data TYPE trfresult,
             lw_graphics TYPE ssf_xsf_gr,
             lt_graphics TYPE tsf_xsf_gr,
             lv_html_xstr TYPE xstring,
             lw_html_raw LIKE LINE OF lw_html_data-content,
             lv_incode TYPE tcp00-cpcodepage VALUE '4110',
             lv_html_str TYPE string,
             lv_html_len TYPE i,
             lc_utf8(5) VALUE 'utf-8',
             lc_latin1(6) VALUE 'latin1',
             lv_offset TYPE i,
             lv_length TYPE i,
             lv_diff TYPE i,
             lt_soli TYPE soli_tab,
             lw_soli TYPE soli,
             lc_mime_helper TYPE REF TO cl_gbt_multirelated_service,
             lv_name TYPE mime_text VALUE 'sapwebform.htm',
             lv_xstr TYPE xstring,
             lw_raw TYPE bapiconten,
             lt_solix TYPE solix_tab,
             lw_solix TYPE solix,
             lv_filename TYPE string,
             lv_content_id TYPE string,
             lv_content_type TYPE w3conttype,
             lv_obj_len TYPE so_obj_len,
             lv_bmp TYPE so_fileext VALUE 'BMP',
             lv_description TYPE so_obj_des VALUE 'Graphic in BMP format',
             lc_doc_bcs TYPE REF TO cl_document_bcs,
             lc_bcs TYPE REF TO cl_bcs,
             lc_send_exception TYPE REF TO cx_root,
             lw_adsmtp TYPE lty_adsmtp,
             lv_mail_address TYPE ad_smtpadr,
             lc_recipient TYPE REF TO if_recipient_bcs,
             lc_send_request TYPE REF TO cl_bcs,
             lv_sent_to_all TYPE os_boolean.
      DATA : v_language TYPE sflangu VALUE 'E',
             v_e_devtype TYPE rspoptype.
      v_form_name = 'ZTEST_EMAIL'.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = v_form_name
        IMPORTING
          fm_name            = v_namef
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      IF sy-subrc = 0.
       break mhusin.
      ENDIF.
    starting here. ***
    Set title for the output
      lv_subject = 'Smartforms.'.
    Set control parameters to "no dialog"
      lw_control_parameters-no_dialog = lc_true.
    IF lw_service_subject-code = lc_fm1.
    *--- To get output device type
      CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
        EXPORTING
          i_language    = v_language
          i_application = 'SAPDEFAULT'
        IMPORTING
          e_devtype     = v_e_devtype.
      lw_output_options-tdprinter = v_e_devtype.
      lw_control_parameters-getotf = 'X'.
      IF sy-subrc = 0.
       break mhusin.
      ENDIF.
    Set output options
      lw_output_options-xsf        = lc_true.
      lw_output_options-xsfcmode   = lc_true.
      lw_output_options-xsfoutmode = 'A'.
      lw_output_options-xsfoutdev  = space.
      lw_output_options-xsfformat  = lc_true.
      lw_xsfparam_line-name  = lc_graphics.
      lw_xsfparam_line-value = lc_extract.
      APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
      lw_xsfparam_line-name  = lc_graphics_directory.
      lw_xsfparam_line-value = lc_mygraphics.
      APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
      lw_xsfparam_line-name  = lc_content_id.
      lw_xsfparam_line-value = lc_enable.
      APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
    Get the smartform content
      CALL FUNCTION v_namef
        EXPORTING
          control_parameters   = lw_control_parameters
          output_options       = lw_output_options
    *pass other application specific parameters (eg order number, items ).
      IMPORTING
          job_output_info    = lw_job_output_info
      TABLES
          tt_tabh              = tt_tabh
          tt_tabb              = tt_tabb
          tt_tabf              = tt_tabf
      EXCEPTIONS
          formatting_error = 1
          internal_error   = 2
          send_error       = 3
          user_canceled    = 4
          OTHERS           = 5.
      IF sy-subrc = 0.
       break mhusin.
      ENDIF.
      lw_html_data  = lw_job_output_info-xmloutput-trfresult.
      lt_graphics[] = lw_job_output_info-xmloutput-xsfgr[].
      CLEAR lv_html_xstr.
      LOOP AT lw_html_data-content INTO lw_html_raw.
        CONCATENATE lv_html_xstr lw_html_raw INTO lv_html_xstr IN BYTE MODE.
      ENDLOOP.
      lv_html_xstr = lv_html_xstr(lw_html_data-length).
      CALL FUNCTION 'SCP_TRANSLATE_CHARS'
        EXPORTING
          inbuff       = lv_html_xstr
          incode       = lv_incode
          csubst       = lc_true
          substc_space = lc_true
        IMPORTING
          outbuff      = lv_html_str
          outused      = lv_html_len
        EXCEPTIONS
          OTHERS       = 1.
    *HACK THE HTML CODE GENERATED BY SMARTFORM TO MAKE THE
    *EXTERNAL IMAGES APPEAR AS <IMG> TAG IN HTML
      REPLACE ALL OCCURRENCES OF '<IMG' IN lv_html_str WITH '<IMG' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '/>' IN lv_html_str WITH '/>' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '</A>' IN lv_html_str WITH '' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '<' IN lv_html_str WITH '<' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '>' IN lv_html_str WITH '>' IGNORING CASE.
    CALL METHOD html_control - >load_mime_object
       EXPORTING
         object_id  = 'ZWN'
         object_url = 'ZWN.GIF'
       EXCEPTIONS
         OTHERS     = 1.
      REPLACE ALL OCCURRENCES OF lc_utf8 IN lv_html_str WITH lc_latin1.
    REPLACE ALL OCCURRENCES OF lc_utf8 IN lv_html_str WITH 'iso-8859-1'.
       break mhusin.
      lv_html_len = STRLEN( lv_html_str ).
      lv_offset = 0.
      lv_length = 255.
      WHILE lv_offset < lv_html_len.
        lv_diff = lv_html_len - lv_offset.
        IF lv_diff > lv_length.
          lw_soli-line = lv_html_str+lv_offset(lv_length).
        ELSE.
          lw_soli-line = lv_html_str+lv_offset(lv_diff).
        ENDIF.
        APPEND lw_soli TO lt_soli.
        ADD lv_length TO lv_offset.
      ENDWHILE.
      CREATE OBJECT lc_mime_helper.
      CALL METHOD lc_mime_helper->set_main_html
        EXPORTING
          content     = lt_soli
          filename    = lv_name
          description = lv_subject.
      LOOP AT lt_graphics INTO lw_graphics.
        CLEAR lv_xstr.
        LOOP AT lw_graphics-content INTO lw_raw.
          CONCATENATE lv_xstr lw_raw-line INTO lv_xstr IN BYTE MODE.
        ENDLOOP.
        lv_xstr = lv_xstr(lw_graphics-length).
        lv_offset = 0.
        lv_length = 255.
        CLEAR lt_solix[].
        WHILE lv_offset < lw_graphics-length.
          lv_diff = lw_graphics-length - lv_offset.
          IF lv_diff > lv_length.
            lw_solix-line = lv_xstr+lv_offset(lv_length).
          ELSE.
            lw_solix-line = lv_xstr+lv_offset(lv_diff).
          ENDIF.
          APPEND lw_solix TO lt_solix.
          ADD lv_length TO lv_offset.
        ENDWHILE.
        CONCATENATE lc_mygraphics lw_graphics-graphics text-001 INTO lv_filename.
        CONCATENATE lc_mygraphics lw_graphics-graphics text-001 INTO lv_content_id.
        lv_content_type = lw_graphics-httptype.
        lv_obj_len      = lw_graphics-length.
    *Add images to the email
        CALL METHOD lc_mime_helper->add_binary_part
          EXPORTING
            content      = lt_solix
            filename     = lv_filename
            extension    = lv_bmp
            description  = lv_description
            content_type = lv_content_type
            length       = lv_obj_len
            content_id   = lv_content_id.
      ENDLOOP.
      TRY.
          lv_subject = lv_subject.
          lc_doc_bcs = cl_document_bcs=>create_from_multirelated(
                   i_subject          = lv_subject
                   i_multirel_service = lc_mime_helper ).
        CATCH cx_document_bcs INTO lc_send_exception.
        CATCH cx_bcom_mime INTO lc_send_exception.
        CATCH cx_gbt_mime INTO lc_send_exception.
      ENDTRY.
    Create send request
      TRY.
          lc_bcs = cl_bcs=>create_persistent( ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
      TRY.
          lc_bcs->set_document( i_document = lc_doc_bcs ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
    Set-up email receiver
      lv_mail_address = '[email protected]'.
    TRANSLATE lv_mail_address TO UPPER CASE.
      TRY.
          lc_recipient = cl_cam_address_bcs=>create_internet_address(
              i_address_string = lv_mail_address ).
        CATCH cx_address_bcs INTO lc_send_exception.
      ENDTRY.
      TRY.
          lc_bcs->add_recipient( i_recipient = lc_recipient ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
    Send smartforms as HTML email
      TRY.
          lc_bcs->send( ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
      COMMIT WORK.
      WRITE:/ 'Mail sent'.
    ENDFORM.                    "call_smartforms
    End Code --->
    Thanks and Regards.

    1- put your images in a directory under the web app directory. Example: app/images/
    2- in your jsp, use: String file = application.getRealPath("/images/"); to get the images directory. See http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html#getRealPath(java.lang.String)
    3- it's not the right forum to post this kind of question. Post them in the JSP/Servlet JSTL forum instead

  • HT3281 Podcasts from Current Tv, since three weeks prior to the Nov 2012 election have had a url problem and cannot be played on my mac mini 2011 with 10.8.2 and the latest Itunes? anyone know why ? I am in contact with Itunes now and they wanted screensh

    Podcasts from Current Tv, since three weeks prior to the Nov 2012 election have had a url problem and cannot be played on my mac mini 2011 with 10.8.2 and the latest Itunes? anyone know why> ? I am in contact with Itunes now and they wanted screenshots of the problem, I can get these current tv episodes with a vpn and my isp says they are not blocking them, but i was surprised that prior to the election they were blocked, ?
    I also can get them on my Android Samsung Galaxy note 2 with no problem but on the Macmini cannot>/? I Unsubscribed and subscribed many times but still no luck, any ideas? I am waiting for the senior advisor to get back to me on this issue. I am in THailand now where the problem is happening and as I said the ISP says they do not block any podcasts.I also do not want it on my iphone 5, so I have to wait and see why the mac mini is not getting it.

    I seem to have fixed it by putting <div  class="clearfloat"></div> after the navigation bar?

  • I am Unable to Type or use Keyboard in Firefox 18.0 anywhere including URL bar and Search Bar. how should rectify this?

    I am unable to type anything or use keyboard to type in Firefox. I am using Firefox 18.0 installed on Windows 7.
    I am able to Paste into the URL bar and also the Search bar but absolutely not able to type in it.
    I have already tried the "reset" option but still unable to type.
    Also tried Firefox in safe mode with disabled addons but still unable to type.
    Installed a fresh copy of firefox after uninstalling Firefox and deleting the old folder "Mozilla Firefox" from windows. but still unable to type.
    Please tell me a solution to this.

    I'm not on a laptop so I don't have a FN key. But on my desktop F9 + Windows key appears to have resolved the issue for me. Thanks for the help!

  • Bug in form based authorization ( url-patter /* and loginform in /*)

    Try this:
    examples\weapp\security
    default web.xml file for this webapp has url-pattern =
    <url-pattern>/admin/*</url-pattern>
    try to register this web application as default webApplication ( this can be
    done only by editing config.xml manualy - this is feature or bug ? =) )
    and change url-pattern to <url-pattern>/*</url-pattern> and try to run this
    example. Weblogic falls to recursion when executing this example. Porblem is
    that access to loginform is protected by /* but in order to access resouces
    in /* i need autorization which can be performed only by using loginform
    PS: sorry for my poor english
    Regards,
    Giedrius Trumpickas

    in the web.xml, you can specify some security setting , also the the protected
    resources are grouped by url pattern, so to avoid that ,you can group the protected
    url pattern to exclude the form resource, so the form resource page don't need
    to protected. or if weblogic is really smart , they should in default to leave
    the form page or error page or welcome page unprotected.
    Hope that helps.
    Yaodong Hu
    "Giedrius Trumpickas" <[email protected]> wrote:
    Try this:
    examples\weapp\security
    default web.xml file for this webapp has url-pattern =
    <url-pattern>/admin/*</url-pattern>
    try to register this web application as default webApplication ( this
    can be
    done only by editing config.xml manualy - this is feature or bug ? =)
    and change url-pattern to <url-pattern>/*</url-pattern> and try to run
    this
    example. Weblogic falls to recursion when executing this example. Porblem
    is
    that access to loginform is protected by /* but in order to access resouces
    in /* i need autorization which can be performed only by using loginform
    PS: sorry for my poor english
    Regards,
    Giedrius Trumpickas

  • Is it possible to run a website built in Java and applet from Safari browser in iPad

    Is it possible to run a website built in Java and applet from Safari browser in iPad?

    Java isn't supported on the iPad

  • JDev3.0's JSP and Applet works on NT but doesn't work on Win98, why?

    JDeveloper3.0 works fine on WindowNT machine when I run JSP files and Applet, but at home the JDeveloper3.0 cannot trigger the browser to display the result on my Windows98 machine when I run the JSP files or Applet. Why? How can I make it works for me at home. Other tools, such as J++6.0 and JBuilder work with Applet on the same machine. Who can help me?

    James,
    The JDeveloper 3.0 design time environment is not supported on Windows98. Some functions might work under Win98 but they are not supported.
    Sorry!
    Regards,
    Arun

  • My toolbar where the url is and the bar with the file, edit, and veiw are both gone. How do I get them back?

    MY sisters or some one messed with the toolbars and now they are both gone I can't get into anything to change it to show them. I can't see the file, edit or veiw buttons or the tool bar with the url and back button.

    Elly, try holding down the Ctrl and Shift keys while you type \ which should bring you back the Tool Bar (the bit with the Back/Forward buttons URL field and search fields).
    Once you've got that, click on the Action Menu (the wee coggy thing to the far right) to see a list of Show/Hide commands for your other Bars (including the Menu Bar):

  • Regarding communication between JSF and applet.

    Hi all,
    I have to send a array of int value from JSF to the applet method and vice versa,
    so how can I do that?
    Is there any straight forward way is there?
    Or I need to use javascript in between applet and JSF for communicating.
    If this is case can give some links so that I can go through it.
    What I need is, I have jsf table(grid) when I select a row from table, for the selected row I have to display selected row ID in applet and vice versa.
    Any suggestion or links will be appreciated, thanks in advance.
    Thanks
    daya

    thanks and sorry for late reply, let me go through the link,
    i have tried with JavaScript, i got stuck, i need to call a JavaScript method for JSF component event listener. I searched in Google but no help regarding same.
    Actually what I need is, I have JSF Component i.e. GridView(Table) and applet in a page. And for each row selection in GridView(table) I need to call a javascript method (with column value), and vice versa.
    Can you give suggestion or any link so that can proceed further.
    and i am able to communicate between applet which are included in the page
    Thanks
    Daya

  • URL Encoding and Decoding in OSB

    Hi,
    Do we have out-of-box solution in OSB to decode XML which is URL encoded and encode XML to URL encoding. If so how can I do it.
    This might be basic question. I am unable to figure out. new to OSB.
    Thanks
    Sham.

    Hi Sham,
    Probably these are what you looking for...
    fn-bea:inlinedXML()
    fn-bea:serialize()
    fn-bea:serialize() to represent an XML document as a string
    fn-bea:inlinedXML() to parses textual XML and returns an instance of the XQuery 1.0 Data Model.
    Supported Function Extensions from Oracle
    http://docs.oracle.com/cd/E23943_01/admin.1111/e15867/xquery.htm#i1101407
    Oracle’s XQuery Implementation
    http://docs.oracle.com/cd/E13162_01/odsi/docs10gr3/xquery/extensions.html
    Cheers,
    Vlad
    It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts)
    https://forums.oracle.com/forums/ann.jspa?annID=893

Maybe you are looking for