I cant vouch for whether this should or shouldn't work, but I'd highly
recommend against it. If you are creating a java class, why not just do
it the normal way and use it in your jsp?
hth
dim
On Sun, 26 Aug 2001 [EMAIL PROTECTED] wrote:
> I'm declaring a class inside my jsp
> <%!
>
> public class foo{
>
> public void mymethod{
>
> //Java code
>
> %>
> Html
> <%! }//mymethod
>
> }//foo
> %>
>
> The problem is that, the Html is put inside the jsp_service method in the
> generated servlet code and not inside the class structure, which otherwise works
> perfectly fine. What I tried to do is pass a JspWriter object into my class via
> constructor, but that doesn't help. I need the html to appear within the class
> and not the jsp_service, does anyone have any idea how to fix
> this?
>
> ---------------------------------------------
> This message was sent using Endymion MailMan.
> http://www.endymion.com/products/mailman/
>
>
>