Kishan Kumar

Ranch Hand
+ Follow
since Sep 26, 2000
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Kishan Kumar

Hi,

Im a 10+ years experience in Java/J2EE Technology, I wish to do SCEA, but the mandatory training makes me to skip the plan.

Im looking across TOGAF, but looks like it doesn't come under Java's arena

Please suggest/share on your experience for Certification for a J2EE based expert ?

Thanks
Hi All,
I am dispalying a Map(java HashMap) of information in HTML. The displaying part is ofcourse easy with JSP looping. The requirement is one of the displayed fields is editiable ,and when user edits, the same should go to server for persistance. The display is like this

CustomerGroup1
AcctNum Name Age Email(editable)
AcctNum Name Age Email(editable)
CustomerGroup2
AcctNum Name Age Email(editable)
AcctNum Name Age Email(editable)
.....
The users can edit the email field for all the individual Accounts and when submitted the same must be persisited. What is the best way to format the Form element to take this information back.

Regards,
Kishan
Hi,
The scenario is like this..

I have quote and company profile as two HTML tabs
In the left frame say iam entering quote symbol in the textbox.
If I am in quote tab and hit enter the right frame opens with the quote.
I also use symbolbox.select() to have the box highlighted, so that user can type quote without using mouse and tab. This works fine since the focus and highlight remains in the symbol box.
The problem is with company profile tab, when I enter a symbol and enter, the right side frame opens with a company profile. But in this page, there is a onload which will focus to the first hyperlink in the loaded page.

So the focus is shifted from symbol box to hyperlink. But due to IE constraint the symbol is still highlighted even though focus is on hyperlink.

If the right side page opens with a onLoad to shift the focus to a hyperlink, the expectation is that the hihglight should get removed automatically, but this does not happen.

I do not know beforehand whether the right side page which loads will have a onload function or not. so when the focus is not shifting the user should have the benefit of typing symbols without mouse or tab. If the focus shifts the highlight should go off and user to has to click on the textbox to bring back the focus.
Hi,
The issue is not about the focus here. Its about the highlight. when we issue textboxname.select() it highlights the field. If the focus is on a button, the textbox is still highlighted and if we type in characters the textbox gets updated (but onchange etc is not being fired). So onBlur of the textbox I want to programtically remove the highlight(select). As i said even if we remove the focus the highlight is still there. The highlight gets removed only if the focus shifts another textbox. If the focus shifts to a button or hyperlink, the highlight remains. So I would need a way to programatically remove the highlight.

Thanks for your help.
Hi Friends,
Hope i can get help for a small request.

document.formname.textboxname.select()
will highlight the text in the textbox.

How to remove the highlight programatically ??.

something like document.formname.textboxname.deselect() :-)

Is there anyway to do it ?
Hi folks,
Having a problem with Frames.

I am having two frames say Frame1 and Frame2.
In Frame1 there is a textbox inside a SubmitForm.
When we hit enter after entering something in the textbox the Frame2 gets populated with a content.

The problem is that..
When we hit enter after entering text in Frame1, we do a
textbox.focus()
textbox.select()
and then submit the form and tell return false too to not shift the focus.

When Frame2 gets populated there is a onLoad which sets focus to a button in Frame2.(I cant change this since the content is third party)

Now there is a highlight on textbox on Frame1 and focus is on a button in Frame2. At this time when I type in some characters the highlighted text field value(in Frame1) is getting changed. But when I hit enter, the button on Frame2 is submitting.

The expectation is that the form on Frame1 should submit. How to do this?. When highlighted field is getting changed how to bring the focus to it. As of now I do not have onchange event as Iam not validating the field.

Thanks for your time.

Regards, Kishan
Thank you Ernst. Actually I had that as initially public and later changed it to private. Problems with copy paste :-)
As you mentioned, with the -verify option it does give a error as expected. Thanks again.

Regards,
Kishan
16 years ago
Hi,
Synchronisation makes sense only when two or more threads are acting on the same instance. When a new object is always getting created for each request then definetely there is no need to synchronise as different threads act of different instances. However you should be very sure that the instance created is always new and not taken from a pool of instances.

Hope this helps.
Hi ,

