Peter, A flexible solution to the problem would be to have the code in a method such as this: /** * getMaxValues - returns the n highest values from a the xyz.someField database table * @param n - the number of values to return * @return a Collection of the n highest values in the xyz.someField database table */ public Collection getMaxValues(int n) { . . . }
You would also consider putting this in a DAO class that returns other values from the database
Regards,
Richard At 02:16 PM 7/29/2003 -0400, you wrote:
Use ssl (Secure Socket Layer) on the web server. You will need to get an SSL certficate for the web server. You then need to change your form so it invokes your servlet using https. If you want, you can also modify your servlet or JSP so that it checks to make sure that the information it receives was transmitted using https.
-Richard
-----Original Message----- From: rachit mathur [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 10:58 AM To: [EMAIL PROTECTED] Subject: security?????
hello, i am a student of engineering in information technology. i was making a online leave management system in jsp. i just want to know that what can i do to provide security to my first page i.e. login and password page. as these things will be trasnsfered through the internet to the webserver. the user will type in his login and password in the form and press the submit button. i am using the POST method to submit the form. this password in the server gets checked against the login which information is stored in a ms sql database. please suggest me what security measures should i take and where can i find them? thanking you in advance. rachit mathur.
--------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software
=========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant archives, FAQs and Forums on JSPs can be found at:
http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
=========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant archives, FAQs and Forums on JSPs can be found at:
http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
=========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant archives, FAQs and Forums on JSPs can be found at:
http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com