Thread: DataSource
View Single Post
  #2 (permalink)  
Old June 19th, 2007, 09:46 PM
sunilcs sunilcs is offline
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