MVC mode in JSP-network dating (1)

Source: Internet
Author: User

I. system module composition

1. Member registration 2. Member logon 3. upload photos 4. View member information 5. Change Password 6. Modify registration information 7. Launch Logon

Ii. Database Design

Create a database makefriend with SQL Server2000, create a new member table, and store member information

Table Primary Key LOGNAME

The column names are LOGNAME, password, phone, email, message, And pic.

Iii. System Management

Contents: webapps \ mkfriend \ WIN-INF \ Classes

1. Page Management

Navigation bar file: head.txt

<% @ Page contenttype = "text/html; charset = gb2312" %>
<Center> <font size = 5> <p> online dating </font> </center>
<Table cellspacing = "1" cellpadding = "1" width = "560" align = "center" border = "0">
<Tr valign = "bottom">
<TD> <a href = "register. jsp"> <font size = 2> Member registration </font> </a> </TD>
<TD> <a href = "login. jsp"> <font size = 2> member logon </font> </a> </TD>
<TD> <a href = "Upload. jsp"> <font size = 2> upload photos </font> </a> </TD>
<TD> <a href = "choicelooktype. jsp"> <font size = 2> browse members </font> </a> </TD>
<TD> <a href = "inputmodifymess. jsp"> <font size = 2> modify Registration Information </font> </a> </TD>
<TD> <a href = "modifypassword. jsp"> <font size = 2> Member registration </font> </a> </TD>
<TD> <a href = "helpexitlogin. jsp"> <font size = 2> log out </font> </a> </TD>
<TD> <a href = "index. jsp"> <font size = 2> back to home </font> </a> </TD>
</Tr>
</Font>
</Table>

Home page index. jsp

<% @ Page contenttype = "text/html; charset = gb2312" %>
<Head> <% @ include file = "head.txt" %> <HTML> <body = cyan>
<Center>
<H1> <font size = 4 color = Red> welcome to join friends </font> <Image src = "welcome.jpg" width = 900 Height = 600> </image>
</Center> </body>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.