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....