Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 24th, 2007, 02:55 AM
Registered User
 
Join Date: May 2007
Location: , , .
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

suhas



Reply With Quote
  #2 (permalink)  
Old June 19th, 2007, 09:46 PM
Registered User
 
Join Date: Jun 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
   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.

************************************************** **************************
CODE
************************************************** **************************
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") );


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

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 09:54 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.