JSP Graduate Project Selection System

With the rise of global information technology, especially the growing popularity of the Internet, China's major colleges have established their own campus network. Graduate class as a unit of the original hand-topics submitted by way of the times can not meet the demand, so the Internet-based Graduate Project Selection System also born out of.
Graduate Project Selection System is to enable students to complete the graduation project selected by the Internet, which uses Web way, suitable for both LAN and the Internet, it is to achieve audit functions, rights management, mail notification, and can provide title save, topic query and other functions, the system also has the most open question bank management system and topics most flexible system, able to automatically determine the rights of users to freeze.
We use the JSP technology as the main means, the system uses a multi-level role management: including system administrator ., Dean, students and teachers in several permissions This paper describes the division of user rights, and discussed in detail the system design thinking and method steps implemented so as to lay a foundation for future research.

Part of the code:

MimeMessage mimeMsg Private =  NULL ;   // the MIME message object 

Private the SESSION the SESSION =  NULL ;       // message session object 

Private Multipart MP =  NULL ;    // content Multipart objects, message content, title, attachments, etc. are added thereto, the regenerated MimeMessage Object 

mimeMsg.setContent (MP); 

mimeMsg.saveChanges (); 

System.out.println ( "sending message ...."); 

SESSION mailSession = Session.getInstance (props, NULL ); 

mailSession.setDebug (DEBUG); 

mimeMsg.saveChanges ();     // stores mail information 

Transport Transport = mailSession.getTransport ( "SMTP");

transport.connect(smtpServer, username, password);

transport.sendMessage(mimeMsg,mimeMsg.getRecipients(Message.RecipientType.TO));

System.out.println("发送邮件成功!");

mailSession = NULL;

transport.close();

 

Guess you like

Origin www.cnblogs.com/xxsnn/p/11613564.html