The protected void prepareResponse(HttpServletResponse res, JSONObject response) throws IOException method is provided in the com.ibm.btt.cs.html.ExtendHtmlPresentationHandler class for extending the class to update the JSON string of the Web response page.
To extend the ExtendHtmlPresentationHandler class, complete the following steps:
1 Create the following extension class by extending the com.ibm.btt.cs.html.ExtendHtmlPresentationHandler class.
2 Override the protected void prepareResponse(HttpServletResponse res, JSONObject response) throws IOException method by using the following sample codes.
package com.ibm.btt.application.op.fvt.v8107.BC010; import java.io.IOException; import javax.servlet.http.HttpServletResponse; import com.ibm.btt.cs.html.ExtendHtmlPresentationHandler; import com.ibm.json.java.JSONObject; public class MyExtendHtmlPresentationHandler extends ExtendHtmlPresentationHandler {