File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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: 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 ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60056
    
  65

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: 1050

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: 60056
    
  65

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