File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Date Storing in Jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Date Storing in Jsp" Watch "Date Storing in Jsp" New topic

Date Storing in Jsp

Cool Impression

Joined: Jun 26, 2001
Posts: 18
I am Using Jsp, I want to Store System Date in a variable. when I Assign a variable of either Object Class or String Class.
It gives me an error "Cannot create static reference to non-static value". I want to Ask how to create non-static variables.
and store Date in it.
Please guide me...
Carl Trusiak

Joined: Jun 13, 2000
Posts: 3340
JavaRanch has a Naming Policy In order to be entered in the drawing for the book giveaway, your name must meet this policy. Please reregister with a correct name.

Could you post the offending code? For some reason I'm not following the problem here.

I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
I agree. Here's the link:
subject: Date Storing in Jsp