wood burning stoves 2.0*
The moose likes Servlets and the fly likes servlets and Jsp problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlets and Jsp problem" Watch "servlets and Jsp problem" New topic
Author

servlets and Jsp problem

padmshree Patil
Ranch Hand

Joined: Dec 18, 2000
Posts: 54
Hi ,
Yes I tried.
out.println(request.getParameter("action"))
prints :Back
out.println("Back".equals(request.getParameter("action")));
it prints :false
so it's not entering if statement.
if ("Back".equals(request.getParameter("action")))
{
out.println("you have clicked Back button");
}

where I am wroung?
thanks
padmashree
prakash muthu
Ranch Hand

Joined: Sep 06, 2000
Posts: 75
Hi,
Its working fine. I didn't get any error like what you got. Still if you are getting the same, you can use trim function.
let me know if you need more details.
-Prakash

Prakash.M<BR>Bangalore- India<BR>(prakashem@rediffmail.com)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: servlets and Jsp problem
 
Similar Threads
JSP with multipart form
Eclipse won't show the errors...
servlets and Jsp's
Jsp---blank fields
Retrieving data from Oracle database?