Wrox Programmer Forums
BOOK: Professional Jakarta Struts
This is the forum to discuss the Wrox book Professional Jakarta Struts by James Goodwill, Richard Hightower; ISBN: 9780764544378
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Jakarta Struts section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 24th, 2007, 02:55 AM
Registered User
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default DataSource

Hi i have study the Wrox sturts application book
Inside the action class when i want to get the data base resource

using the code
 DataSource ds = getDataSource(request);

It is showing that the getDataSource is not a method for the
httpServletRequest request

please help


Old June 19th, 2007, 09:46 PM
Registered User
Join Date: Jun 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

   Even I am having the same error when I try to use the getDataSource method. Any idea what is the solution for this? My code and the compile error message that I am getting is given below.

************************************************** **************************
************************************************** **************************
public ActionForward execute( ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
// create a new LoginBean with valid users in it
LoginBean lb = new LoginBean( getDataSource(request, "musiccollection") );

************************************************** **************************
************************************************** **************************
The method getDataSource(HttpServletRequest, String) is undefined for the type LoginAction Login/source/dummies/struts

Similar Threads
Thread Thread Starter Forum Replies Last Post
Object datasource VS DataSource SoftMind BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 4 July 27th, 2006 10:44 PM
Re-link to new datasource tready Excel VBA 0 November 9th, 2005 09:51 AM
No datasource property sadermine Access 2 August 11th, 2005 05:55 PM
ListBox DataSource jugomkd C# 2 October 9th, 2004 11:30 PM
DataSource keseln J2EE 1 June 8th, 2003 08:45 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.