Web Hosting Java, JSP, Tomcat 6, J2EE, Servlets, Struts, Jboss
JavaSercer Pages (Clan hosting) Figure 5.1. JSP book examples main
November 30, 2006 on 2:26 am | In Java | JavaSercer Pages Figure 5.1. JSP book examples main page Figure 5.2. Current Date/Time JSP page example Notice that the month seems to be off by one and the year is displayed as 100. That’s because the java.util.Date class we use here numbers months from to 11, so January is 0, February is 1, and so on, and it reports year as the current year minus 1900. That’s just the way this example works. As you will see later, there are much better ways to display dates. The page shown in Example 5.1 contains both regular HTML elements and JSP elements. The HTML elements are used as-is, defining the layout of the page. If you use the View Source function in your browser, you notice that none of the JSP elements are visible in the page source. That’s because the JSP elements are processed by the server when the page is requested, and only the resulting output is sent to the browser. To see the unprocessed JSP page in a separate window, click on the source link for the date.jsp file in the book examples main page. The source link uses a special servlet to send the JSP page as-is to the browser instead of letting the server process it. This makes it easier for you to compare the source page and the processed result. Let’s look at each piece of Example 5.1 in detail. page 43
Note: If you are looking for inexpensive but high quality provider to host and run your jsp application check Astra jsp hosting services
No Comments yet
Sorry, the comment form is closed at this time.
...I
just wanted to take the time to say "Thank you!" for our new webmail
system. It's great! Thanks for taking such good care of us.
Thanks
for helping me out. Just for the record, Webhostingjava.net has been a great
web host! So far your support and handling of questions has far
exceeded that of a "larger web hosting company".
I
would like to thank you for helping me with my domain...You have
shown me great patience and professionalism. I would not hesitate to
recommend you to my clients.