have you tried using .innerHTML ? -----Original Message----- From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Iv�n Escobedo Sent: Wednesday, June 26, 2002 1:29 AM To: [EMAIL PROTECTED] Subject: Re: Getting the output of a JSP
Ok, i'm gonna slow it down. Let's begin with the first part: I need to set a String variable with the content of a whole file (jsp) �How to do that?? >From: Michael Nicholson <[EMAIL PROTECTED]> >Reply-To: "A mailing list for discussion about Sun Microsystem's Java > Servlet API Technology." <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: Getting the output of a JSP >Date: Tue, 25 Jun 2002 12:23:20 -0400 > >So there seems to be three parts, two of which I may have a clue about, and >the third I haven't used yet (much). > >Part 1: Static part of jsp > >read the file in your jsp, define a string variable, read the static parts > >Part 2: Dynamic Part served by tomcat/whatever > >most (if not all) of this should be being output either in your classes or >by render() methods of classes or whatever. if they're your classes, just >concatenate them onto the strings. if not, not sure. > >Part 3: Tag output > >I have no idea. > >Regardless, all of this is what the browser sees, so viewing the source on >your result should show you what it is. maybe there is someway to get the >source before output? I'm not sure unless you can use the above stuff. > >Maybe I just restated the question. Sorry. > >----- Original Message ----- >From: "Iv�n Escobedo" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Tuesday, June 25, 2002 12:11 PM >Subject: Re: Getting the output of a JSP > > > > the example is very simple, what i wrote is what i mean to say > > > > The output is a jsp already displayed on a browser, but i need it not in >a > > browser but contained in a String variable. > > > > > > >From: "Galbreath, Mark" <[EMAIL PROTECTED]> > > >Reply-To: "A mailing list for discussion about Sun Microsystem's Java > > > Servlet API Technology." <[EMAIL PROTECTED]> > > >To: [EMAIL PROTECTED] > > >Subject: Re: Getting the output of a JSP > > >Date: Mon, 24 Jun 2002 20:33:56 -0400 > > > > > >What output? Your question doesn't make any sense. You already have >the > > >name being displayed as you say you want it. If you just want to keep >the > > >format for use somewhere else, put Name in session scope: > > > > > >String XXX = "<html><body>" + session.getAttribute( "Name") + > > >"</body></html>"; > > > > > >Mark > > > > > >-----Original Message----- > > >From: Ivan Escobedo [mailto:[EMAIL PROTECTED]] > > >Sent: Monday, June 24, 2002 7:17 PM > > > > > >How can i set a String variable with the output of a JSP already loaded >or > > >processed. > > > > > >Here's the jsp page: > > > > > >Example.JSP > > > > > ><html> > > ><body> > > >Hello <%= request.getAttribute("Name") %> > > ></body> > > ></html> > > > > > >So, i need this process to load and retrieve the JSP output: > > > > > >String XXX = SomeProcess(Example.jsp?Name=ij) > > > > > >So, finally XXX will contains: > > > > > >XXX = "<html><body>Hello ij</body></html>" > > > > > > >___________________________________________________________________________ > > >To unsubscribe, send email to [EMAIL PROTECTED] and include in the >body > > >of the message "signoff SERVLET-INTEREST". > > > > > >Archives: http://archives.java.sun.com/archives/servlet-interest.html > > >Resources: http://java.sun.com/products/servlet/external-resources.html > > >LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > > > > > > > > > _________________________________________________________________ > > Envme y reciba su correo de Hotmail desde el msvil: >http://mobile.msn.com > > > > >___________________________________________________________________________ > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the >body > > of the message "signoff SERVLET-INTEREST". > > > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > > Resources: http://java.sun.com/products/servlet/external-resources.html > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > > > > >___________________________________________________________________________ >To unsubscribe, send email to [EMAIL PROTECTED] and include in the body >of the message "signoff SERVLET-INTEREST". > >Archives: http://archives.java.sun.com/archives/servlet-interest.html >Resources: http://java.sun.com/products/servlet/external-resources.html >LISTSERV Help: http://www.lsoft.com/manuals/user/user.html _________________________________________________________________ Env�e y reciba su correo de Hotmail desde el m�vil: http://mobile.msn.com ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
