Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamic value for "class" attribute of jsp:useBean

 
sonali jingar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working in finance module i need to know wheteer value for "class" attribute in jsp:useBean tag can be set dynamically..
ie . if
branch is 1 then id='X'
<jsp:useBean id="dbprd" class="<%=session.getAttribute(id)%>" scope="application"/>
else id =' y'
<jsp:useBean id="dbprd" class="<%=session.getAttribute(id)%>" scope="application"/>
is it possible to set dynamic value for "class" attribute.

please help.....
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64683
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not possible.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic