Putting It All Together

When building a JSP, first decide what it's supposed to do. What part of the page is supposed to be presentation (HTML or XML) and what part is supposed to be dynamically generated content (Java)? Then, focus on the Java. What page directives are needed? What imports? What beans? What EAServer components?

Now, begin developing the page. In PowerBuilder 9, launch the JSP editor and create the visual interface. Then add the page directives and scriptlets.

Remembering that the intent of a JSP is separate the presentation and the content, develop EAServer components to provide content alone. In other words, EAServer components should provide raw, unformatted data which the JSP should then format. The exception to this rule ...

Get PowerBuilder® 9: Internet and Distributed Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.