Posted By:
sneha_rao
Posted On:
Sunday, November 12, 2006 07:24 PM
Hi i am trying to make mysql connection in struts DataSource datasource; datasource = getDataSource(request, "userDB"); if i try this line in my action class i get this exception please anyone tell me why my action dont have getDataSource method? exception javax.servlet.ServletException: Servlet execution threw an exception root cause java.lang.Error: Unresolved compilation problem: The method getDataSource(HttpServletRequest) is undefined for the
More>>
Hi
i am trying to make mysql connection in struts
DataSource datasource;
datasource = getDataSource(request, "userDB");
if i try this line in my action class i get this exception
please anyone tell me why my action dont have getDataSource
method?
exception
javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.Error: Unresolved compilation problem:
The method getDataSource(HttpServletRequest) is undefined for the type UserRegistrationAction
easy.UserRegistrationAction.execute(UserRegistrationAction.java:41)
org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:53)
org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:64)
org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:48)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:280)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:459)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
<<Less