Aj Manch

Ranch Hand
+ Follow
since May 07, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Aj Manch

Could you give me an example or point to some reference re the option that you have mentioned?
Thanks!
Hi all,
I have X number of fields on a form. Out of these 3 are the key fields. When the user changes the focus from one of the key fields to a non-key field (the other X-3 fields), I need to invoke a JavaScript method. If the user changes focus from one key-field to another key-field then the method doesn't need to be invoked.
To do this, I can check to see what the current and previous elements with the focus are and determine if I need to invoke the method. But this would mean that all the X fields on the form need to have an onfocus method to store the current and previous elements with focus.
Is there an easier way of doing this?
Thanks in advance!
These options actually represent column names and the results of a certain operation have to be displayed to the user in that particular order. The user could dynamically add more fields or remove the existing fields or change the order of the fields (using a up/down button) in that select box.
I know that if you have the fields with same names (for example, two text boxes with the same name), we cannot predict the order in which the fields finally make it to the web server.
However, in this case it seems reasonable (to me atleast that the order be preserved. I can use JavaScript to order the fields and send it to the server but I am looking for what the spec has to say in this respect.
Any ideas?
Hi all,
I was wondering if the order of selected options in an html multiple select control is preserved. For example, let us say I have the following options in a multiple select box:

option1
option2
option3
option4
option5
and the user selects option1 and option3. What is the order I should expect it on the web server? Will it always be option1 followed by option3?
Could you also please point me to any authentic documentation on this.
Thanks in advance!!
Did you try:
Process batch = run.exec("cmd posloader.exe FXOpt c:\\all_test.pos /C");
Basically, invokes the command prompt and executes your exe from there.
22 years ago
Could you post the relevant code where you are getting this error?
22 years ago
From the javadoc:
"The XMLEncoder class is a complementary alternative to the ObjectOutputStream and can used to generate a textual representation of a JavaBean in the same way that the ObjectOutputStream can be used to create binary representation of Serializable objects. "
Try changing your class to confirm to the JavaBean specification:
1. Provide a default constructor.
2. Provide public "getStudname" and getRollno" methods.
22 years ago
Did you see if the XML is infact written to Test.xml?
22 years ago
The answer lies within your subject - Polymorphic behaviour.
For example, when you are expecting a base object from a module, what you might finally end up getting could be an object of instance base, sub or any of the base's derived classes. Since we are assuming that we are dealing with the base class object we can only handle the exceptions based on the desired method's signature in the base class. That is the reason why sub classes cannot throw more exceptions or exceptions that are not derived from the ones that are mentioned in the parent's method signature.
But if you are directly dealing with the sub class, you don't have to worry about the same method in the super class because an object of the sub class would always use it's own method instead of the base class one.
HTH
22 years ago
I am not sure what the solution is. But, in this case, putting the jar file in the Classpath isn't one either. The jars in the extensions directory don't have to specified in the classpath. The JVM extensions classloader looks for them automatically.
[ June 04, 2002: Message edited by: Aj Manch ]
22 years ago

Originally posted by Paul Keohan:
Trying to phrase this correctly!!!
Is it considered poor coding to call two methods of the same static class within one call.
For example.

Could there be a conflict in the way getNum() returns a value to be used by calc()?

Thanks!
Paul



You mean static methods of a class, right?
Only inner classes can be static.
22 years ago
Hi all,
I am using WebLogic 5.1.
The BEA help documents mention that by default the session times out if there is no activity for an hour. And that we can change it by setting the following property in the weblogic.properties file.
weblogic.httpd.session.timeoutSecs=7200
I have changed it to 7200 secs (or 2 hours) as above but the session still times out after 1 hour. Is there anything else that I should take care of. Or is it being over-written some where else.
Any insights/help will be appreciated.
Thanks,
Aj
23 years ago
Linda,
I am not sure why this is not working for you. I tried the following program and it works fine for me.

I am using jdk 1.3.
-AJ
23 years ago
Still how did they come up with 392 bytes as the minimum?
23 years ago
Manish your technique is exactly what I was looking for. I also tried making the Submit button a "Button" instead of "Submit" and then call the submit method from inside the Javascript if validations looked ok. The problem with this approach is that the name,value parameter pair of the button that is clicked is missing in the request object.
Thanks all for all your help!!
-Aj