I've got a tree-like data structure which I'm displaying on a web page. As the user navigates through a breadcrumb trail is left behind to let them retrace their steps.
e.g. Root / First Group / Second Group / Third Group (where the groups are links back up)
At the moment the function to create the links is in the
jsp. It's only used in one place so this seemed the pragmatic option though I'm not sure if it's "correct". I realise it wouldn't make any sense to put it in the entity itself but would a static class that generates the links, callable from the jsp make more sense?
Just curious about people's opinions and experiences on this one.