IntelliJ Java IDE
The moose likes Servlets and the fly likes Please Explain the below statement Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Please Explain the below statement" Watch "Please Explain the below statement" New topic
Author

Please Explain the below statement

Goutam reddy
Greenhorn

Joined: Jan 22, 2012
Posts: 6
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 opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50693

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Seetharaman Venkatasamy
Bartender

Joined: Jan 28, 2008
Posts: 4503

Welcome to JavaRanch Goutam reddy


Not everything that counts can be counted, and not everything that can be counted counts-Albert Einstein
Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 811

getParameter("some string value") method is used to get some string value from a text box, label option button etc...



http://www.lifesbizzare.blogspot.com || OCJP:81%
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50693

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.
 
 
subject: Please Explain the below statement
 
Threads others viewed
You can never cast objects of sibling classes (sharing the same parent).
Mock question about assert..
Enhance for loop and collection API
BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
difference between out.write(....) and out.print(...) statements
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture