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
|