| rpnman 2004-05-16, 6:31 pm |
| 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?
--
ROGER NEYMAN
"Bob C" <NewEnglandCamper@aol.com> wrote in message
news:dca18cc8.0405070526.208369cb@posting.google.com...
> 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
|