Is it possible to have more than one servlet for a single application

Reply

Join Date: Apr 2009
Posts: 14
Reputation: RaniThomas is an unknown quantity at this point 
Solved Threads: 0
RaniThomas RaniThomas is offline Offline
Newbie Poster

Is it possible to have more than one servlet for a single application

 
0
  #1
Apr 18th, 2009
Hi all,

I need a help from u... Please help me...
Is it possible to have more than 1 servlet for an J2EE application...
I have
2 JSP's (index & display page)
1 Servlet (myServlet) - Db Connectivity(insertion & selection)

In index.jsp,
i have 2 fields and a button, while pressing the button,
(1) the values of the fields have to store in the table called "user_details"
(2) And have to display into display.jsp

In display.jsp,
I have to display the user details from the user_details table and im having the profile registration fields and submit button....

(Upto this my application is working very fine)

The next step i need to do is...

While clicking the submit button in display.jsp,
(1) The profile data have to store in the another table called "register"

Now my doubt starts,

Whether we need to perform this process in separate servlet....
Can we have two servlets in one single project... Is it possible...?
whether it is needed to have a bean class for each input jsp file... Is it mandatory....?
whether i need to write my DB Connectivity in separate java class and have to import it to every java servlets...?
How can i proceed now..?
Please help me....
Cheers,
RaniThomas.
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,628
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 468
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: Is it possible to have more than one servlet for a single application

 
0
  #2
Apr 18th, 2009
> Can we have two servlets in one single project... Is it possible...?

Yes.

> Is it mandatory....?

No.

Normally, a single servlet is good enough to act as a controller for your entire application. Read the JEE 5 tutorial along with this thread on the google group.

Any reason you are not using one of the many frameworks out there to ease your task? Is this college assignment / homework / practice? If not, then your really should.
I don't accept change; I don't deserve to live.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 14
Reputation: RaniThomas is an unknown quantity at this point 
Solved Threads: 0
RaniThomas RaniThomas is offline Offline
Newbie Poster

Re: Is it possible to have more than one servlet for a single application

 
0
  #3
Apr 19th, 2009
Thanks for your precious reply...!

No actually i have got selected for a IT Company.... There i have to join by August 2009, so within that period i have to make up my mind and learn lot of things by practical, before entering the company....
So as per your advice, i have to use framework right...?
What are all the frameworks available....
Is Struts OK...?
Cheers,
RaniThomas.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 1,175
Reputation: stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light 
Solved Threads: 125
Featured Poster
stephen84s's Avatar
stephen84s stephen84s is offline Offline
Veteran Poster

Re: Is it possible to have more than one servlet for a single application

 
0
  #4
Apr 21st, 2009
For the major ones there are Struts, JSF, Spring and then you can check quite a few here.
Last edited by stephen84s; Apr 21st, 2009 at 9:51 am.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."

"How to ask questions the smart way ?"
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,628
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 468
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: Is it possible to have more than one servlet for a single application

 
0
  #5
Apr 23rd, 2009
Originally Posted by RaniThomas View Post
Thanks for your precious reply...!

No actually i have got selected for a IT Company.... There i have to join by August 2009, so within that period i have to make up my mind and learn lot of things by practical, before entering the company....
So as per your advice, i have to use framework right...?
What are all the frameworks available....
Is Struts OK...?
If you have just joined, it would be better to dabble and understand plain JEE stuff; they anyways won't be expecting any framework expertise from you. Reading the entire JEE 5 tutorial and if possible Core JEE design patterns would be more than enough. Practice is the key here; make sure you don't end up reading things without knowing how they work.

> For the major ones there are Struts, JSF, Spring

I would rather not recommend JSF; I personally find it to be an abomination from hell. Struts2 is out BTW, so if you are picking Struts, you might as well go for Struts2. Tapestry and Wicket seem promising.
I don't accept change; I don't deserve to live.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 14
Reputation: RaniThomas is an unknown quantity at this point 
Solved Threads: 0
RaniThomas RaniThomas is offline Offline
Newbie Poster

