This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What does request mean in this statment getDataSource(request);

 
howard franklin
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question about the Following code.

I understand that this is use to get the connection from Struts DataSource:

dataSource = getDataSource(request);
myConnection = dataSource.getConnection();

My confusion is what does request stand for.
 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The HttpServletRequest instance passed into the action execute method.

By the way, this functionality was removed from Struts after version 1.2.7 (at least 7 years ago!). I recommend you upgrade your Struts version, if possible to Struts 2.
 
howard franklin
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic