Use the pageWriter from the JSP page,
Send the writer to your servlet using somethinglike
<% fmngt.getPage(request, out); %>
then in your code do your output lines directly
Something like
out.println("My page is a wonderful thing");

S


-----Original Message-----
From: Marcelo Demestri [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 8:10 PM
To: Tomcat Users List
Subject: JSP translation's problem...


Hi ! I need help, my problem is:
I call a bean from one jsp page but the result (HTML code) throw by the bean
appars at the top of the HTML page served by the web server (I use Tomcat
4.0.1)
instead of the position I call it
Example:
1) My jsp page
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
...
<jsp:useBean id="fmngt" class="myfolder.formmngtbean" scope="session" />
<% fmngt.getPage(request, response); %>
...
</HTML>

2) Result
<--"HTML code generated for the bean"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
...
</HTML>

Why? How I can do appear the generated code in the right position? Don't
shall
be done by default? Thanks in advance.

Marcelo



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to