This should be very straightforward but it's got me stumped!
Lets say i have a page: mysite.com/mypage.jsp
When it gets submitted to itself the url is: mysite.com/mypage.jsp?myvalue=blah
I've got the following code which never equates to true, what am i doing wrong?
String myvalue = request.getParameter("myvalue");
if ( myvalue == "blah" ) {
out.print("<h3>You submitted the page, my value = " + myvalue + "</h3>" );
} else {
out.print("<h3>Page not submitted yet, my value = " + myvalue + "</h3>" );
}