Re: Is it possible to have more than one servlet for a single application

 
0
  #6
Apr 23rd, 2009
Hi all,

I started learning struts... But still i didnt worked out.
First of all, i want to know something deeply about servlets..
Its really very interesting...
But i got strucked at one thing....

Please clarify me, Hope u can...
(1) i have 2 fields(name & city) - it should be inserted to the table and have to display the table in the display.jsp- Its Working Fine. (i have used servlet, there i hv coded the DB connection & prepared statements.... in doPost method)

(2) Then i have one link "click here to register" in display.jsp - Some fields are there - that have to validate using beans, and if there are any errors, it just forward to retry.jsp with the appropriate errors msgs, or else it should be forwarded to success.jsp with the confirmation button. - Its working very fine...

(3) While click the confim button in success.jsp, that have to insert the fields into the DB....

Here i strucked... i dont know how to do....
whether i have to write code in another servlet... or in the same servlet...

If so, where i should write the code the confirm button..
In my servlet, already one doPost method is there for login button know, So what should i write....

Please anyone help me in this regard...
please solve my problem... I have struggling with that...

The codings are below...

index.jsp

  1. <%@page contentType="text/html"%>
  2. <%@page pageEncoding="UTF-8"%>
  3.  
  4. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  5. "http://www.w3.org/TR/html4/loose.dtd">
  6. <html>
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  9. <title>Login Page</title>
  10. <link rel="stylesheet" type="text/css" href="css/style1.css" />
  11. </head>
  12.  
  13. <body bgcolor="#CCCCCC">
  14. <div style="background: black ">
  15. <h1 align="center"><font color="#FFFFFF">Welcome to Thomas Learning Center, Singapore</font></h1>
  16. </div>
  17.  
  18. <FORM action="http://localhost:8084/test/myServlet" method="POST">
  19.  
  20. UserName<INPUT TYPE=TEXT NAME="name"><P>
  21. Country<INPUT TYPE=TEXT NAME="country"><P>
  22.  
  23. <INPUT TYPE=SUBMIT>
  24. </FORM>
  25.  
  26. </body>
  27. </html>

web.xml

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
  3.  
  4. <servlet>
  5. <servlet-name>myServlet</servlet-name>
  6. <servlet-class>classes.servlet.myServlet</servlet-class>
  7. </servlet>
  8.  
  9. <servlet-mapping>
  10. <servlet-name>myServlet</servlet-name>
  11. <url-pattern>/myServlet</url-pattern>
  12. </servlet-mapping>
  13.  
  14. <session-config>
  15. <session-timeout>
  16. 30
  17. </session-timeout>
  18. </session-config>
  19.  
  20. <welcome-file-list>
  21. <welcome-file>
  22. index.jsp
  23. </welcome-file>
  24. </welcome-file-list>
  25. </web-app>

