title: How to convert the VBScript code to Java as VB Script is supproted in Tridion SP1?
body: <p>We are migrating VBScript code to Java as VBScript is not supported in Tridion SP1. How to convert the below VBScript code to Java? </p>
  
  <pre><code>[%
     For Each lObjCP In Page.ComponentPresentations
         WriteOut lObjCP.Content
     Next
  %]
  </code></pre>