roja potti

Greenhorn
+ Follow
since Mar 30, 2004
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 roja potti

Thankyou so much for the replies. I don't want to use applets since it is a thick client and has security issues like signing it.

Inoroder to stream as a zip file to the browser do you have any code template. Please send it.

Thanks,
Roja.Potti
Hey,

I have an ftp web site which contains a folder consisting of sub folders and few files. I need to download this to the client local machine.I am using ftp clent to do this.

I wrote some code which opens a file dialog box and asks where to download the files.It works too.

Now my real problem came up.

All this code I deployed into a http web server. I created a jsp page which has a hyperlink. When I click the hyperlink a servlet is invoked which contains all my code. The dialog box opens up on the server but not on the client side.

how can I make this feasible.

Please help me.
hello!!!
do I need to have any prior knowledge of jsps ans servlets before reading HF Servlets and jsps.I am totally new and have no knowledge of those things.I recently completed SCJP1.4.
Thanks.
roja.
THANKX !!!
i WILL GET THOSE BOOKS.
17 years ago
JSP
hello!!!
I recently cleared SCJP1.4 certification.Now I wish to learn JSP.I am totally new and can anyone suggest me how to start... where should I get the best resources of jsp..over the net.. books...as well as free jsp tutorials...
Please help me.
thank you
roja
17 years ago
JSP
hi...Jay & Anand!
Thanks for your greetings.
17 years ago
hello !!!
I passed SCJP1.4 Certification on October 29th... with 85%.Expected a little bit more but I had no time to check the marked questions.Only 2 mins left at the end.But I am happy.The exam is an excellent means of judging knowledge in java fundamentals.
I sincerely want to thank Danisholm because it is at his site where I learned a lot.In his site I went through each and every topic and wrote exams in single topic..study guide.. and compehensive.It really helped a lot.
I took many exams over the net.Previously I have no hands on experience in java.I am a house-wife and I learned java myself with the help of the book Java Complete Reference.
Once I decided to take java certification exam I referred the book of Kathy Sierra and Bert Bates.Is was very good. Every time I get a doubt I used to check in javaranch web site where I 100% get the answer.I need not wait untill I post it and get the answer.I just used to search in the SCJP forum and I used to get the answer.
My husband has also cleared java certification SCJP 1.2 long before and he also helped me to clear my doubts.
Finally the big day came and I passed with 85%.I am thankful to everybody who helped me.
BYe !!!
Roja.
17 years ago
hai Sudarshan....
I went through your program.Acoording to my acessment you have to still get through the topic of Inheritance.
I will give you the explanation for Professor Khalid's program.
You have 2 classes. 1.)Light 2.)TubeLight
TubeLight class extends class Light.Since the variable billType is declared protected it is inherited by the class TubeLight.But the point to be noticed here is in class TubeLight variable billType is redeclared and given the value "Large bill".Therefore the inherited billType variable still exists but is shadowed. Hope you are understanding what I am telling.
Ok.... now the method printBillType() ==> It is also inherited by class TubeLight.
Now coming to the class Client.
In this class an instance of the class TubeLight is created.
A reference variable of type Light (here light1) is declared and to this variable the reference variable tubeLight is assigned. What this means is that light1 now points to the instance of TubeLight. Thought it points to the subclass instance the type of the reference variable is parent type. The parent Reference variable will have no knowledge of what a subclass adds to it.
So when you call the method using the light1 reference though it refers to the subclass TubeLight it still prints the value of the variable it is aware of.(So the value "small Bill" is printed instead of "Large Bill".
Remember If a refernce to a sublass object is assigned to a super class reference variable you will have access only to those parts of the object defined by the superclass.It is the type of the reference variable but not the type of the object that it refers to that determines what members can be accessed.
But when method overriding is present the situation changes.It is the type of the object being referred to by the reference variable not the type of the reference variable that determines which version of the overriden method will be executed.
Hope you understood........
If anyone finds my explanation wrong please excuse me and let me know.
Bye Bye
Roja.Potti.
hi!!!
In the following question a for loop is in a do loop.The right answer is 121212.
I was not able to work it out. My answer is 11.
According to my interpretation the initial value 0 of i is incremented to 1 during the condition check, and the value is printed since it is less than 2.It goes back into the loop and this time the value of i becomes 2.Since
(2<2) is false the condition fails ans thus comes out of the loop.Similarly I worked out with j too.
Please tell me where did I go wrong.
class Test5 {
public static void main (String[] args) {
int j = 0;
do for (int i = 0; i++ < 2
System.out.print(i);
while (j++ < 2);
}}
hi all!!!
Presently I was working through some questions on assertions.I came across the words class invariant and internal invariant.What does they mean???
please give me the answer.

this is a question regarding the assertions.Given below are the answers.I was pretty sure that the answers a & b are right.I did not understand answers c and d.Please explain.
a.)With assertions enabled it prints an error message.
b.)With assertions disabled it prints: true,true,false
c.)The combination of the if/else statements and the assert statement indicate that the programmer expects no more than one boolean, b1, b2 or b3, to be true.
d.)The assert statement is being used to check an internal invariant
(code tags added - Barry)
[ May 05, 2004: Message edited by: Barry Gaunt ]
hi!
I am so glad to have a copy of your notes.Please mail me at roja_basu2001@yahoo.com
1111 1111 1111 1111 1111 1111 1111 1010
how is this bit pattern interpreted as -6
this is my code
class chrI
{
public static void main(String[] args)
{
String a="\u000a"; //here
String b="\u000d"; //here
System.out.println("a= " +a);
System.out.println("b= " +b);
}
}
When I compile this code I am getting an error saying unclosed string literal( where I mentioned as here).
When I try the same code with "\u000b","\u000c","\u000e","\u000f" I am getting no error.
I am not understanding why???
Could you help me???
hi!
I recently started preparing for SCJP 1.4.I have completed studying all the exam topics except java.util in Java Complete Refernce by Patrick Naughton & Herbert Schlidt.Now I started jamie jaworski book.Almost completed but stopped at java.lang and java.util packages.It gives everything covered in SCJP 1.2.I was really scared that should I remember all the API.There are several topics other than mentioned in exam objectives.Should I read that too.I was really feeling bored to read this two topics.How can I read just that is enough and required for exam and skip all the remaining stuff.Please guide me.I have been taking mock exams also and doing good....getting 70%.Please suggest me what to do with the topics java.lang and java.util.
Thankyou
roja.
:roll: