Wrox Programmer Forums
|
Pro JSP Advanced JSP coding questions. Beginning questions will be redirected to the Beginning JSP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro JSP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 6th, 2004, 04:38 AM
Registered User
 
Join Date: Mar 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default j2ee

i must type a simple programme on jsp it work to show date,time,hour,system year.But.it give correct result in all case but it cause problem in printing year. egif system year is 2004
it shows 104
if year is1995
it printed095(no problem)
after 2000 year i get error result how to overcome it simply? here is a code

<%@ page language="java" contentType="tex t/html" %>
<html>
<body bgcolor="yellow">
<jsp:useBean id="clock" class="java.util.Date"/>
     the current time in the server
[list]
<li>Date:<jsp:getProperty name="clock" property="date"/>
<li>Month:<jsp:getProperty name="clock" property="month"/>
<li>Year:<jsp:getProperty name="clock" property="year" />
<li>Hours:<jsp:getProperty name="clock" property="hours"/>


     </ul>
</body>
</html>
    by shinu
 
Old March 6th, 2004, 04:40 AM
Registered User
 
Join Date: Mar 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

tell, your answer
 
Old March 6th, 2004, 04:41 AM
Registered User
 
Join Date: Mar 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

iam waiting for reply
 
Old March 6th, 2004, 05:04 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi shinu,

You're posting in the wrong forum. I think you'll get a quicker answer if you'd pick the appropriate forum from the list.

It would also help if you'd "scream" a little less. Green text in size 48 is not really fun to read, so people may not be inclined to answer.

Finally, it would also help if you'd give people more than 1 or 2 minutes to reply. This is not an automated system; for people to respond here, they actually have to take the time to sit down at their computer, and type a message for you. Stressing them up is usually not the best way to get a quick answer. Respect and courtesy will get you much further.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
J2EE 1.3 AND FedoraCore 4 j2ee -verbose DR POMPEII J2EE 1 April 16th, 2007 03:50 AM
j2ee version laxminarayana1512 JSP Basics 2 November 5th, 2004 06:22 AM
J2ee myharshdesigner J2EE 2 October 21st, 2004 12:16 AM
Help in J2EE ritesh_sinha J2EE 0 March 18th, 2004 05:54 AM
help in J2EE ritesh_sinha J2EE 1 March 18th, 2004 05:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.