Riya Pant

Greenhorn
+ Follow
since Feb 17, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Riya Pant

Hi,
If you are using AJAX to call your struts action, you do not need to make any special entry or result type entry in struts-config.xml.
In your struts action, you need to write the result to the response object. Ajax expects either simple String or XML as the result of the request. If your result is simple as you mentioned its "High", "Medium", "low" or "UserA", "User2",..... you can make a simple string out of this result using some delimeter and write it to HTTPServletResponse object.
Then in your AJAX callback method, you will get this String in responseText property of httpXMLRequest object.
Hope this will help.

-Thanks,
Riya
16 years ago
As all java objects inherit java.lang.Object class , all can work as the value of attribute. AS you can have an attribute named "members" having an "Arraylist of String" as its value.
Hi Friends,
I am facing a problem in my struts application. The scenario is :
There is a screen on which I have an 'Upload' button. When use clicks this 'Upload' button, a child window opens which allows user to browse for file. There is one 'Submit' button on child window which submits the form to an Action class. After performing the desired functionality in this action, I want to close that child window.
I do not know how to do this. I will be very thankful if anybody can help.

- Riya
17 years ago
Hi !!
Thanks everybody
17 years ago
Thanks everyone
For the preparation, I read KnB book and did the self test given in the book twice.Topics on exam are 100% covered in the book. Some questions were confusing. I have solved some mock questions on javabeat to revise the concepts.
Test was not very tough not very easy.There were around 8-9 questions on thread.Prepare Exception handling and method overriding properly.
Before taking the exam, i was scared of generics. But in exam, there are only 2 questions on this topic and they were simple.

While reading, make sure you keep in mind which exception will be thrown, not only some exception will be thrown. As one question was

And question was, Which exception wil be thrown.
17 years ago
Hi All,
I am happy to share that i cleared SCJP 5 exam today. I got 88%. I know its not very good score but its my first professional certification and i am glad to have it cleared.
17 years ago
Hi All,
I am happy to share that i cleared SCJP 5 exam today. I got 88%. I know its not very good score but its my first professional certification and i am glad to have it cleared.
17 years ago
Chandra. i got your point.What I understand is

We can handle unchecked exceptions also if we know that a perticular piece of code can throw that exception and we do not want to stop execution in this scenario.In this case that exception will be called as thrown progamatically?

.

But if tis is so..we can handle any exception we like..as we can write the code in try catch block where we are doing some casting and handle ClassCastException.I know this is weird but we can do this.In this case, how can we draw a line between two JVM thrown and Programatically thrown exceptions.

The reason i am enforcing on the term programaticaaly is I saw 1-2 questions in mock exams to distinguish between JVM thrown and programatically thrown exception.
khushhal .. I am sorry for spelling your name wrong ...
Hi Khshhal,
yes i understand the concept of Checked and unchecked exceptions. But can you check in chapter 5 of K&B, Page no.370,, here they have given a table of exceptions thrown by JVM or programatically.
Hi,
I am preparing for SCJP5.I have a doubt in What does it mean for an exception to be thrown by JVM or thrown progammaticaly. I thought of them as "Checked exceptions thrown progamatically and Unchecked exceptions are thrown by JVM". But in chapter 5 of K&B, Page no.370, NumberFormatException and IllegalArgumentException are shown as thrown programatically but these are Runtime Exceptions. Please clerify ..
Thanks everyone for valuable inputs
But what will be its behavior..Will it work like transient or like static variable ??
Hi,
i also want to know the answer
What I understand from Serialization in context of static and transiet is:

If a class has static variables and this class's object goes under serialization,then this static variable do not get re-initialized when deserialized. But if a variable is declared Transient, it will be re-initialized to its default value when the object is deserialized.



But in the scenario, mentioned by indika, how this variable will behave when the object will be deserialized