myServlet.java
  1. package classes.servlet;
  2.  
  3. import java.io.*;
  4. import java.net.*;
  5. import java.util.*;
  6. import java.sql.*;
  7. import javax.servlet.*;
  8. import javax.servlet.http.*;
  9. import javax.servlet.RequestDispatcher;
  10. import javax.servlet.ServletConfig;
  11. import javax.servlet.ServletException;
  12. import javax.servlet.http.HttpServletRequest;
  13. import javax.servlet.http.HttpServletResponse;
  14. import javax.servlet.http.HttpSession;
  15. import javax.servlet.http.HttpServlet;
  16.  
  17.  
  18. public class myServlet extends HttpServlet {
  19.  
  20. private ServletConfig config;
  21. //Setting JSP page
  22. String dispage="display.jsp";
  23.  
  24. public void init(ServletConfig config)
  25. throws ServletException{
  26. this.config=config;
  27. }
  28. public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{
  29. res.setContentType("text/html");
  30. PrintWriter out = res.getWriter();
  31.  
  32. String name = req.getParameter("name"); //getting values from jsp to servlet
  33. String country = req.getParameter("country");
  34.  
  35. String connectionURL = "jdbc:mysql://localhost/thomas_school";
  36.  
  37. Connection connection = null;
  38. PreparedStatement ps = null;
  39.  
  40. ResultSet rs;
  41. int update = 0;
  42. List dataList = new ArrayList();
  43. try {
  44. // Load the database driver
  45. Class.forName("com.mysql.jdbc.Driver");
  46. // Get a Connection to the database
  47. connection = DriverManager.getConnection(connectionURL, "root", "mysql");
  48. //Select the data from the database
  49. String insert_query = "INSERT INTO details VALUES(?,?)";
  50. ps = connection.prepareStatement(insert_query);
  51. ps.setString(1,name);
  52. ps.setString(2,country);
  53. update= ps.executeUpdate();
  54.  
  55.  
  56. String list_query = "select * from details";
  57. Statement s = connection.createStatement();
  58. s.executeQuery(list_query);
  59. rs = s.getResultSet();
  60.  
  61. while (rs.next()){
  62. //Add records into data list
  63. dataList.add(rs.getString("username"));
  64. dataList.add(rs.getString("Country"));
  65. }
  66. rs.close();
  67. s.close();
  68. }catch(Exception e){
  69. System.out.println("Exception is ;"+e);
  70. }
  71.  
  72. req.setAttribute("data",dataList);
  73. //Disptching request
  74. RequestDispatcher dispatcher = req.getRequestDispatcher(dispage);
  75. if (dispatcher != null){
  76. dispatcher.forward(req, res);
  77. }
  78. }
  79. }

display.jsp

  1. <%@page contentType="text/html"%>
  2. <%@page pageEncoding="UTF-8"%>
  3. <%@page language="java" import="java.util.*" %>
  4.  
  5. <html>
  6. <head>
  7. <title>Details Display</title>
  8. </head>
  9. <body>
  10. Sucessfully inserted...!
  11. <table border="1" width="303">
  12. <tr>
  13. <td width="119"><b>UserName</b></td>
  14. <td width="168"><b>Country</b></td>
  15. </tr>
  16. <%Iterator itr;%>
  17. <% List data= (List)request.getAttribute("data");
  18. for (itr=data.iterator(); itr.hasNext(); ) {
  19. %>
  20. <tr>
  21. <td width="119"><%=itr.next()%></td>
  22. <td width="168"><%=itr.next()%></td>
  23. </tr>
  24. <%}%>
  25. </table>
  26.  
  27. <FORM >
  28.  
  29. <b>Click here to Register <a href="register.jsp"></b>Create Profile</a>
  30.  
  31. </FORM>
  32. </body>
  33. </html>

