No. what i am asking is this:
Suppose the input from the html form is the word: java.
String str=request.getParameter("input");
out.println(str);// it works. output=java
if(str=="java"){// the problem is here. The control cannot pass
do stuff;// inside the block, as if the str=="java" is false
}
any suggestions?
1) Pick a more appropriate forum
2) == isn't what you want here
3) If you can't figure out why, think about the context of the question - is this really anything to do with "Generics" (the forum you've chose) or "request.getParameter()" (your thread subject), or is it more to do with comparing two Strings? Once you've figured that out...
4) Pick a more appropriate forum to ask follow-up questions in
:-)