> -----
> I refer to version 0.92 of the JSP specification. You can get it from
> http://java.sun.com/products/jsp/. You have to download the reference
> implementation because the specification is part of that package.
>
> bye
> Volker

Thanks for that information, Volker.
I had some very interesting lecture yesterday evening.

0.92 seems a big advance over 0.91 to me, very useful ideas in there,
JSP got much clearer and more useful; excellent!



But there is this one question left to me:



If I were to call a JSP-page from a servlet to produce the html
representation for some data generated by that servlet, the servlet would do
some thing like this:

response.setAttribute("keyname", data-object);
context.getRequestDispatcher( "jsp-url" ). forward(request, response);



then the JSP-page could do within a Snippet

<% DataClass dataobject = request.getAttribute( "keyname" )%>

to access the data object.



But after this, how can I best use that data object in the JSP? I could use
a lot of Snippets, that is clear so far, but I wouldn't like that approach
since it results in an unreadable and cluttered jsp page.

Making the dataobject a real Bean to the JSP page would be much much better;
I could then use 0.92's features like <display>, <includeif> and <loop>
instead of Snippets. I wonder how to do that in 0.92. I could write a
wrapper class, instatiate this via <usebean> and <setoncreate> the
dataobject to it (I asume); yeah, but that class is extra efford.

Is there another, more simpler way which I'm too blind for at the moment?

Thanks and bye,
Werner

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to