Kapil Shardha

Greenhorn
+ Follow
since Jun 18, 2009
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 Kapil Shardha

Hey, I was able to display image in jsp page. Your suggestions helped me.

Thanks

Kapil
14 years ago
JSP
In HTML, the src attribute of img tag takes a path of an image residing somewhere in memory (correct me if I am wrong).
14 years ago
JSP
I understood the reason behind not using image tag in this case but I am still not able to figure out how to render this data on html/jsp page. Kindly suggest me how to solve this issue.

P.S I am saving images in database as a part of requirement of application.


Thanks


14 years ago
JSP
Hi

I am trying to display an image that is stored in database, on a JSP page. The image gets displayed on whole page but I want to display it in a small area as the JSP page has other elements too.Following is an excerpt from my JSP code, where "image" is the byte array having bytes of image extracted from database.




Kindly suggest me solution for this problem.

Thanks
14 years ago
JSP
First of all, sorry for a late reply

@Tanya Shetty: I am not sure what do you mean by Real Exam quizzes but I prepared from K&B SCJP 6 book and took its master exam and Exam lab quizzes.

@Rosalin: If you have studied the certification guide by K&B 6 thoroughly and have understood all the concepts then you are good to go. Moreover, do not forget to take as many mock exams as you can. This will help you to measure your strengths and weaknesses. In addition, this forum is a great resource for Java learners. Make sure that you make the most out of it.

-Kapil
14 years ago
I passed SCJP 6 exam today with 83%. I faced 60 questions to be answered in 180min. The passing score was 58%. I must say that Exam Lab 6 helped me a lot. Though it has more-difficult questions than what I faced in real exam, it is still RECOMMENDED to prepare yourself for real exam. I came to rectify my mistakes after practicing Real Exam quizzes( I was not able to pass even one!!!). Nonetheless, I made my day after passing SCJP. Thanks to all forum members for your wonderful tips and explanations! Looking forward to continuing this journey!!!


14 years ago
The explanation of answer to question 8 for Self Test for Chapter 7 from K&B for SCJP 6 is not clear. Here is the question:

Given a method declared as
public static <E extends Number> List<E> process(List<E> nums)
A programmer wants to use this method like this
// INSERT DECLARATIONS HERE
output = process(input);
Which pairs of declarations could be placed at // INSERT DECLARATIONS HERE to allow
the code to compile? (Choose all that apply.)

A. ArrayList<Integer> input = null;
ArrayList<Integer> output = null;

B. ArrayList<Integer> input = null;
List<Integer> output = null;

C. ArrayList<Integer> input = null;
List<Number> output = null;

D. List<Number> input = null;
ArrayList<Integer> output = null;

E. List<Number> input = null;
List<Number> output = null;

F. List<Integer> input = null;
List<Integer> output = null;

G. None of the above
Here is the question 2 from Self test of Chapter 6:


And its answer is "PCP" which is not clear.
I am not able to understand the reason behind the answer for Qs 1 in Self Test for Chapter 6 in K&B's book for SCJP 6

And the command line:
java Regex2 "\d*" ab34ef
What is the result?
A. 234
B. 334
C. 2334
D. 0123456
E. 01234456
F. 12334567
G. Compilation fails


Moreover, the answer to question 2 of same test is also not clear. Any explanation to these two questions will be of great help.