This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JSP and the fly likes how to print the date in jsp by retrieving it from table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "how to print the date in jsp by retrieving it from table" Watch "how to print the date in jsp by retrieving it from table" New topic
Author

how to print the date in jsp by retrieving it from table

vijayendra sandeep vulligundam
Greenhorn

Joined: Jul 29, 2008
Posts: 7
i have inserted date in table but iam unable to retrive it...please help me to retrive that and dispaly it in a jsp...i have the query to retrive but i dont know how to get that date and print it in my jsp page.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61309
    
  66

Copy the dat our of the resultset and into a collection or other appropriate construct. In the page controller. set that data as scoped variable in request scope. You can then acces the scoped variable on the JSP via the EL and JSTL.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
GeeCON Prague 2014
 
subject: how to print the date in jsp by retrieving it from table