Hi All
I'm looking for a tutorial or a design pattern or something to overcome the following:
In a jsp page code such as this works fine but is far from ideal.
<% if( isAdmin ) { %>
some html
<% } %>
<% if( isEditor ) { %>
some different html
<% } %>
<% if( isPublisher ) { %>
some different html again
<% } %>
I'm guessing there is a better technique? For example, if I add another role/user-type all the above may have to change on a whole load of pages.
Using struts by the way, not sure if it can help?
Thanks Very Much
J