i am new to jsp.right now i am making a small project that will be basically a mail server. here in this project i am using student login and password as a means of authentication.when the user is authenticated then a html page will be vied which will contain links to pages containg mail box,all other things useful for curriculum.the student can mail his queries to the teacher on relevent subjects and accordingly the teacher will reply to it.i am thinking of using distributrd database system.so plz suggest me regarding SMTP protocol designing through jsp.
Are you sending "real" email... i.e. are actual email messages being sent between systems and can these messages be pulled up in any email application? If so you need to look into JavaMail. This API is a pretty simple way of dealing with SMTP through Java.
Or are you just following the "pattern" of email within your application? i.e. the messages are formatted similiar to emails (sender, receiver, message body, attachments, etc.) but messages are exchanged only between users of your application, and must be viewed only through your application. If this is the case you just need some JavaBeans to model the structure of the messages and use whatever technology you want to save the information contained in the messages (database, XML files, flat files, etc.). But you don't have to worry at all about something like SMTP because the messages aren't actual email messages and don't need to be handled outside your application.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.