I have a JSP page that calls a Java Bean method which returns a text
value (e.g., table).
My question is... can the text value that I pass back to the JSP page
be a JSP code snippet?
I assume not because the original JSP code is already precompiled and
wouldn't know what to do with the JSP code returned from the bean.
Any thoughts?
---------------------------------------------
Example:
JSP Include File:
header1 = "Column #1";
header2 = "Column #2";
...
JSP snippet:
<%= mybean.getTableData() %>
Java Bean function:
String getTableData() {
return ("<TABLE><TR><TH><%= header1 %></TH><TH><%= header2
%></TH></TR></TABLE>");
}
thanks!
BC
rpnman - 16 May 2004 22:05 GMT
I suppose something could be worked out with serialized objects, but the
real question is :
Why?
What are you trying to do that can't be done better through a more tested
and supportable technology?

Signature
ROGER NEYMAN
> I have a JSP page that calls a Java Bean method which returns a text
> value (e.g., table).
[quoted text clipped - 28 lines]
>
> BC