aspose file tools*
The moose likes Servlets and the fly likes Please Explain the below statement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
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: 14
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

Joined: Jan 10, 2002
Posts: 61648
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Welcome to JavaRanch Goutam reddy
Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1056

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 ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61648
    
  67

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.
 
wood burning stoves
 
subject: Please Explain the below statement