Lala Viswanath

Greenhorn
+ Follow
since Dec 29, 2000
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 Lala Viswanath

Hi shilpa,
This is a simple case of late-binding.Here you are overriding
the method in the base class.This means there should be already
a method in the base class which you are going to modify (or)
overridde.So during compile time checking is done whether there
is same method definition in the base class.Since it is not there in your program it shows compile time error.
Here is an example for your understanding
#########################################
class supercl{
void meth()
{
System.out.println();
}
}
class subcl extends supercl{
void meth()
{
System.out.println("Hello Javaranch");
}
}
public class exoverride{
public static void main( String argv[] ){
supercl s=new subcl();
s.meth();
}
}
Hope this helps
Cheers
Lala
Hi Val
you said "Interfaces can be private in nested contents."
Can you please explain it with example.I was in the assumption
interface will always be public.
Thanks in advance.
Cheers
Lala

Originally posted by Sean Casey:
There is a compiler error because you have a static method accessing a non static variable:
public static void amethod(){
System.out.println(i);}
variable i is not static.



Hai Sridevi,

It's a great score.Congrats.
Can u please tell me what is Applied Reasoning.
Thanks & Have a fine day.
Lala
23 years ago
Naveen,
can u please forward to lala_vis@yahoo.com
Thanx in advance
Lala
Hi Friends,
My EJBS(both Session & Entity beans) work perfectly fine
in Weblogic 4.5.1 but when I migrate to Weblogic 5.0 iam facing
problems .especially finder methods in entity bean.It is throwing a null pointer exception by RMI Server.
Have anyone face any problem & solved it.Is there any
steps requires for migration from Weblogic 4.5.1 to Weblogic 5.0.
please let me know.

Thanks in advance
Lala
23 years ago
Hi Jay,
The answer is e only because if you want to make the textfield
empty you specify in the constructor as new TextField("",30)
This is the right way to make empty.

Regards
Lala
23 years ago
Hi Angela,
1)You use setText() & getText() functions of textbox component to
pass the text & display text respectively.You have used only t1
& t2 for it.That may be the problem.
2)Moreover you haven't given your server program.
Try the first one out.I think this will solve your purpose.
Regards
Lala
23 years ago
Hi Milind,
Go to www.oreilly.com.Search for ServletProgramming by Jason Hunter.Download the package com.oreilly.servlet. On that package
there is a class called MultiPartRequest by which you can upload
any file to the server.
The image file will be uploaded just by calling the constructor.

There are two overloaded constructors
1)MultipartRequest(ServletRequest request,
String saveDirectory,
int maxPostSize)
a)maxPostSize--- refers to file size(In your case it's image size)
b)save directory -- refers to directory shared in the server to which you want to upload
2)MultipartRequest(ServletRequest request,
String saveDirectory)
If you use the second constructor you can upload only to 1MB.
But if you use the first one You can upload upto 1GB by specifying image size in bytes.
Note:
specify in the form tag parameter as
enctype="multipart/form-data" .So that it handles MultiPart Request
Regards
Lala
------------------
Lala
23 years ago