jCay.org

last scripts

popular scripts

top rated

search
 
search:

Advertisment

JSP and Servlets

DeEnFrSp
Amount: 4
Displaying: 1 - 4
Pages: [1]
Sort Listings By:
Hits: 2947

Handling Unhandled Exceptions

Rating 0.0 0.0
Java Server Pages (JSP) could handle any erros that might be arised in scriptlets, expressions, or other JSP elements. You could use try/cacth blocks to handle any known erros. In this technic we could use to display a custom error on our file where unhandled exception is thrown.
Platform(s): Linux, Windows, FreeBSD, Sun Solaris Date: Mar, 22 2006
DETAIL
Hits: 1991

Starting to work with JSP Sessions

Rating 0.0 0.0
Session are very helpful to associate some data with each visitor. You may pass and retrieve values in diffrent page using sessions. All sessions are an object associated with each web client. In this sample code we will create a session named `username` and later put a value inside our new Session object. On next step we will get our session value. .
Platform(s): Windows Date: Mar, 21 2006
DETAIL
Hits: 2334

Sending Emails in JSP

Rating 4.0 4.0
Before to start to examine this sample code, you need a SMTP server. If you know your mail server name you could easily use this sample code in a real website. We will use JavaMAIL API. You must put j2ee.jar under WEB-INF/lib folder in your web work folder. Our testing system is Red Hat Linux with Tomcat 5.
Platform(s): Windows Date: Mar, 21 2006
DETAIL
Hits: 3457

How to set cookies in JSP

Rating 5.0 5.0
You can put client's browser a cookie in JSP easily. Following example displays how to create cookie and set target browser.
Platform(s): Windows Date: Mar, 21 2006
DETAIL
Amount: 4
Displaying: 1 - 4
Pages: [1]