function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
srilakshmi1.387861669756762E12srilakshmi1.387861669756762E12 

access list integers from controller to visual force page

Hai friends in my controller program i have list of integers ,now i want to display it in my visual force page can any one help me
in controller:

public with sharing class list_test {
public list<integer> i { get; set; }
public list_test()
{
i=new List<integer>();
i.add(5);
i.add(10);
i.add(15);
i.add(20);
system.debug('111111111111'+i);
}

}
nbknbk
You can use get/set variables in visual force as below.
<apex:page>
<apex:form>
<script>
      var testvalue ='{!classvarible}' ; //merge fields
      alert('controllervalueis@@'+testvalue);
</script>
</apex:form>
</apex:page>

Hope this information helps you