• Post Reply Bookmark Topic Watch Topic
  • New Topic

request.getParameter(String s)

 
Sarah Giles
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been programming in asp,but now i am trying to learn servlets,Allthough i know some java.
My question is about getParameter() method .
null is returned if there is no such parameterin the request,but what is returned if the the parameter exists but has no value.
thks
 
Amer Khan
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An empty String is returned if the parameter exists but has no value,and yes 'null is returned if there is no such parameter in the request'.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!