Archive for November, 2007

Thursday, November 29th, 2007

EJB & JSP: Java On The Edge, Unlimited Edition by Lou Marco ISBN: 0764548026 Your Guide to Cutting-Edge J2EE Programming Techniques. Summary The topic of JSP tag extensions is relatively recent, being introduced in JSP release 1.1. The draft specification for JSP release 1.2 discusses additional features of the JSP tag extensions. Searching for JSP tag extensions at http://www.google.com/ returns over 1,300 sites. Those who are “in the know” realize that JSP tag libraries are an essential component of JSP technology.
The European settlement at Melbourne was founded in 1835 by settlers coming from Tasmania (then known as Van Die men’s Land), where they had difficulty finding available land.We provides affordable, discount and cheapest Melbourne web hosting, free domain name, unlimited data transfer, unlimited emails, PHP, ASP, and database hosting,check Web Hosting Melbourne services.

Wednesday, November 28th, 2007

servers use a configuration file, whereas others use a GUI to set values for server settings. Note the bolded invocation of the superclass constructor in the second example. Do yourself a favor and code the call to super.init as the first line in your init implementation when you require an object of ServerConfig. As with init, jspInit is not required for JSP execution. However, you can code a jspInit method in your JSP page, which is passed to the generated servlet. The servlet engine executes the jspInit method only once upon loading the generated servlet. Listing 8-4 shows how to code a jspInit method in your JSP pages. Listing 8-4: Example of jspInit method in a JSP jspInit

Tuesday, November 27th, 2007

HttpSession session = null; ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; String _value = null; try { if (_jspx_inited == false) { _jspx_init(); _jspx_inited = true; } _jspxFactory = JspFactory.getDefaultFactory(); response.setContentType(”text/html”); pageContext = _jspxFactory.getPageContext(this, request, response, “”, true, 8192, true); application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); /* HTML begin [file=”D:\tomcat32\Webapps\examples\jsp\loutest\loutest.jsp”;from=(0,35);to=(7,0)] */ out.write(”rnrnrnMinimal JSP Page

Monday, November 26th, 2007

{ doGet( request, response ) ; }} The above servlet is as bare bones as it gets. It is important to note that you do not have to override the doGet or doPost methods if you instead override the service method and handle all requests there. This would not be considered good form in servlet design, but it is an option. In the next section we will see that a minimal JSP-generated servlet is a bit different since the doGet and doPost methods do not exist. Writing a Minimal JSP-Generated Servlet The nuts and bolts of a JSP-generated servlet are dependent on the JSP-to-servlet translator used with a particular Web server. Listing 8-2 shows a rather simple JSP page in which Tomcat 3.2 generated the servlet. However, this page is not the simplest because it has actual JSP scripting elements a simple page would have nothing but static text. Listing 8-2: A simple JSP page with a couple of scripting elements Minimal JSP Page

Sunday, November 25th, 2007

Saturday, November 24th, 2007

Friday, November 23rd, 2007

Thursday, November 22nd, 2007

Wednesday, November 21st, 2007

Tuesday, November 20th, 2007