Tutorial

Building Multi-Page Applications

Patterns for structuring larger Oorian applications with multiple pages.

M. WarbleSeptember 24, 20261 min read
Building Multi-Page Applications

As applications grow beyond a few pages, structure becomes important. Here's how to organize multi-page Oorian applications.

Package Structure

com.myapp/
├── pages/
│   ├── admin/
│   ├── customer/
│   └── reports/
├── components/
├── services/
└── models/

Base Page Classes

public abstract class AdminPage extends HtmlPage
{
    @Override
    protected void createBody(Body body)
    {
        body.addElement(new AdminNavigation());
        Div content = new Div();
        createContent(content);
        body.addElement(content);
        body.addElement(new AdminFooter());
    }

    protected abstract void createContent(Div container);
}

Shared State

Use session attributes for state shared across pages (current user, preferences, etc.).

Conclusion

Good organization—clear packages, base classes, shared components—makes large applications manageable.

Related Articles

Tutorial

Getting Started with Oorian: Your First Java Web Application

December 31, 2025
Security

Security by Default: How Oorian Protects Your Applications

January 11, 2026
Announcement

Why We Built Oorian: The Story Behind the Framework

January 7, 2026