aspose file tools*
The moose likes JSP and the fly likes Building JSP pages and link to MySQL table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Building JSP pages and link to MySQL table" Watch "Building JSP pages and link to MySQL table" New topic
Author

Building JSP pages and link to MySQL table

JC Bismark
Greenhorn

Joined: Jun 27, 2008
Posts: 29
Hi,I'm just starting on buiding JSP pages from scratch.
I need help to build my three JSP pages.Here is the requirements:

I have to design a JSP page (JSPFanClub.jsp) [page 1] that contains two buttons : "Add New" ; �Delete" ;
1 - Clicking "Add New " ,the JSP page (JSPMemberDetails.jsp) , [page 2] shows up .It includes fields FirstName, LastName, PhoneNumber,email with text Boxes each and Submit button.

When Submit is press, the message is sent to a table in MSQL. Also a Servlet need to be created ,this Servlet emphazise the use of INSERT and DELETE.

2 - Clicking on "Delete" bring me to (JSPMemberList.jsp) [page 3]. This page has one checkBox per record (Fistname,LatName,Email,PhoneNumber).For instance,if in my table I have
7 records , I would get 7 checkBoxes.If I select 2 records(checkmark) , those 2 records will be delete by clicking the Submit button and it will go back to [page 1 ] (JSPFanClub.jsp)

JSPFanClub.jsp [page1]



JSPMemberDetails.jsp [page2]




1-I want to know if I'm in the right path and also how to link [page2] to "Add New" button of [page1].

2- how to link the "Submit" button to the mySQL table Member

3 - how to make appear one checkBox per record (record is compose of
firstname,lastname,email,phonenumber)in the JSPMemberList.jsp [page 3]

4- from the JSPMemberDetails.jsp [page 2] how to design a servlet that use method INSERT and DELETE

thanks in advance
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Building JSP pages and link to MySQL table
 
Similar Threads
Simple examples of JSP
problem inserting data into MS Access
Question on BUTTON name/value pairs sent from JSP
senRedirect how to diferntiate in the different jsp file?
Spring Login problem "Request processing failed; nested exception is java.lang.NullPointerException"