register.jsp
  1. <html>
  2. <body bgcolor="#CCCCCC">
  3.  
  4. <div style="background: black ">
  5. <h1 align="center"><font color="#FFFFFF">Thomas Learning Center - Create Your Profile Here...!</font></h1>
  6. </div>
  7.  
  8. <form action="http://localhost:8084/test/process.jsp" method=post>
  9. <table align="left" cellpadding=2 cellspacing=1 border="1" bgcolor="lightblue">
  10. <th bgcolor="lightblue" colspan=2>
  11. <font size=5>User Registration</font>
  12. <br>
  13. <font size=2 color="red"><sup>*</sup> Required Fields</font>
  14. </th>
  15.  
  16.  
  17. <tr bgcolor="lightblue">
  18. <td valign=top>
  19. <b>First Name<sup>*</sup></b>
  20. <br>
  21. <input type="text" name="firstName" value="" size=20 maxlength=20></td>
  22. <td valign=top>
  23. <b>Last Name<sup>*</sup></b>
  24. <br>
  25. <input type="text" name="lastName" value="" size=15 maxlength=20></td>
  26. </tr>
  27.  
  28.  
  29. <tr bgcolor="lightblue">
  30. <td valign=top>
  31. <b>E-Mail<sup>*</sup></b>
  32. <br>
  33. <input type="text" name="email" value="" size=25 maxlength=125>
  34. <br></td>
  35. <td valign=top>
  36. <b>Zip Code<sup>*</sup></b>
  37. <br>
  38. <input type="text" name="zip" value="" size=10 maxlength=8></td>
  39. </tr>
  40.  
  41.  
  42. <tr bgcolor="lightblue">
  43. <td valign=top colspan=2>
  44. <b>User Name<sup>*</sup></b>
  45. <br>
  46. <input type="text" name="userName" size=20 value="" maxlength=10>
  47. </td>
  48. </tr>
  49. <tr bgcolor="lightblue">
  50. <td valign=top>
  51. <b>Password<sup>*</sup></b>
  52. <br>
  53. <input type="password" name="password1" size=10 value="" maxlength=10></td>
  54. <td valign=top>
  55. <b>Confirm Password<sup>*</sup></b>
  56. <br>
  57. <input type="password" name="password2" size=10 value="" maxlength=10></td>
  58. <br>
  59. </tr>
  60.  
  61. <tr bgcolor="lightblue">
  62. <td valign=top>
  63. <b>City<sup>*</sup></b>
  64. <br>
  65. <input type="text" name="city" size=20 value="" maxlength=10>
  66. </td>
  67. <td valign=top >
  68. <b>Country<sup>*</sup></b>
  69. <br>
  70. <input type="text" name="country" size=20 value="" maxlength=10>
  71. </td>
  72. </tr>
  73.  
  74.  
  75. <tr bgcolor="lightblue">
  76. <td valign=top colspan=2>
  77. <b>Would you like to receive e-mail notifications on our special
  78. sales?</b>
  79. <br>
  80. <input type="radio" name="notify" value="Yes" checked>Yes
  81. <input type="radio" name="notify" value="No" > No
  82. <br><br></td>
  83. </tr>
  84. <tr bgcolor="lightblue">
  85. <td align=center colspan=2>
  86. <input type="submit" value="Submit">
  87. <input type="reset" value="Reset">
  88. </td>
  89. </tr>
  90. </table>
  91.  
  92. <table align="right">
  93. <tr>
  94. <td class="tdOne"><img src="images/admin.jpg" width="500" height="420"></td>
  95. <td class="tdTwo"><img src="images/teacher.jpg" width="300" height="420"></td>
  96. </tr>
  97. </table>
  98. </form>
  99. </body>
  100. </html>

process.jsp
  1. <%@ page language="java" %>
  2. <%@ page import="java.util.*" %>
  3. <%!
  4. %>
  5. <jsp:useBean id="formHandler" class="beans.FormBean" scope="request">
  6. <jsp:setProperty name="formHandler" property="*"/>
  7. </jsp:useBean>
  8. <%
  9. if (formHandler.validate()) {
  10. %>
  11. <jsp:forward page="success.jsp"/>
  12. <%
  13. } else {
  14. %>
  15. <jsp:forward page="retry.jsp"/>
  16. <%
  17. }
  18. %>

