Problem calling applet method using IE
I've searched through the forum and can't seem to find anything that can help me fix this. I'm trying to call an applet's method using Javascript. This is working fine under Netscape, but not IE. Everything I've read seems to indicate that I'm doing this right, but I'm getting "Object doesn't support this property or method" when I try to call the applet method from IE.
In this example method, I'm trying to call the applet's countChars method, which should return the length of the string you pass into it. Works under Netscape 6.2, but not IE 6.0
Here's my applet code:
import java.lang.String;
public class test extends java.applet.Applet {
public static int countChars(String s) {
return s.length();
And my HTML
<HTML>
<HEAD>
<script language="Javascript">
function refreshApplet()
/* i = document.forms.myForm.TestApplet.countChars();
document.forms.myForm.output.value=i; */
document.forms.myForm.output.value=document.applets["TestApplet"].countChars(document.forms.myForm.input.value);
</script>
</HEAD>
<BODY>
<APPLET CODE = "test.class" WIDTH = 400 HEIGHT = 400 ALIGN = middle NAME = "TestApplet" scriptable="true">
</APPLET>
<br>
<form name="myForm">
<input type="text" name="input">
<input type="button" value="click me" onClick="refreshApplet();">
<hr>
<input type="text" name="output">
</form>
</BODY>
</HTML>
Thanks in advance!
Craig Drabik
Sr. Programmer/Analyst
University at Buffalo
I have very similar problem, my applet works OK using Netscape (6.2 and 7.0), but with IE 6.0 It only works with windows XP;
The reported error is "Object doesn't support this property or method"
Can someone please help me to solve this problem.
Cheers
Horus
This is my code:
- I call the applet using javaScript and input the method setData with two strings.
function graphic()
var dataZenith;
var dataManual;
initVariables();
dataZenith = graphicZENith(); //Call other Javascript functions
dataManual = graphicManual(); //Call other Javascript functions
document.AppletOne.setData(dataZenith,dataManual);
I run the applet with this HTML code:
<applet NAME="AppletOne" code="Appl.class" width="450" height="450"
MAYSCRIPT></applet>
//Applet code/////////////
import java.awt.*;
import java.awt.geom.*;
import java.applet.*;
import java.util.*;
public class Appl extends Applet {
private int [] myArray1 = new int [156];
private int [] myArray2 = new int [156];
private boolean flag = false;
// maxDataYAxesNumber es usado para dividir el eje de las Y
public void init()
setFont(new Font("SansSerif", Font.BOLD, 12));
setBackground (Color.white);
setSize(getSize());
// Get data and put in an array
public void setData(String data1, String data2)
final String DELIMITER = ",";
final StringTokenizer theTokens1 =
new StringTokenizer(data1, DELIMITER);
final StringTokenizer theTokens2 =
new StringTokenizer(data2, DELIMITER);
try
String dataX = data1;
for (int i = 0; i < 156; i++)
myArray1[i] = Integer.parseInt(theTokens1.nextToken().trim());
myArray2[i] = Integer.parseInt(theTokens2.nextToken().trim());
catch (NumberFormatException e) {};
flag = true; //I get the data OK
repaint();
public void paint (Graphics g){
Graphics2D g2d = (Graphics2D)g;
setData(data1, data2) ;
if (flag == true)
//Call other functions to process the graphic
else g2d.drawString(" Sorry I can get Data", 100,80);
Similar Messages
-
Call applet methods from Javascript
Hello,
If I call applet method like :
function callbackFunc(){
var pp = appletID.getData();
alert(pp);
It works only if applet is deployed with <APPLET> tag or with javascript.
If applet is deployed using <Object> and <embed> tags, in browser console the error is :
TypeError: appletID.getData is not a function
I couldn't find why is that behaviour. What do I do wrong?
ThanksHi Paul,
(1)Seems to be your Java Runtime Environment path is still setted for JRE 1.3.0_01 and not for 1.3.1. So pelase go to the
Control Panel-->java plugin 1.3.1-->Advanced. Here you set the Java Runtime Environment to the JRE 1.3.1 version. Its better to remove the older version before installing the new version on JRE.
(2)<OBJECT> tag won't work for Netscape. You can only use <APPLET> or <EMBED> tag for Netscape.
Hope this will help you.
Anil
Developer Technical Support
Sun Microsystems
http://www.sun.com/developers/support -
How to call java method using jsp
how to call java method using jsp.....
anyone can help me.....i having problem here...coz i very new in java and jsp.....
thanks.....keep an eye on this person's thread...they have code there and everything.
http://forum.java.sun.com/thread.jspa?threadID=777263&tstart=0 -
Call trasaction method using o3uici_ppd
hi all,
i want to write a call transaction method using o3uici_ppd but the data must split into two copys . can you tell me how to do.
please explain with example or coding.LOOP AT IT INTO WA.
REFRESH BDCDATA_IT.
CLEAR BDCDATA_WA. "<===============
bdcdata_wa-program = 'SAPMF02D'.
bdcdata_wa-dynpro = '0100'.
bdcdata_wa-dynbegin = 'X'.
APPEND BDCDATA_WA TO BDCDATA_IT.
CLEAR BDCDATA_WA. "<===============
bdcdata_wa-FNAM = 'BDC_CURSOR'.
bdcdata_wa-FVAL = 'RF02D-KTOKD'.
APPEND BDCDATA_WA TO BDCDATA_IT.
CLEAR BDCDATA_WA. "<===============
bdcdata_wa-FNAM = 'BDC_OKCODE'.
bdcdata_wa-FVAL = '/00'.
APPEND BDCDATA_WA TO BDCDATA_IT.
CLEAR BDCDATA_WA. "<===============
bdcdata_wa-FNAM = 'RF02D-KUNNR'.
bdcdata_wa-FVAL = WA-KUNNR.
APPEND BDCDATA_WA TO BDCDATA_IT.
CLEAR BDCDATA_WA. "<===============
bdcdata_wa-FNAM = 'RF02D-KTOKD'.
bdcdata_wa-FVAL = WA-KTOKD.
APPEND BDCDATA_WA TO BDCDATA_IT.
CLEAR BDCDATA_WA. "<===============
bdcdata_wa-program = 'SAPMF02D'.
bdcdata_wa-dynpro = '0110'.
bdcdata_wa-dynbegin = 'X'.
APPEND BDCDATA_WA TO BDCDATA_IT.
CLEAR BDCDATA_WA. "<===============
bdcdata_wa-FNAM = 'BDC_CURSOR'.
bdcdata_wa-FVAL = 'KNA1-SPRAS'.
APPEND BDCDATA_WA TO BDCDATA_IT.
CALL TRANSACTION _____________________.
ENDLOOP. -
Calling applet methods in forms - Problem
I have an applet method wich creates a modal dialogue to retrieve user pin. This method is called from a form button. When the user is finished entering PIN, and the dialogue is supposed to close, it hangs. When using a button in an applet frame, this works fine, but apparently it doesent when I use my form button. Anybody have a workaround or solution to my problem?
i guess the problem is that you can't do anything in the applet outside the dialog if it is modal and visible.
Propably you should not make your dialog modal and just let it set a boolean variable when it is finished and keep the rest of the applet waiting for an answer with domething like:
while(dialogstillopen)
boolean dummy=false; -
Problem calling a method in a servlet witch returns remote ejb
Hi, I have a problem combining servlets ands ejbs, I expose my problem :
What I have :
1 . I have a User table into a SGBD with two attributes login and pass.
2 . I have a UserBean linked to User table with a remote interface
3 . I have a stateless UserSessionBean with a remote interface
4 . I have a UserServlet linked to a jsp page which allows me to add users
5 . I use Jboss
What is working ?
1 - I have a method newUser implemented in my UserSessionBean :
public class UserSessionBean implements SessionBean {
private SessionContext sessionContext;
private UserRemoteHome userRemoteHome;
public void ejbCreate() throws CreateException {
// Initialize UserRemoteHome
// Method to add a new user
public UserRemote newUser(String login, String password) {
UserRemote newUser = null;
try {
newUser = userRemoteHome.create(login, password);
} catch (RemoteException ex) {
System.err.println("Error: " + ex);
} catch (CreateException ex) {
System.err.println("Error: " + ex);
return newUser;
}2 - When I test this method with a simple client it works perfectly :
public class TestEJB {
public static void main(String[] args) {
Context initialCtx;
try {
// Create JNDI context
// Context initialization
// Narrow UserSessionHome
// Create UserSession
UserSession session = sessionHome.create();
// Test create
UserRemote newUser = session.newUser("pierre", "hemici");
if (newUser != null) {
System.out.println(newUser.printMe());
} catch (Exception e) {
System.err.println("Error: " + e);
e.printStackTrace();
Result : I got the newUser printed on STDOUT and I check in the User table (in the SGBD) if the new user has been created.
What I want ?
I want to call the newUser method from the UserServlet and use the RemoteUser returned by the method.
What I do ?
The jsp :
1 - I have a jsp page where a get information about the new user to create
2 - I put the login parameter and the password parameter into the request
3 - I call the UserServlet when the button "add" is pressed on the jsp page.
The Servlet :
1 - I have a method doInsert which call the newUser method :
public class UserServlet extends HttpServlet {
private static final String CONTENT_TYPE = "text/html";
// EJB Context
InitialContext ejbCtx;
// Session bean
UserSession userSession;
public void init() throws ServletException {
try {
// Open JNDI context (the same as TestClient context)
// Get UserSession Home
// Create UserSession
userSession = userSessionHome.create();
} catch (NamingException ex) {
System.out.println("Error: " + ex);
} catch (RemoteException ex) {
System.out.println("Error: " + ex);
} catch (CreateException ex) {
System.out.println("Error: " + ex);
protected void service(HttpServletRequest req, HttpServletResponse resp) throws
ServletException, IOException {
* Does insertion of the new user in the database.
public void doInsert(HttpServletRequest req, HttpServletResponse resp) throws
ServletException, IOException {
try {
// Get parameters to create the newUser
String login = req.getParameter("login");
String password = req.getParameter("password");
// Create the newUser
System.out.println("Calling newUser before");
UserRemote user = userSession.newUser(login, password);
System.out.println("Calling newUser after");
} catch (Exception e) {
// Clean up resources
public void destroy() {
Result :
When I run my jsp page and click on the "add" button, I got the message "Calling newUser before" printed in STDOUT and the error message :
ERROR [[userservlet]] Servlet.service() for servlet userservlet threw exception
javax.servlet.ServletException: loader constraints violated when linking javax/ejb/Handle class
at noumea.user.UserServlet.service(UserServlet.java:112)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:534)
Constat :
I checked into my SGBD and the new user has been created.
The error appears only when the method return Remote ejbs, if I return simples objects (Strings, int..) it works.
What can I do to resolve this problem ?
Thank you."Why do you want to servlet to gain access to another EJB through the stateless session bean. Why cant the servlet call it directly ?"
Because I want to access to the informations included in the entity bean UserBean (which is remote).
You said that it is a bad design, but how can I access to my UserBean ejbs from the session bean if I don't do that ?
For example I want a List of all users to be seen in a jsp page :
1 - I call the method getUserList which returnsan ArrayList of UserRemote.
2 - I iterate over the ArrayList to get the users parameters to be seen.
As the other example (newUser), when I do
ArrayList users = (ArrayList) userSession.getUserList(); with the simple client it works, but in the servlet I got the same error.
But, if I call directly the findAll method (as you'are saying) in the servlet
ArrayList users = (ArrayList) userRemoteHome.findAll(); it works...
I think that if my servlet calls directly entity ejbs, I don't need UserSession bean anymore. Is that right ?
I precise that my design is this :
jsp -> servlet -> session bean -> entity bean -> sgbd
Is that a bad design ? Do I need the session bean anymore ?
Thank you. -
I have an embedded Applet in a web page, and I am trying to directly call a method in that Applet from the same page, using JavaScript.
Here is the complete Applet:
import java.applet.Applet;
public class Test extends Applet {
public String test() {
return "test() method return value";
}Here is the complete web page:
<HTML>
<HEAD><TITLE>Applet Invocation test</TITLE></HEAD>
<BODY>
<APPLET CODE="Test" WIDTH=10 HEIGHT=10 NAME="test"></APPLET>
<HR>
<SCRIPT>
document.write( "JavaScript is working<br>" );
document.write( document.test.test() );
</SCRIPT>
</BODY>
</HTML>Is there anything wrong with this? Because it works about 15% of the time, displaying an <HR>, "JavaScript is working", and then "test() method return value" on the next line.
The other 85% of the time, it just gets to "JavaScript is working", then I get a JavaScript error "Object does not support this property or method" for the line: document.write( document.test.test() );
Now here's another weird quirk... I can get it to work ALL the time, if I delay the execution of the Applet method. For example, if the first line after <SCRIPT> is alert( "alert" ); then the user gets a little dialog box with "alert" message in it, and when they hit OK execution continues, and the applet method call ALWAYS works. (On a side note, if I make the Applet test() method static, it NEVER works. Why is this?)
So it seems to me, that when it is failing, it is because the Applet is not completely loaded into the browser yet. My question is, how can I get around this?? Is there a way to instruct JavaScript to wait until the Applet is finished loading before attempting to call any methods on it?
PS I am using Windows ME and IE 6Thanks for the reply, I appreciate it. I have another question, if you don't mind... here is what my new test web page looks like:
<HTML>
<HEAD>
<TITLE>Applet Invocation test</TITLE>
<SCRIPT>
function testFunc()
document.write( document.test.test() );
</SCRIPT>
</HEAD>
<BODY onLoad="testFunc()">
<APPLET CODE="Test" WIDTH=10 HEIGHT=10 NAME="test">
</APPLET>
<HR>
</BODY>
</HTML>What happens is: the page loads, I see a 10x10 grey applet box, and a <HR>... then a split second later, onLoad is fired, and everything on the page so far is REPLACED with the output of testFunc(), so the ONLY thing on the page after this all completes is "test() method return value"
Why is a single document.write() statement CLEARING the page before outputting? I don't understand. If calling a document.write() from an onLoad event wipes out everything on the page, this is not extremely helpful solution. -
Problem calling a method which takes a parameter from a table
Hi guys,
I'm very new to jsf and hope you can help me out.
On my page i'm generating a list, which is working fine. now i want to add some commandLinks to the list entries. on click, i want to execute a bean method, which takes a parameter from the list, generates a picture and displays it on my page.
here's a piece of code thats already working:
<rich:dataTable var="data" value="#{pathwayBean.orgList}">
<rich:columnGroup>
<rich:column>
<h:outputText value="#{data.name}" />
</rich:column>
</rich:columnGroup>
</rich:dataTable>now, i want to replace the outputText with a commandLink, and execute a method with {data.id} as parameter. Unfortunately, the commandLink property "action" can only call bean methods with no parameter, or is that wrong?
Thanks in advance,
Alexuse actionlistener.
here a typical code that works fine for me:
(JSF 1.2)
//Java
private Integer selectedItemId=null;
public void selectItem(ActionEvent event) {
// Find the UIParameter component by expression
UIParameter component = (UIParameter) event.getComponent().findComponent("itemId");
// parse the value of the UIParameter component
try {
selectedItemId = Integer.parseInt(component.getValue().toString());
// find itemBean here using selectedItemId
} catch (Exception e) {
logger.error(e, e);
logger.info(" +++ selectedItemId =" + selectedItemId);
public String viewItem() {
//create view beans here
return "itemView";//return appropriate view.
//JSF
<h:column>
<h:commandLink id="View"
action="#{itemListBean.viewItem}"
actionListener="#{itemListBean.selectItem}">
<h:outputText value="select"/>
<f:param id="itemId" name="itemId" value="#{itemBean.id}"/>
</h:commandLink>
</h:column> -
Problem calling Java method from JavaScript in JSP / ADF
Hi all,
In my JavaScript onMouseUp() function, I need to call a method on my Java backing bean. How is this done? Info on the web indicates a static Java method can be called by simply "package.class.staticMethod(...)". but when I put the statement
"jsf.backing.GlobalRetriever.createBasemap(affectedLayer);"
I get an error message "jsf is undefined".
The functionality I'm trying to get is: I have a custom slider control and based on its value, I want to call oracle map viewer specifying a map extent of the (current extent / slider value) to do a zoom in/out. In addition, the slider uses a onMouseMove() function to change the size of the image display so it looks like a dynamic zoom in/out.
Please assist or let me know if I can provide some additional information. Thanks in advance.
Jim GreethamNo. The Java and Javascript in a Faces application are really working in two different universes.
Java is running on the server. It generates HTML (and sometimes even Javascript) and sends that to the client machine. That's where all your backing beans are.
Javascript runs directly in the browser. There's no way anything on the server can have access to anything you define in Javascript, unless you explicitly send that information back to the server, either via standard form submission (which only works when someone presses a "Submit" button) or via an Ajax-type call. So otherwise, nothing you define in Javascript will ever be available to a backing bean. -
Weird Problem calling Stored Procedure using JDBC
Scenario is..
I have J2EE application and calling stored procedure using JDBC.
My application connects to instance "A" of testDB.
Schema "A" does NOT own any packages/procedure but granted execute on oracle packages/procedures that reside in schema "B" of testDB.
In java code I call procedure(proc1) in package(pac1) which internally calls procedure(proc2) in package(pac2).
The problem occurs when procedure pac2.proc2 is modified. After the modification, my java code fails and throws an exception "User-Defined Exception" and I am also getting "ORA-06508: PL/SQL: could not find program unit being called". This clears up only if I bounce the web container. (This doesn't happen if I modify pac1.proc1 and run my application)
Has any one faced this problem? Please suggest if any thing can be changed in jdbc code to fix this problem.
ThanksHi,
I assume these are PL/SQL packages and that the changes are made at the package specification level?
If so, it looks like you are hitting the PL/SQL dependencies rules. In other words, if the spec of proc2 is changed, then proc1 is invalidated, since proc1 still depends on the old version of proc2's spec. As a result, if you try to run proc1, its spec must either be explicitly rewritten before it could run again or implicitly recompiled first, if the (implicit) recompilation fails, it won’t run.
Kuassi http://db360.blogspot.com -
Problem accessing applet methods since 1.4.2_06
Hello,
I'm working with ie 6.0
I'm accessing applet methods from javascript
My applets were working fine until I installed the JRE 1.4.2_06 (I tested them with JRE 1.4.2_05 and it worked)
Now, when I call an applet method from javascript, I have a javascript exception, as if the applet is not loaded, but I think it is : I can see it in the traces in the java console !
I didn't modify the code, just the JRE.
It doesn't work with jre 1.5 too
Here a simple sample code that doesn't work with JRE 1.4.2_06 :
APPLET :
import java.applet.Applet;
public class Test extends Applet
public void test() {
System.err.println("test");
HTML :
<html>
<body>
<script language="JavaScript">
function myTest() {
document.myform.test.test();
</script>
<form name="myform">
<OBJECT NAME="test" WIDTH=500 HEIGHT=120 CLASSID="CLSID:8AD9C840-044E-11d1-B3E9-00805F499D93">
<PARAM NAME="code" value="Test.class">
<PARAM NAME="scripting" value="true">
</OBJECT>
<input type="button" value="test !!" onclick="myTest()">
</form>
</body>
</html>
If you have any suggestion ...
ThanksIt should work, what if you try the following:
html file:
<html>
<body>
<script language="JavaScript">
function myTest() {
try{
document.myform.test.test();
}catch(e){
alert(e.description);
function myTest1() {
try{
document.getElementById("test").test();
}catch(e){
alert(e.description);
</script>
<form name="myform">
<OBJECT NAME="test" id="test" WIDTH=500 HEIGHT=120 CLASSID="CLSID:8AD9C840-044E-11d1-B3E9-00805F499D93">
<PARAM NAME="code" value="Test.class">
<PARAM NAME="scripting" value="true">
</OBJECT>
<input type="button" value="test !!" onclick="myTest()"><br>
<input type="button" value="test with getelementbyID!!" onclick="myTest1()"><br>
</form>
</body>
</html>
applet:
import java.applet.Applet;
public class Test extends Applet{
public void test() {
System.err.println("test");
public void init(){
System.out.println("this is init");
When you open the page it should say "this is init" in the java console
if the test button doesn't work try the getElementById way. -
Problems calling a method from a different class
Like many programmers, I'm having a go at making my own chat room. All has been going well so far, however I am having trouble calling the method which connects the client to the server, from the method which actually starts the server.
The method for starting the server:
public static void serverStart () throws IOException {
new Thread () {
public void run() {
try {
ServerSocket serverSock = new ServerSocket (client.serverPort);
while (true) {
Socket serverClient = serverSock.accept ();
ChatHandler handler = new ChatHandler(serverClient);
handler.start ();
} catch (IOException ex) {
connectTo.handleIOException(ex);
}.start();
try {
connectTo.start();
} catch (IOException ex) {
connectTo.handleIOException(ex);
}The part of interest is the "connectTo.start()" line, as this is the one which calls a method in the class connectToMethod which tells the client to connect to this newly started server. Now for the client connection code:
public synchronized void start () throws IOException {
if (listener == null) {
Socket socket = new Socket (client.serverAddr, client.serverPort);
try {
dataIn = new DataInputStream
(new BufferedInputStream (socket.getInputStream ()));
dataOut = new DataOutputStream
(new BufferedOutputStream (socket.getOutputStream ()));
} catch (IOException ex) {
socket.close ();
throw ex;
listener = new Thread (this);
listener.start ();
}Now when the server starts, it should automatically start the connection method "start()" and connect to itself. However I am getting a NullPointerException error at the line "connectTo.start();" from the server code. The server and connection client actually work separately, just not when I try to connect from the server itself. I have tried a few ways of getting around this problem, all without success. If anyone could give some input on what might be wrong, or a possible way to fix it, I'd be very grateful.Sorry, connectTo comes from:
connectToMethod connectTo = new
connectToMethod();
That doesn't necessarily mean this variable reference is the same one as in the code where the NullPointerException was thrown though.
Or the exception was thrown inside the start() method. The runtime isn't lying to you. You have a null reference (pointer) where it says you do. -
Call applet method with arguments from JavaScript
I have an applet with a method doSomething(int a, String b, double c), I want get a,b,c from threee text fields put into an HTML page, and pass them to the applet method. I've a very poor knowledge in JavaScript, how can I pass correctly the arguments without raise a CastException? It seems to me that JavaScript doesn't have int, String, double.....
Hi!
You can verify before you send the parameters to the applet
Something like that:
var result = parseInt (a);
if (result =NaN)
alert("Sorry not Int");
return false;
and after that you can send the parammeters to the applet that way:
document.yourApplet.Your_function_from_applet(result,..)
hope this help!
adina -
How to call other method using struts
Hi,
in my TestAction.java,
i have 2 method, one is execute(...) and another is changeABC(...)
in jsp,
when i onchange, i call a javascript
function onSwitch()
document.forms[0].action.value = "changeABC";
document.forms[0].submit();
<html:form action="/test.do">
</html:form>
test.do will call TestAction.java and TestActionForm.java.
y when i submit, it keep calling the execute method??
How i suppose to do to enable it call changeABC method??
pls advice.. thankshi
i am sending u one plz reply as soon as possible -
Can javascript call applet methods in explorer??
Is it possible to call the start() and stop() methods of an applet in explorer 5? I know how to do it using netscape, document.appletname.start(); and that works, but I just get errors in explorer. Any suggestions?
The code I used was:
document.appletname.stop(); or
document.applets["appletname"].stop();
Neither worked, I just got this error:
"Object doesn't support this property or method"
but I know the applet has a stop() method because I wrote it!
Maybe you are looking for
-
Error while deleting data from a write optimized DSO using a Process Chain?
Dear Bwers, I am facing a strange error while using process chains to delete data from data target which is a write optimized DSO. The process shows as failed but the data gets deleted in the DSO. The error message is as below. Did anybody have a sim
-
I sync my address book with both my . me account and via itunes with my iphone, also it appears in my bento and my bento on my iphone. all worked well till bento 3 (not sure this caused it, but timing is same as problem) now it does not sync anymore
-
5.0.1 update... any noticeable differences?
Has anyone noticed any obvious fixes or performance changes after the recent 5.0.1 Keynote update? Just wondering...
-
Where is iWeb in Mac Os Lion?
Do you know how can I install iWeb in Mac Os Lion 10.7.3? I have iLife'11 but it doen't come with iWeb? Thank you
-
Hi Gurus, I need to use VPRS as a pricing elment from which pricing will be calculated instead of PR00 for one pricing procedure, please tell me how to do that?