Hi,
Could you say me how to connect the mysql database from a
struts application through jndi process.
I have used these steps..
in my action class i have used
after deploying this i got this error
javax.servlet.ServletException: javax.naming.NameNotFoundException: mydatabase not found
SO i have checked with driver file,context.xml file.
I saw this from
http://wiki.metawerx.net/wiki/JNDIDBCPExampleForMySQL5.x
If you get a javax.naming.NameNotFoundException error, you have either not installed the context.xml file correctly, or have used a different name in the context.xml <Resource> element's "name" attribute to what you are using in your Context.lookup() call.
I think some more configuration is requird to use the context.xml file..
can anybody help me regarding this..
Thanks in advance..
zeet