retry.jsp
  1. <jsp:useBean id="formHandler" class="beans.FormBean" scope="request"/>
  2. <html>
  3. <body bgcolor="#CCCCCC">
  4. <div style="background: black ">
  5. <h1 align="center"><font color="#FFFFFF">Thomas Learning Center</font></h1>
  6. </div>
  7.  
  8. <h2 align="center">OOPS.... Error in your Data...</h2>
  9.  
  10. <form action="http://localhost:8084/test/process.jsp" method=post>
  11. <center>
  12. <table cellpadding=4 cellspacing=2 border=0>
  13. <th bgcolor="lightblue" colspan=2>
  14. <font size=5>User Registration</font>
  15. <br>
  16. <font size=2 color="red"><sup>*</sup> Required Fields </font>
  17. </th>
  18. <tr bgcolor="lightblue">
  19. <td valign=top>
  20. <B>First Name<sup>*</sup></B>
  21. <br>
  22. <input type="text" name="firstName"
  23. value='<%=formHandler.getFirstName()%>' size=15 maxlength=20>
  24. <br><font size=2
  25. color=red><%=formHandler.getErrorMsg("firstName")%></font>
  26. </td>
  27. <td valign=top>
  28. <B>Last Name<sup>*</sup></B>
  29. <br>
  30. <input type="text" name="lastName"
  31. value='<%=formHandler.getLastName()%>' size=15 maxlength=20>
  32. <br><font size=2
  33. color=red><%=formHandler.getErrorMsg("lastName")%></font>
  34. </td>
  35. </tr>
  36. <tr bgcolor="lightblue">
  37. <td valign=top>
  38. <B>E-Mail<sup>*</sup></B>
  39. <br>
  40. <input type="text" name="email" value='<%=formHandler.getEmail()%>'
  41. size=25 maxlength=125>
  42. <br><font size=2 color=red><%=formHandler.getErrorMsg("email")%></font>
  43. </td>
  44. <td valign=top>
  45. <B>Zip Code<sup>*</sup></B>
  46. <br>
  47. <input type="text" name="zip" value='<%=formHandler.getZip()%>' size=5
  48. maxlength=6>
  49. <br><font size=2 color=red><%=formHandler.getErrorMsg("zip")%></font>
  50. </td>
  51. </tr>
  52. <tr bgcolor="lightblue">
  53. <td valign=top colspan=2>
  54. <B>User Name<sup>*</sup></B>
  55. <br>
  56. <input type="text" name="userName" size=10
  57. value='<%=formHandler.getUserName()%>' maxlength=10>
  58. <br><font size=2
  59. color=red><%=formHandler.getErrorMsg("userName")%></font>
  60. </td>
  61. </tr>
  62. <tr bgcolor="lightblue">
  63. <td valign=top>
  64. <B>Password<sup>*</sup></B>
  65. <br>
  66. <input type="password" name="password1" size=10
  67. value='<%=formHandler.getPassword1()%>' maxlength=10>
  68. <br><font size=2
  69. color=red><%=formHandler.getErrorMsg("password1")%></font>
  70. </td>
  71. <td valign=top>
  72. <B>Confirm Password<sup>*</sup></B>
  73. <br>
  74. <input type="password" name="password2" size=10
  75. value='<%=formHandler.getPassword2()%>' maxlength=10>
  76. <br><font size=2
  77. color=red><%=formHandler.getErrorMsg("password2")%></font>
  78. </td>
  79. <br>
  80. </tr>
  81. <tr bgcolor="lightblue">
  82. <td valign=top>
  83. <B>City<sup>*</sup></B>
  84. <br>
  85. <input type="text" name="city" size=10
  86. value='<%=formHandler.getCity()%>' maxlength=10>
  87. <br><font size=2
  88. color=red><%=formHandler.getErrorMsg("city")%></font>
  89. </td>
  90. <td valign=top>
  91. <B>Country<sup>*</sup></B>
  92. <br>
  93. <input type="text" name="country" size=10
  94. value='<%=formHandler.getCountry()%>' maxlength=10>
  95. <br><font size=2
  96. color=red><%=formHandler.getErrorMsg("country")%></font>
  97. </td>
  98. </tr>
  99.  
  100.  
  101.  
  102. <tr bgcolor="lightblue">
  103. <td colspan=2 valign=top>
  104. <B>Would you like to receive e-mail notifications on our special
  105. sales?</B>
  106. <br>
  107. <input type="radio" name="notify" value="Yes"
  108. <%=formHandler.isRbSelected("Yes")%>>Yes
  109. <input type="radio" name="notify" value="No"
  110. <%=formHandler.isRbSelected("No")%>> No
  111. <br><br></td>
  112. </tr>
  113. <tr bgcolor="lightblue">
  114. <td colspan=2 align=center>
  115. <input type="submit" value="Submit"> <input type="reset" value="Reset">
  116. </td>
  117. </tr>
  118. </table>
  119. </center>
  120. </form>
  121. </body>
  122. </html>

