A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
JSP
Author
no working
Rajesh Veluchamy
Ranch Hand
Joined: Jan 15, 2008
Posts: 47
posted
Jan 23, 2008 05:53:00
0
i don't know whether is not working for me only or for everyone...
the output is : "Hello! The time is now"
then what is the use of "<%= getDate() %>" code?
<%@ page import="java.util.*" %> <HTML> <BODY> <%! Date theDate = new Date(); Date getDate() { System.out.println( "In getDate() method" ); return theDate; } %> Hello! The time is now <%= getDate() %> </BODY> </HTML>
[ January 23, 2008: Message edited by: Bear Bibeault ]
-Rajesh.V<br /> Software Consultant
Bryce Martin
Ranch Hand
Joined: Nov 19, 2007
Posts: 269
posted
Jan 23, 2008 06:19:00
0
it is a scriptlet that calls a date function and prints the date. I hope you get an A
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
I like...
posted
Jan 23, 2008 06:28:00
0
When I run it, I see this:
Hello! The time is now Wed Jan 23 08:27:38 EST 2008
Java API
J2EE API
Servlet Spec
JSP Spec
How to ask a question...
Simple Servlet Examples
jsonf
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56153
13
I like...
posted
Jan 23, 2008 08:01:00
0
Please be sure to take the time to compose descriptive subjects for your posts;
read this
for more information.
"no working" is not a good or descriptive subject.
[
Smart Questions
] [
JSP FAQ
] [
Books by Bear
] [
Bear's FrontMan
] [
About Bear
]
I agree. Here's the link:
http://aspose.com/file-tools
subject: no working
Similar Threads
Very Simple JSP problem
Tomcat server webpage error
Date Problem in javascript.
regarding scriptlets
JSP variable declarations
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter