Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Creating a Simple J2EE Servlet Using IRAD for WebSphere 7.0

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
8,910
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 4, 2008

You can see the full screen, high resolution tutorial, here:


http://www.thebookonhibernate.com/j2ee/index.jsp?link=01creatingservlets

Creating a Simple Servlet Using IRAD

This free, multimedia tutorial shows you how to use IBM's Rational Application Developer (IRAD) to create a J2EE project, a Servlet, and a WebSphere Test Server on which you can proudly run your newly birthed Servlet.

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!

package com.examscam.servlet;

import java.io.IOException;
import javax.servlet.Servlet;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class CountrySnooper extends HttpServlet implements Servlet {

protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String country = request.getLocale().getCountry();
if (!country.equals("CA")){
response.getWriter().print("Hey, lets go for a Tim Hortons coffee!");
}
else {
response.getWriter().print("Ugh...Guess we settle for Starbucks");
}
}
}



http://www.thebookonhibernate.com/j2ee/index.jsp?link=01creatingservlets

Please check out my SCJA Java Certification Mock Exam website:

http://www.scja.com/associate/

And for Hibernate and JPA tutorials, check out: http://www.thebookonhibernate.com

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:
see all

All Comments (2)

Sign In or Sign Up now to post a comment!
  • Thank you Caren (sorry if I spell wrongly your name), this is just exactely what I need to learn j2ee, I was looking for your videos for a epriod :)

  • there is some tutorials to download??? I am very interested in using RAD

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more