Data hiding from the JSP page.

Java Primer
A JSP Architecture for Oracle Stored Procedures
by Satya Komatineni
Listing 4. Data hiding from the JSP page.


<%@ page import="com.storedProcedureFramework.*" %>
<%
//******************************************************
//* Get an IPageData  reference
//******************************************************
IPageData singleBookInfoPageData =
request.getAttribute("PAGE_DATA");
          new RelationalFormHandler(
            request,pageData,null);
  ILoopData authorsData =
singleBookInfoPageData.getLoopData ("authors");

//******************************************************
//* If there is no data, Report an error
//******************************************************
if (singleBookInfoPageData.isDataAvailable() == false)
   {
out.println(
"<html><body><p>No data found
              </p></body></html>");
 return;
   }
%>

Featured

Upcoming Events

AppTrends

Sign up for our newsletter.

I agree to this site's Privacy Policy.