translate code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • najmi
    New Member
    • Sep 2007
    • 46

    translate code

    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

    Code:
    <?php
    
    	$year = date('Y');
    	$month = date('m');
    
    	echo json_encode(array(
    	
    		array(
    			'id' => 111,
    			'title' => "Event1",
    			'start' => "$year-$month-10",
    			'url' => "http://yahoo.com/"
    		)
    	
    	));
    
    ?>
    Last edited by Dormilich; Dec 16 '09, 06:43 AM. Reason: Please use [code] tags when posting code
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    moved from PHP to Java forum.

    note for Java users: this is a JSON encoded array/associative array.

    Comment

    Working...