• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please Explain the below statement

 
Goutam reddy
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any one explain whats happening in the below statement.
If it needs additional info please let me know


String forwardTo = FormsContext.HTTPServletRequest().getParameter(getPpage());
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65120
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The FormsContext class is not part of servlets. It is either a class defined by your project, or by some 3rd part library that your project is using.

Without any context I can only guess that it's some weird way to obtain a reference to an instance of the request in order to obtain a parameter value.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch Goutam reddy
 
Vishal Hegde
Ranch Hand
Posts: 1077
Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
getParameter("some string value") method is used to get some string value from a text box, label option button etc...

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65120
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vishal Hegde wrote:getParameter("some string value") method is used to get some string value from a text box, label option button etc...

Only indirectly. The methods fetched request parameters which are sometimes the result of form submissions, but need not be.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic