By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,743 Members | 804 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,743 IT Pros & Developers. It's quick & easy.

translate code

P: 46
hai..

i have used jquery fullcalendar for my application and i have one problem that is how to display the event from the database.i have found the sample given in php but i want it in jsp.can anyone help me to translate this short code to jsp or java.here is the code

Expand|Select|Wrap|Line Numbers
  1. <?php
  2.  
  3.     $year = date('Y');
  4.     $month = date('m');
  5.  
  6.     echo json_encode(array(
  7.  
  8.         array(
  9.             'id' => 111,
  10.             'title' => "Event1",
  11.             'start' => "$year-$month-10",
  12.             'url' => "http://yahoo.com/"
  13.         )
  14.  
  15.     ));
  16.  
  17. ?>
Dec 16 '09 #1
Share this Question
Share on Google+
1 Reply


Dormilich
Expert Mod 5K+
P: 8,639
moved from PHP to Java forum.

note for Java users: this is a JSON encoded array/associative array.
Dec 16 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.