![]() |
| ||
| mysql+jsp hai i am nireekshan i am using mySql database in this i am create employe table Now i am davalep One .HTML Page in this i am write the employe table fieldes-----------And write Jsp page inThis i write MYSQL CONNection code And Insert Prapared Staments Now i am run TOMCat 5.0 Server,open .HTML page INSERT EMploye Fied Values Submet ok next Work is Down NOT store data in database plse see my program tell me any ERROR plse ............... HTML..............>jsp.................; <%@ page import="javax.servlet.*" %> |
| ||
| Re: mysql+jsp Don't write database connectivity code in a JSP; that's not what JSP's were meant for. Push all that database logic inside a servlet. Use JSP only as a presentation technology. And BTW, have you hosted your files on the Tomcat server? What is the URL you are using to access your HTML? What kind of error do you get? Aren't the error logs useful? |
| ||
| Re: mysql+jsp :S and, this line is missing pst.executeUpdate();right ppl? *hides* |
| ||
| Re: mysql+jsp I wouldn't know. As soon as I see a tag starting a scriptlet I quit reading and give the canned answer to not use Java code in JSP. |
| ||
| Re: mysql+jsp # String userName = "roor"; # String password = "root"; i think you should take care of Name check it plase it should be ROOT not ROOR |
| All times are GMT -4. The time now is 3:59 pm. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC