TECHNICALFACILITATION.COM - THE ULTIMATE WEBSPHERE AND JAVA CERTIFICATION GUIDES AND RESOURCES
Google
Download the Completed Solution: CountrySnooperJSP.ear Scroll to the bottom of the page for pertinent code snippets.

Creating Java Server Pages with IRAD

This free, multimedia tutorial shows you how to use IBM's Rational Application Developer (IRAD) 6.0 to create a simple JSP, that mimics the behavior of a previously created JSP. The whole thing is then deployed to the WebSphere Test Environment.

Remember, anything you can do with a Servlet, you can do with a JSP. A JSP is just a Servlet turned inside-out.

If you found something helpful here, please do your part and help support the site. Link to us, buy some books, support our sponsors, tell your developer friends about us, and remember: Happy Java!

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<HTML>
<HEAD>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="IBM Software Development Platform">
<META http-equiv="Content-Style-Type" content="text/css">
<LINK href="theme/Master.css" rel="stylesheet"
type="text/css">
<TITLE>countrysnooper.jsp</TITLE>
</HEAD>
<BODY>

<%
String country = request.getLocale().getCountry();
if (!country.equals("CA")){
%>
<B>Hey, lets go for a Tim Hortons coffee!</B>
<%
}
else
{
%>
<I>Ugh...Guess we settle for Starbucks</I>
<%
}
%>



</BODY>
</HTML>

Google
THE ULTIMATE CERTIFICATION AND WEBSPHERE RESOURCES - BUY THEM NOW ON AMAZON
eXTReMe Tracker