• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

dynamic bean:define tags

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I have a bean named navigation in application-context and I can access it in the jsp using: <bean efine id="navigation" name="navigation" />

There can be mulitple navigation beans in the context. Each of them r distinguished by a tailing ID number( for example navigation1,navigation2..1,2 are the id's here)
The ID number is dynamic and is stored in the session.
I want to be able to access the appropriate bean according to the Id in session. Something like:
<bean efine id="navigation" name="navigation"+id />

This can achieved esily using scriplets but I would like to avoid it.

Any information regarding this would be appreciated.

Pavan.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic