Aman Verma

Greenhorn
+ Follow
since May 10, 2005
Merit badge: grant badges
For More
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 Aman Verma

Hi,

Would anyone please explain me how to set an image as background to JPanel?

Thanks in advance.
-Aman
18 years ago
Hi Im new to Applets.

Would anyone please tell me how to invoke servlet from a applet? I just want to execute a servlet when user will click on a button on applet.

Thanks
-Aman
18 years ago
Hi ,
Im new to applets.And this is what I have to achive....

I have to write an applet that will contain an image , This image will represent a document (Microsoft document...word,Excel ect).This image will have a button on right hand corner when we click this button that document should gety opened at the client side.

I dont know how to get a button on a image and how to open the document which is saved on server to the client machin.

Any pointers regarding this will be a great help.

Thanks in advance
-Aman
18 years ago
I am using oracle.How to create a datasource in application server.Im using Jboss

Thanks
-Aman
Hi ,

I'm new to EJB. please any one tell me how to configure a database table with an entity bean? I know how to map fields of an table with the fields to an entity bean...but i dont know how to configure the database with EJB.
any pointers regarding this will be a great help.

thanks,
-Aman
following code is compiling fine but giving runtime error as

Properties pr=new Properties();
pr.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
pr.put(Context.PROVIDER_URL,"jnp://localhost:1099");
pr.put(Context.URL_PKG_PREFIXES,"org.jboss.naming rg.jnp.interfaces");

// Enclosing the whole process in a single `try' block is not an ideal way
// to do exception handling, but I don't want to clutter the program up
// with catch blocks
try
{
// Get a naming context
InitialContext jndiContext = new InitialContext(pr); // ********************PROBLEM on this statement.....

it is giving error as,

Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/logging/Log
ger
at org.jnp.interfaces.NamingContext.<clinit>(NamingContext.java:102)
at org.jnp.interfaces.NamingContextFactory.getInitialContext(NamingConte
xtFactory.java:41)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
62)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243
)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
at InterestClient.main(InterestClient.java:42)



can any one help me out.
Hi,

I want to know the difference between

String str="abc"; &

String str=new String("abc");

I know that the statement : String str=new String("abc"); will create a new String object and store it on heap but then for the initialization String str="abc"; does java creates new object?
& how n=much objects will be created by following code,

String str="abc";
String str1="abc"
String str2="abc";
String str3=str1;
String str4=str1+str2;
String str5="abc"+str4;

Thanks
-Aman



18 years ago
Ya, T-Systems is Germany based compnay.Currently it has development center on Senapati bapat road,pune(near Persistent and BMC) I think it is temperory facility of T-Systems. It will establish its development center in ICC which is being constructed on Senapati bapat road.
And abt salary,its good ,really good.but it requires at least 3 years of experience.

Regards
-Aman
18 years ago
Hi Hrikesh,

I think We can use % to search integers from a table.
e.g on oracle 9i following queries work fine and gives expected results.

SELECT * FROM test WHERE id LIKE '3%'

SELECT * FROM test WHERE id LIKE '%3'

SELECT * FROM test WHERE id LIKE '%3%'

These queries work fine on oracle 9i but I donno abt the previous versions of oracle.

Regards,
-Rahul
18 years ago
Hi Hrikesh,

I think We can use % to search integers from a table.
e.g on oracle 9i following queries work fine and gives expected results.

SELECT * FROM test WHERE id LIKE '3%'

SELECT * FROM test WHERE id LIKE '%3'

SELECT * FROM test WHERE id LIKE '%3%'

These queries work fine on oracle 9i but I donno abt the previous versions of oracle.

Regards,
-Rahul
Class.forName() is used to load the classes in JVM dynamically. It will return the instance of that class by default.
but MyClass class = new MyClass() will create a instance of MyClass only. Before creating instance of MyClass it should be loaded into JVM using import.
good stuff related to dynamic loading of classes can be found here
dynamic class loading
18 years ago
Can any one plz explain what is shallow copy and deep copy? and how does it relate with clone() method?

Thanks in advance,
-Aman
18 years ago
Can any one plz explain what is shallow copy and deep copy? and how does it relate with clone() method?

Thanks in advance,
-Aman
I think u might be calling a java script method such as onclick of a submit button and in onclick() method u r calling submit once again.

Regards,
-Aman
18 years ago
u should write the form bean entry as,
<form-bean name="LoginBean" type="LoginForm"/> instead of
<form-bean name="LoginBean" type="/WEB-INF/classes/LoginForm"/>

Regards,
Aman
18 years ago