This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 63208
    
  69

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

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: 63208
    
  69

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.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Please Explain the below statement
 
It's not a secret anymore!