Drive has 700+ articles for digital transformation leaders written by StarCIO Digital Trailblazer, Isaac Sacolick. Learn more.

After playing around with several viewing technologies (jsp, tiles, velocity, jstl) and many approaches for managing the business/data tiers, I’ve settled on one approach that I think is the ‘best’ (or good enough for me 🙂 ) for prototyping data access pages.What is a data access page?

Simply put, it’s basically a data driven page. Pull data from somewhere, do a bit of processing/logic and render it to the user.

A simple recipe for prototyping:

I’m using jstl to get my data and displaytable to render the data. This combination lets me prototype a page using only 3 tags:


// Set the data source
<sql:setDataSource dataSource=”[DATASOURCE]”/>

Use the data source name in your [application].xml file


// Do the query
<sql:query var=”results”>
[Your Query Goes Here] </sql:query>

Once you do that, you can use display table to render the results

// Open the table
<display:table style=name=”pageScope.results.rows” >
// If you need to get access to the object, do something like this:
<% SortedMap m = (SortedMap) row; %>
// Here is a simple way to render one of your columns:
< display:column property=”[columnName]” title=”Simple Column”/>
// Or a more complex way (in case u need to do processing
<display:column title=”Complex Column”>
<%=(String)m.get(“ColumnName”)%>
</display:column>
// Don’t forget to close your table!
</display:table>

Why this works so well

Basically, the key to prototyping is speed and flexibility. All the data and logic for this prototype is in one file. Tweak the query and the UI as you need to… Once everyone is happy with the results, then you can review the prototype and migrate the code to the proper places.

Published on:

Topics:

Leave a Reply


StarCIO

My company, StarCIO, provides leadership, learning, and advisory programs for companies looking to accelerate delivering business value from digital transformation. Contact me if you’d like to learn more about partnering opportunities.


Isaac Sacolick

Join us for a future session of Coffee with Digital Trailblazers, where we discuss topics for aspiring transformation leaders. If you enjoy my thought leadership, please sign up for the Driving Digital Newsletter and read all about my transformation stories in Digital Trailblazer.


Coffee with Digital Trailblazers hosted by Isaac Sacolick

Digital Trailblazers! Join us Fridays at 11am ET for a live audio discussion on digital transformation topics:  innovation, product management, agile, DevOps, data governance, and more!


Join the Community of StarCIO Digital Trailblazers

About Drive

Drive Agility, Innovation, Transformation

Drive is the blog for digital transformation leaders brought to you by StarCIO and Isaac Sacolick.

Agility, Innovation, and Transformation are the three primary digital transformation core competencies that every StarCIO Digital Trailblazer must champion in their organizations. Learn more About Drive.


About the StarCIO Digital Trailblazer Community

StarCIO Digital Trailblazer Community

Revolutionizing traditional learning, networking, and advising experiences.

Visit the community


About StarCIO

StarCIO

About Isaac Sacolick

Isaac Sacolick

Author, 1,000+ articles, keynote speaker, Chief StarCIO Digital Trailblazer. Full bio


Driving Digital Newsletter

Driving Digital Newsletter

StarCIO Guides

StarCIO Agile Planning Guides

Digital Trailblazer

Digital Trailblazer by Isaac Sacolick

Driving Digital

Driving Digital by Isaac Sacolick

Driving Digital Standup

Driving Digital Standup

Coffee with Digital Trailblazers

StarCIO Coffee With Digital Trailblazers

Recognition

InfoWorld 2025 Judge
InfoWorld Technology of the Year 2024 Judge
Thinkers360 Top 10 in IT Leadership
Thinkers360 Top Agile Thought Leader
Thinkers360 Top DevOps Leader
Thinkers360 Top in Digital Transfomation
Thinkers360 Top in Analytics
Thinkers360 Top in Product Management

Discover more from StarCIO Digital Trailblazer Community

Subscribe now to keep reading and get access to the full archive.

Continue reading