• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
howard franklin
Greenhorn
Posts: 20
  • 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: 9312
10
Linux Mac OS X Windows
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic