Onclick event jsp with Applet

If it is possible so give me Ans.
i am creating jsp page and display some data and link,
and i am clicking some link and open applet window with some result
it is possible or not .

possible
these might help:
http://www.java2s.com/Code/Java/JSP/JspAppletPlugin.htm
and this forum:
http://forums.sun.com/thread.jspa?threadID=224382&messageID=789775
Edited by: alwayslearn on Sep 16, 2008 6:08 AM

Similar Messages

  • Call JSP with applet and wait till it is loaded

    Hi,
    I am calling a JSP with a java-script. The targetpage needs some time, until the applet is loaded. I would like to call a function in the applet.
    My problem is, that I cannot set 'location.href' and straight after that call the applet, because it will not be there. How can I delay the applet-call, until it is really there?
    function loadOrder(){
    top.mainFrame.location.href = 'auftragseditor.jsp';
    top.mainFrame.OrderApplet.setOrder( orderno )
    I also fitted a while(...) loop between the two statements, but obviously the page is not build up in another thread. The loading will wait.
    Thanks for your help
    Klaus

    Assuming that top.mainFrame.OrderApplet.setOrder( orderno ) causes an exception because
    the applet is not loaded yet you should put it in a try and catch.
    One other problem is that orderno is not defigned anywhere in your method.
    function loadOrder(){
      top.mainFrame.location.href = 'auftragseditor.jsp';
      callApplet( orderno );
    function callApplet(strPassToApplet){
      try{
         top.mainFrame.OrderApplet.setOrder( orderno )
      }catch(e){
        // try again in .1 seconds
        setTimeout("callApplet(\"" + strPassToApplet + \");",100);
    }

  • Does onClick event work with Group in Adobe CC?

    Hi everyone
    I need to know if onClick event can be used on a Group in Adobe CC as it does in CS versions.
    Thanks!

    The removal of this option may also be due to the ScriptUI update in CC.
    http://blogs.adobe.com/aftereffects/2013/04/whats-new-changed-after-effects-next.html
    scripting changes
    ScriptUI is now based on the same controls as the main application, so appearance and functionality of panels created with scripts should be more consistent.
    Other scripting changes will be listed in a separate post on this blog soon.

  • Dynamic Fonts in JSP With applet

    Hi Buddies
    My Multilingual web application uses a dynamic font , the technology provided by TrueDoc.com. Now the problem is the webpage works properly by making use of the dynamic fonts and I get stuck to life when I realised that my applet should also display using the dynamic font.
    The dynamic font is a file with an extension of .pfr usually placed in the server and all the webpages will be bound to the server to make use of the .pfr font, there by making all the clients to view the sam font
    irrespective of the fonts installed in the client machine.
    How do i get going

    The applet is run on the client machine, so you have to include the .pfr with the applet code. Best bet would be to use a JAR for the Applet and package the .pfr inside there.

  • Can't set a hidden field value from onClick event with a runtime expression

    Hi,
    I need to set a hidden field in an onClick event of button but it's not working.
    <html:submit styleClass="btnLink" onclick="document.empForm.hidden.value='<%= empID%>'">
    <%= empID%>
    </html:submit>
    Althought the second expression is evaluated and written successfully "the button value"
    I heard that this is because you can't mix the value of an attribute of a custom tag with both string literal and run time expressions.
    Is there any work around to solve that?
    I can't use EL as I'm using old JSP version

    I guess, it should work; instead of html:submit, try with button.

  • Not able to run Applet after calling JSP with a Servlet

    Dear Java-Community :)
    At first I want to say, that my English isn't the best.. so I hope you'll understand my problem ;)
    I'm running a J2EE-Application, packed in a EAR-File, on my JBoss with following directory-structur:
    /jaw6c/bin
    /jaw6c/build
    /jaw6c/common
    /jaw6c/ejb
    /jaw6c/sql
    /jaw6c/src
    /jaw6c/webapp
    /jaw6c/webapp/build
    /jaw6c/webapp/build/classes
    /jaw6c/webapp/build/classes/com
    /jaw6c/webapp/build/classes/com/jbossatwork
    /jaw6c/webapp/build/classes/com/jbossatwork/ControllerServlet.class<<<<<<<<
    /jaw6c/webapp/build/distribution
    /jaw6c/webapp/build/distribution/webapp.war
    /jaw6c/webapp/build/gensrc
    /jaw6c/webapp/compile-lib
    /jaw6c/webapp/lib
    /jaw6c/webapp/src
    /jaw6c/webapp/src/com
    /jaw6c/webapp/src/com/jbossatwork
    /jaw6c/webapp/src/com/jbossatwork/ControllerServlet.java
    /jaw6c/webapp/web
    /jaw6c/webapp/web/WEB-INF
    /jaw6c/webapp/web/WEB-INF/classes
    /jaw6c/webapp/web/buyCarForm.jsp
    /jaw6c/webapp/web/carForm.jsp
    /jaw6c/webapp/web/carList.jsp
    /jaw6c/webapp/web/copy_darstellungErgebnisse.jsp
    /jaw6c/webapp/web/darstellungErgebnisse.jsp<<<<<<<<<<<<<<
    /jaw6c/webapp/web/default.css
    /jaw6c/webapp/web/diag.jar
    /jaw6c/webapp/web/diagram.class<<<<<<<<<<<<<<<<<<<<<<<<
    /jaw6c/webapp/web/error.jsp
    /jaw6c/webapp/web/index.jsp
    /jaw6c/webapp/web/selectBewertungslaeufeList.jsp
    /jaw6c/webapp/build.xml
    /jaw6c/build.xmlThe applet should be loaded in my "darstellungErgebnisse.jsp"-File.
    Now the strange situation:
    When I access "darstellungErgebnisse.jsp" DIRECTLY by entering a URL like "localhost:8080/jaw/darstellungErgebnisse.jsp" , the applet is loading perfectly !
    But when my server is forwarding me to the JSP-Site with
    RequestDispatcher dispatcher =  getServletContext().getRequestDispatcher(destinationPage);
    dispatcher.forward(request, response);
    . . . . . . . ..I'll get a ""java.lang.ClassFormatError: Incompatible magic value 1008813135 in class file diagram
    " -Error what means (referenced on the articles I've read here), that the diagram.class Is not found !
    I have tried to put the class file in a JAR, in different locations... using the codebase and archive tag but NOTHING solved my problem.
    So my question:
    Why I'm able to access the JSP-File directly and seeing the applet but after forwarding to the JSP-File via the Servlet, I'm not able to see anything.
    Would appreciate your help
    Thank you and best regards
    Edit:
    1) I'm able to download the diag.jar and diagram.class file from different locations
    2)I recognized, that after using the servlet, my url is changing from
    localhost:8080/jaw
    to
    localhost:8080/jaw/controller
    I tried added the class file to the position, where the controller-class file is, but without sucess.
    3)Opening the class-file with a hex-editor shows me, that
    the first bytes are
    "CAFEBABE0000002E02B9070002010007"
    (http://forum.java.sun.com/thread.jspa?threadID=648990&messageID=3820701)
    Message was edited by:
    Khaled01

    Hello everybody,
    I finaly have found the solution (after 16 hours).
    Like I mentioned before, I recognized (maybe a little to late), that my path is changing when I'm using the servlet :
    localhost:8080/jaw
    to
    localhost:8080/jaw/controller
    (made by url-pattern in my web.xml).
    So when my JSP tries to acces the class file, It's looking at:
    localhost:8080/jaw/controller/applet/diagram.class
    but the file is in:
    localhost:8080/jaw/applet/diagram.class
    So the solution is, to but a codebase-tag in my applet-declaration with following delcaration "basedir="../applet"
    I hope I'll help somebody with the same problems. It took me a day to find out, that the solution was two points and a slash..... lol
    Regards to everybody

  • IE6 openModalDialog problems with applet events

    Hi
    I have an applet within an htm document whichich is opened from another web page using the openModalDialog method (or openModelessDialog).
    The applet itself works fine, giving the desired result when I do an updateGrid(true).  However, IE just hangs if I try to add an UPDATED event to the applet.
    Any ideas?
    Nick

    Nick,
    While Glenn's solution may seem to work it is not recommended to lock your application to a particular version of the Sun JRE client, especially one that is quite old and pre-dates the corrections to the changes in Daylight Savings Time. 
    The method you are trying to use must cause an issue where the combination of Internet Explorer and the Sun Plug-in don't play well together.  I would imagine that some targeted Google searches should yield other discussions with people experiencing similar problems.  Some of the version 12.0 menu pages with popups emulate a modal effect while using a more traditional window.open method, and this should work fine with IE/Sun, irregardless of version.  If I recall correctly it uses a div that covers the area behind the popup window that stops you from clicking 'off' the popup.  A Google search might also help you find some good samples of making a traditional window.open act as a modal too.
    Regards,
    Jeremy

  • How to create a navigation bar entry with onclick event

    I have requirement of creating navigation bar entry with a an "on click" event. When a user clicking time a location list should open. I didn't understand how to do it on NAVIGATIONBAR_ENTRY.
    Also Navigation Bar Entry IMage is not displaying.
    Regards
    Edited by: satheeshkumars on Oct 25, 2010 7:52 PM

    Do you specifically need to use the onclick event, or do you jts want to run Javascript from the navbar entry? If the latter then you can use the URL method and set the URL to:
    javascript:myfunction()
    If it must be an onclick event then I think you would need to attach it dynamically in Javascript (using jQuery if available) to locate the link somehow (it's not easy to give it a unique ID unfortunately).
    Edited by: Tony Andrews on Oct 26, 2010 10:35 AM

  • Invoking Component With OnClick Event

    I need help! I am trying to invoke a component asychronously
    with an onclick event of my form. Unfortunately, I have not been
    able to get it to work. I am currently using a framework by JSMX,
    but it is not functioning properly for me.
    I know that my cfc is okay, for when I manually invoke it
    through the URL, it behaves as expected. Can anyone familiar with
    JSMX help me out? Thanks!
    My code is as follows:

    Why don't you do it the easy way and submit the form to a cf
    template that calls the method? If necessary, put that template
    into an iframe so it is not visible to the user.
    Take into account that once you get your code to actually do
    something, you have to contend with users clicking the button
    repeatedly wondering why nothing appears to be happening.

  • How to deploy a JSP with jsp:plugin with applet type?

    Hi,
    I am a new comer for JSP and when to try to a simple JSP with plugin for applet. Following is part of my JSP script:
    <jsp:plugin type="applet" code="DigitalClock" align="center" height="25" width="300"
    >
         <jsp:params>
              <jsp:param name="language" value="<%=request.getLocale().getLanguage()%>" />
              <jsp:param name="country" value="<%=request.getLocale().getCountry()%>" />
              <jsp:param name="bgcolor" value="FFFFFF" />
              <jsp:param name="fgcolor" value="CC0066" />
         </jsp:params>
              <jsp:fallback>
              <p>Unable to start plugin.</p>
         </jsp:fallback>
    </jsp:plugin>
    ===========
    And Java plugin tell me that can't find DigitalClock class. I want to ask how to deply this JSP using deploytool.
    Thanks,
    Wise

    Hi
    It should be in such a way,
    The Jsp:param is similar to PARAM used in Applet.
    <jsp:plugin type="applet"
    code="MyApplet.class"
    width="475" height="350"
    <jsp:params>
    <jsp:param name = "PARAM1" value="VALUE1" />
    </jsp:params>
    </jsp:plugin>
    jsp:fallback Element
    It provides alternate text to browsers that do not Support OBJECT or EMBED. You can use this element in the same way as you provide alternate text in your applet.
    <jsp:fallback>
    <b> Error: This example requires java </b>
    </jsp:fallback>
    </jsp:plugin>
    I hope this will help you.
    Thanks
    Bakrudeen
    Technical Support Engineer
    Sun MicroSystems Inc, India

  • Jsp expression inside a onclick event

    onClick = "send(<%=layerColl.GetItem(i).GetObjectId()%>)" .... where is expression'll return a alphanumeric id... i want to receive it as a string in a JSP function public send(String a ){}

    on my understanding you are calling a javascript function onclick event. eventually you pass the variable as number or object on the function.
    like:
    <%
    String sample = "1";
    %>
    onClick = "send(<%=sample%>)"the value of the sample string is 1 so the function will be
    onClick = "send(1)"and you got error on the javascript in IE like Object Expected
    so you need to put the expression inside single quotes like
    onClick = "send('<%=sample%>')" correct me if i'm wrong. that is my understanding

  • How to invoke a Servlet on onClick event of CheckBox ?

    Hi,
    Can anybody provide me with the code - how to invoke a Servlet & then pass all form variables to the Servlet on onClick Event of CheckBox in a JSP Page.
    I guess it is possible with Javascript but i need the code...
    Pls Help !
    Thanx.

    <html>
    <head>
    <script language="JavaScript">
    <!--
    function submitMyForm(){      
    document.myform.submit();
    //-->
    </script>
    </head>
    <body>
    <form name="myform" method="POST" action="http://mywebserver/servlet/myServlet" target=_top>
    <input type="checkbox" name="mycheckbox" OnClick = "javascript:submitMyForm()">
    </form>
    </body>
    </html>
    Hope this helps...

  • Calling jsp with parameter - problem

    Hi,
    i am calling another jsp in onclick event. But the parameter does seems to be passed.
    when i write like below seperately,
    <script type="text/javascript">
                   window.location.href='emp2.jsp?empcode=<%=request.getParameter("empcode")%>&descr=<%=request.getParameter("empname")%>'
    </script>
    I can see emp2.jsp with correct parameters.
    But when i use the above logic in onclick event, the empcode is missing.
    See the onclick event.
    <INPUT TYPE="submit" value="Modify" ONCLICK="window.location.href='emp2.jsp?empcode=<%=request.getParameter("empcode")%>&descr=<%=request.getParameter("empname")%>'">
    Pls help where am i doing wrong.

    Looks like it should work, provided empcode and empname are both in the request parameters when you load this page.
    If you enter in the empcode and empname on the same screen as the submit button, this won't work.
    I would suggest you just use the default action of a submit button, and submit a form.
    This should be exactly equivalent to what you have written in your onclick event.
    <form action="emp2.jsp>
    <input type="hidden" name="empcode value="<%= request.getParameter("empcode") %>"
    <input type="hidden" name="descr value="<%= request.getParameter("empname") %>"
    <input type="submit" value="Modify">
    </form>

  • Javascript Submit button onclick event handler

    Hi,
    I am having trouble getting the onclick event handler of a form to execute when the button is pressed. I am trying to open a page in a new window depending on if the user selects that option in a checkbox.
    There is one form(id='graphform') and 2 submit buttons, each with a checkbox before it. I want the new window to open only iuf the right checkbox and matching submit button has been checked.
    One of the checkbox/button pair: The onclick="checkWindow('w1','graphform');" is never getting called.
    <input type="checkbox" id="w1" name="win1" style="margin-right: 10px" value="window"  onclick="javascript:document.gform.win1[0].checked = true;"><a style="margin-right: 10px">Graph in new window</a>
    <input type="submit" value="Create graph" onmouseover="this.form.cumulat.value='0';this.form.graphGroup.value='Consumption'; document.getElementById('hintSubmitStop').value='1';" onclick="checkWindow('w1','graphform');" onmouseout="document.getElementById('hintSubmitStop').value='0';" /></td></tr>Javascript window opener:
    function checkWindow(win1, str){
              var formObj = document.getElementById(str);
         var checkBoxObj = document.getElementById(win1);
         if(checkBoxObj1.checked == true){
                   formObj.target = "_blank";     
                   formObj.action = "graphDisplayFrame.jsp";     
         else if(checkBoxObj1.checked == false){
                   formObj.target = "_self";
                   formObj.action = "graphDisplay.jsp";
    }Any suggestions?
    J

    You're storing the value in "checkBoxObj" and in the next line you use different variable name as "checkBoxObj1".
         var checkBoxObj = document.getElementById(win1);
         if(checkBoxObj1.checked == true){
    instead of "true', try      if(checkBoxObj.checked == 1){

  • Using javascript to detect the onclick event over a datatable row

    Hi all,
    I'm working with JSF 1.2 R.I. and I would like to add some javascript to my datatable to be able to control the onclick event on a row.
    At the moment I have just added a checkbox to be able to know which row the user wants to select but I'm not satisfied with this solution.
    <h:dataTable
    value="#{person_iupopulations_Observation.customer}" var="customer"
    rowClasses="evenRow,oddRow"
    cellspacing="0">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Select" />
    </f:facet>
    <h:selectBooleanCheckbox value="" onclick="getRow(this)">
    </h:selectBooleanCheckbox>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name" />
    </f:facet>
    <h:outputText value="#{customer.Name}"></h:outputText>
    </h:column>
    </h:dataTable>
    What I would like to achieve is:
    When the user clicks the row (wherever, not only the checkbox) the checkbox changes to the new value depending, off course, on the user's selection.
    For this purpose I would need to add the onclick event to every row and associate it to a javascript function to update the checkbox.
    Can anybody help me please.
    I appreciate any suggestion.
    Thanks in advance!

    I am looking for answers on how to use javascript to detect the onclick event over a datatable row . I have a selectBooleanCheckBox in one of the columns in the every row in the table. On click of the checkbox in any row of the table, I want to get some values from the selected row and also verify that the rest of the checkboxes in all the other columns are unchecked. I want to do this using javascript. If any of you have answers, please repsond. Thanks.

Maybe you are looking for

  • Help with openning pdf's

    Even though items are labeled as pdf's, they have a different icon and when I try to open them, I get an error message saying that they are "not a supported file type" or they have been damaged via email.  These are files that have never been emailed

  • Public / Sharing of Interactive Reports

    The new Interactive Reports are a great feature that will be extremely helpful for both our development team and our users. However, currently when a user saves an interactive report, there's no way to share it with other users or to make it a public

  • CRM Business Pkgs

    Hi Gurus, I am facing some problem with CRM business Packages. I am using Customer role “com.sap.pct.crm.customer”, and for this system definition (SAP_CRM) is defined correctly. Whenever user login to portal, he see an error message “Your session is

  • Am I able to do this?

    I have had an iPod touch for about two years and I recently got an iPhone 5. I currently have all my music on my iPod touch where I have over 5gb and while I want to put some music on my phone, I do not wish to have a total of 5gb. As of right now bo

  • IPhoto file locations??? Actual file or just a "shortcut" ??? PLEASE HELP

    I don't know why but this confuses me, I recently realized I can use iPhoto just as i use iView Media as an organized photo album. Currently I have all my pictures stored on my HD in multiple folders (by year, topic, event, etc.) Thru iView Media I c