This is kind of a strange one: I have a
jsp that currently uses a bean, then proceeds to code the entire bean to do what's needed (which is why I'm asking about the taglib in a previous query). What I need to do is call the bean by a dynamically created name, but be able to reference the dynamic name in the
java code.
I've tried passing the value, but it gets treated the same way and has no clue as to what I mean. I'm at a loss. Since I'm pretty certain that something like this will come up again since I'm taking over a whole load of code like this, I'm asking the question now:
<jsp:useBean id="mdTable" class="MDTable" scope="session">
Then, later on,
<%
...
mdTable.setCommandProcessor((com.sas.servlet.util.CommandProcessorInterface)mdcp);
...
%>
What I'm trying to do is:
<jsp:useBean id="<% table %>" class="MDTable"
scope="session" >
Then be able to use the table defined here in the code:
<%
...
%> <% table %> <%.setCommandProcessor((util.CommandProcessorInterface)mdcp);
...
%>
But this isn't working. Any help?
Thanks for your time.
Pat