Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

why we use request?  RSS feed

 
renu sogi
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone.
theirs a question in my mind about servlet. when we take a parameters from the jsp page for example String a = request.getParameter("name"); i was wondering why we use "request" here why not any other word but request?
Can anyone please explain it in detail?

thanks in advance!
sam
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66187
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because it's representing a request as defined by HTTP. What else would you call it? Why do we call a banana a banana?
 
renu sogi
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah ! now I get it!
thanks Mr. Bear..
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!