Please take a look at the following two files
Check1.java Check2.java

package cert;

public class Check1
{
private void method1()
{
System.out.println("Hello World !");
}
}

-----------------
package pack;

import cert.*;

class Check2
{
public static void main(String[] args)
{
new Check1().method1();
}
}

-------------------

When I run Check2 after compiling both Check1 and Check2 it returns Hello World !.
So far so good.

When I change Check1.java , change System.out.println to
System.out.println("Hello World and Hello Kishan!");

and compile Check1.java alone and run Check2 it outputs "Hello World and Hello Kishan!"
So far so good.

But when I change the access specifier of method1 in Check1.java from public to private and compile Check1.java it compiles fine.
So far so good.

Now without compiling Check2.java ,If i run Check2 it returns "Hello World and Hello Kishan" while I expected a error of some sort.

Can anyone pls explain why does this happen. If I change S.O.P its giving the changed one, But I induce an error why its still holding the previous code in the memory and giving its output.

Does anything in classloader responsible for this ??
16 years ago
Hi,
I'm aware of SCJP and other Sun Certifications.
Having worked a lot of web security, LDAP , EJB SEcurity, i love to know if there is J2EE Certification that covers SEcurity aspects alone?



Regards,
Kishan
Hi all,

when i try starting WebLogic using my unix shell script,

i get the following error.
The WebLogic Server did not start up properly.
java.lang.NoSuchFieldError: loaders
at com.sun.management.jmx.DefaultLoaderRepository.addClassLoader(DefaultLoaderRepository.java:38)
at com.sun.management.jmx.MBeanServerImpl.initialize(MBeanServerImpl.java:2441)
at com.sun.management.jmx.MBeanServerImpl.<init>(MBeanServerImpl.java:113)
at weblogic.management.internal.RemoteMBeanServerImpl.<init>(RemoteMBeanServerImpl.java:103)
at weblogic.management.AdminServerAdmin.initialize(AdminServerAdmin.java:242)
at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:753)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:664)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:342)
at weblogic.Server.main(Server.java:32)
Reason: loaders

Any help will be appreciatable.


Thanks & Regards,
Kishan
17 years ago
Hi,

Can anyone let me know if Ant has any tools to talk with All Fusion harvest(Configuration Management Tool).

Any suggestion is appreciable !!

Regards,
Kishan
17 years ago
Hi,
Thanks for the explanation. Is "classes" directory not in tomcat's classpath ??. Unpackaged java classes are anyway expected to be directly under the directory mentioned in the classpath. Even if we say
packagename.classname, classloader can recognize only if kept under a directory mentioned in the classpath rt ??. If "classes" directory is not in the classpath how can JSP recognize the package under the classes directly.
This is ofcourse how we understand while we learn JDK. Does this change in a J2EE Environment. Can you direct me to articles which talks about say How J2EE recognizes classes ??. Iam using Tomacat 4.1.24
17 years ago
JSP
Hi All,
I would like to know the reason why a JSP cannot access a java class residing the classes directory under WEB-INF. Iam using Tomcat server
and when I write a bean without any package and place it in classes directory, the JSP is not able to resolve the reference. When I add a package and put my java class in it, the JSP all of a sudden recognizes it.. Why is creation of a package forced for JSP to recognize ??. Any classloader feature that could give an explanation for this ??.
17 years ago
JSP
Hi,
We were having a website developed using PL/SQL web toolkit and now we wish to convert the presentation logic to JSP and let the business reside in
the database layer. PLSQL packages are already there existing which gives the data in the form of PL/SQL tables. The presentation logic earlier(PL/SQL web tool kit) displayed data directly from PL/SQL tables.
We now want to make as minimal changes to the existing business logic. But facing the problem of how to read the values of PL/SQL tables through JDBC.
Its clear that JDBC does not support PL/SQL tables directly. But I would like to know what is the most efficient way(in terms of minimum change and without inducing a performance overhead) of transforming this PL/SQL table data to a structure thats retrievable through JDBC.
one way suggested is to create rectab object type in database for each PL/SQL table we are using and read the values through oracle.sql.struct.
Yet this involves creation of new database objects which we do not want to do...Is there any other way. ?
Thanks for your time