Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8483059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:59:03+00:00 2026-06-10T19:59:03+00:00

I am building a webflow app that comprises about 10 screens. My flow definition

  • 0

I am building a webflow app that comprises about 10 screens. My flow definition file defines the flows between all of the view-states, where each view-state is represented by a .jsp view file.

I would now like to introduce the concept of white-labeling the application – being able to present the same flow, but with a different ‘skin’ or view file, depending on a model property – ${brand}.

I don’t think I can do this with css alone. The html markup between brands will be very different, and some of the fields will be presented with different text etc (ie. Brand X might say ‘What is your first name’, Brand Y might say ‘Please enter your forename’).

I could put a load of logic in each jsp file to present different markup and text where appropriate, but this feels messy, and I think I’d end up with one massive if/else, with the markup for each brand being in the relevant if/else body.

I could use a view jsp to ‘decide’ which jsp to show. Something like this:

<view-state id="AboutYou" view="common/AboutYou" />

Then in common/AboutYou.jsp, do this:

<c:chooose>
    <c:when test="${brand == 'X'}>
        <jsp:include page="brandX/AboutYou.jsp" />
    </c:when>
    <c:when test="${brand == 'Y'}>
        <jsp:include page="brandY/AboutYou.jsp" />
    </c:when>
</c:choose>

I can see this working, but I’m not sure how efficient it is – I would have 10 extra .jsp files, where the sole job of the ‘common’ .jsp files is to decide which branded .jsp to show.

Another way would be to duplicate all my view-states, then put a load of decision-states in my flow defintion file. But this seems really messy and will make for a massively bloated flow def file.

So I was wondering if there is another/better/smarter way of doing this. Perhaps being able to use EL in the flow definition file. Something like this:

<view-state id="AboutYou" view="brand${brand}/AboutYou" />

Would this work? Or is this another way to approach this?

Cheers,

Nathan

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T19:59:05+00:00Added an answer on June 10, 2026 at 7:59 pm

    I’ve found the answer to this – you can access the model with # rather than $ Not sure what the difference is, but this works:

    <view-state id="AboutYou" view="brand#{brand}/AboutYou" />
    

    This results in it using a view file called brandX/AboutYou.jsp

    Happy days 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey all- I'm working on some web flows for a Grails app we're building.
Building a quick view that will display a list of all days but only
Building an app with the Facebook JavaScript API that will embedded into a page
Building a WP7 app using MVVM light for my view models. I'm using the
Building an app using a calendar on a Google Apps domain that has SSL
Building a Silverlight 5 app that runs in the browser but getting some nagging
building a site using PHP and MySQL that needs to store a lot of
Building a Django app on a VPS. I am not very experienced with setting
Building a website that has English & Japanese speaking users, with the Japanese users
Building a search with some custom objects and three scopes: All , Active ,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.