This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills: The software developer's life manual and have John Sonmez on-line!
See this thread for details.
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlets and Jsp problem

 
padmshree Patil
Ranch Hand
Posts: 54
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 75
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic