sapana jain

Ranch Hand
+ Follow
since Oct 24, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by sapana jain

To update data I have put names read-only so that user can do changes only to remaining information.but it is not working
I have created formbean,action, jsp,and with these using different struts-tlds also.......
please help.....
if required I will post my code also........
16 years ago
how to solve this problem.
org.apache.jasper.JasperException: No collection found
From last couple of days I am trying to solve this problem but not able to solve........I am using struts framework.
I think the problem is with logic:iterate tag but unable to solve it.Code is as follows..
<bean efine id="personalInfo"
name="personalinfo"
scope="request"/>

<logic:iterate id="personal"
name="personalInfo"
property="personalInfoList"
scope="request">

<tr>
<td><bean:write name="personal"
property="name"/></td>

<td><bean:write name="personal"
property="surname"/></td>

<td><bean:write name="personal"
property="phno"/></td>
</tr>
</logic:iterate>
Please help me
16 years ago
hi,
I am trying to retrive data from database using struts framework.For that I am using all the required things as FormBean,Action class but 1 exception is coming in my application which is as follows................

javax.servlet.jsp.JspException: No collection found

Please help me to solve this problem.
Thanks
16 years ago
hi,
I am trying to retrive data from database using struts framework.For that I am using all the required things as FormBean,Action class but 1 exception is coming in my application which is as follows................

javax.servlet.jsp.JspException: No collection found

Please help me to solve this problem.
Thanks
16 years ago
No that is not the case I have added the classes12.jar but thenalso its not working....
I wish to connect to oracle backend through jdbc program but i am getting following problem..........


java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

I am writting the code in netbeans 5.5 and I have followed the necessary steps to have oracle but then also i am getting the problem.......

please help
thanks to all of ranchers.Whenever i need a help you all help me.
i am also thankful to K&B for writing such a wonderful book by which i was able to clear the exam.
thanks again............
16 years ago
today i cleared SCJP 1.5 with 75%
thanks to all of you .whenever i need a help you all help me.
its a great news..


I have read K&B twice and done master exam too.Is it sufficient for passing SCJP? Now I am in a state that without reading the whole question I can answer it as I remember the answers.Does question come from this book?

Please guide me...
thanks
Does it matter that from which center we are giving the SCJP exam?
import java.util.*;

public class Group extends HashSet<Person>
{
public static void main(String arg[])
{
Q12 g = new Q12();
g.add(new Person("Hans"));
g.add(new Person("Lotte"));
g.add(new Person("Jane"));
g.add(new Person("Hans"));
g.add(new Person("Jane"));
System.out.println("Total ::"+g.size());
System.out.println("contents............"+g);
}
public boolean add(Object o)
{
System.out.println("Adding ::"+o);
return super.add(o);
}
}

class Person
{
private final String name;
public Person(String name)
{
this.name= name;
}
public String toString()
{
return name;
}

}
ANSWER
F is correct. The problem here is in Group's add() method�it should have been
add(Person), since the class extends HashSet<Person>. So this doesn't compile.
Pop Quiz: What would happen if you fixed this code, changing add(Object) to
add(Person)? Try running the code to see if the results match what you thought.

now my problem is that when I have done the appropriate changes and then run it again the Total is coming to be 5.But how is it possible as it is a set and a set not allow the duplicate entries........???

According to me the size should be 3.....
Please guide me..
public class InstanceTest
{
public static void main(String arg[])
{
String a = null;
boolean b = null instanceof String;
boolean c = a instanceof String;
System.out.println(b+" "+c);
}
}

output is coming to be false false.second instanceof test i am no0t getting.please help how it is coming to be false.
8. Given:
class Fizz
{
int x = 5;
public static void main(String[] args)
{
final Fizz f1 = new Fizz();
Fizz f2 = new Fizz();
Fizz f3 = FizzSwitch(f1,f2);
System.out.println((f1 == f3) + " " + (f1.x == f3.x));
}
static Fizz FizzSwitch(Fizz x, Fizz y)
{
final Fizz z = x;
z.x = 6;
return z;
}
}

What is the result?
A. true true
B. false true
C. true false
D. false false
E. Compilation fails.
F. An exception is thrown at runtime.

Please explain me this question .Its answer is A .I am not getting this.
thanks for helping me.Now the whole concept is clear to me.Question are really very tough.