Hi, I'm new to struts.
I just don't know how to use Datasource in JSP.
In Actions, I can have datasource by using GetDatasource(...) method.
However, if I use traditional method: create InitialContext, the look up by naming service, I could not obtain the datasource object.
So there is the problem, the GetDatasource(...) method looks like from the Action class, how can I use it in JSP ?
Besides, for the MVC, if JSP is the view, is it OK to read data from the database by using a bean(the Model), or should I pass all requests to database to a Controller?
Thanks very much !!!