|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
auto send email
wher can i get jsp and serlvet code for doing auto sending of email?
|
|
#2
|
||||
|
||||
|
not sure,
but others may know colton22 |
|
#3
|
||||
|
||||
|
Quote:
This isn't a Javascript issue; this would be a Java issue. Note the difference There's a lot of examples out there, just need to Google first ![]()
__________________
Daryl's Homepage | My Blogroll | My Profile | Firefox supporter! DevArticles Forum Moderator "The net is a waste of time, and that's exactly what's right about it." -- William Gibson |
|
#4
|
|||
|
|||
|
Quote:
Try this: <html> <body> <form method=post action=dbdemo.jsp> type the selectquery here <input type=text size=60 name='text1'> <br> <input type=submit> </form> </body> </html> dbdemo.jsp <html> <body> <%@page import="java.sql.*" %> <% Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String url = "jdbc dbc:telephone"; // an access database registered in odbc Connection con = DriverManager.getConnection(url); Statement stm = con.createStatement(); // container for sql String sql = request.getParameter('text1'); // sql ResultSet rs = stm.executeQuery ( sql); while(rs.next()) { out.println(rs.getString(1)+"<br>"); // name out.println(rs.getString(2)+"<br>"); // telephone number out.println("========"); } %> </body> </html> |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > auto send email |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|