success.jsp
  1. <jsp:useBean id="formHandler" class="beans.FormBean" scope="request"/>
  2. <html>
  3. <body bgcolor="#CCCCCC">
  4. <div style="background: black ">
  5. <h1 align="center"><font color="#FFFFFF">Thomas Learning Center - Please confirm your Details</font></h1>
  6. </div>
  7.  
  8. <form action="http://localhost:8084/test/confirm.jsp" method=post>
  9. <center>
  10. <table cellpadding=1 cellspacing=1 border="1" >
  11. <th bgcolor="lightblue" colspan=2>
  12. <font size=5>You are going to create ur profile as</font>
  13. </th>
  14.  
  15.  
  16. <font size=4>
  17. <tr bgcolor="lightblue">
  18. <td valign=top>
  19. <b>First Name</b>
  20. <br>
  21. <jsp:getProperty name="formHandler" property="firstName"/>
  22. </td>
  23. <td valign=top>
  24. <b>Last Name</b>
  25. <br>
  26. <jsp:getProperty name="formHandler" property="lastName"/>
  27. </td>
  28. </tr>
  29. <tr bgcolor="lightblue">
  30. <td valign=top>
  31. <b>E-Mail</b>
  32. <br>
  33. <jsp:getProperty name="formHandler" property="email"/>
  34. <br></td>
  35. <td valign=top>
  36. <b>Zip Code</b>
  37. <br>
  38. <jsp:getProperty name="formHandler" property="zip"/>
  39. </td>
  40. </tr>
  41.  
  42.  
  43.  
  44.  
  45. <tr bgcolor="lightblue">
  46. <td valign=top colspan=2>
  47. <b>User Name</b>
  48. <br>
  49. <jsp:getProperty name="formHandler" property="userName"/>
  50. </td>
  51. </tr>
  52.  
  53. <tr bgcolor="lightblue">
  54. <td valign=top>
  55. <b>City</b>
  56. <br>
  57. <jsp:getProperty name="formHandler" property="city"/>
  58. </td>
  59. <td valign=top>
  60. <b>Country</b>
  61. <br>
  62. <jsp:getProperty name="formHandler" property="country"/>
  63. </td>
  64. </tr>
  65.  
  66. <tr bgcolor="lightblue">
  67. <td colspan=2 valign=top>
  68. <b>Would you like to receive e-mail notifications on our special
  69. sales?</b>
  70. <br>
  71. <jsp:getProperty name="formHandler" property="notify"/>
  72. </td>
  73. </tr>
  74. </font>
  75. </table>
  76. <br>
  77. <input type="submit" value="Confirm">
  78.  
  79. </center>
  80. </form>
  81. </body>
  82. </html>

confirm.jsp
  1. <%@page contentType="text/html"%>
  2. <%@page pageEncoding="UTF-8"%>
  3. <%--
  4. The taglib directive below imports the JSTL library. If you uncomment it,
  5. you must also add the JSTL library to the project. The Add Library... action
  6. on Libraries node in Projects view can be used to add the JSTL 1.1 library.
  7. --%>
  8. <%--
  9. <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  10. --%>
  11.  
  12. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  13. "http://www.w3.org/TR/html4/loose.dtd">
  14.  
  15. <html>
  16. <head>
  17. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  18. <title>Success</title>
  19. <link rel="stylesheet" type="text/css" href="css/style1.css" />
  20. </head>
  21. <body bgcolor="#CCCCCC">
  22.  
  23. <h1>U have a successfully created ur profile...!!!</h1>
  24.  
  25.  
  26. </body>
  27. </html>

Please help me...
If i want to write seperate DAO class, what all are the code should be in DAO class... (from Loading driver to what...???)
Where should i invoke this DAO class....????
Please clarify this....
Cheers,
RaniThomas.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC