Okay, I'm a little confused: do you want the first pass to write another
JSP page or not?
What exactly does the first pass do? What does the second pass do?
Does the first pass set some data for the second pass to present? Or does
it write some code that is dependant on conditions when the first pass is
done? Or both?
If the first pass is setting some data that can live outside the JSP
itself, you could set up the jsp to conditionally execute one-of-two set
of code based on a query string parameter:
<%
boolean firstParse = false;
firstParse = <pseudocode>value of querystring "first"</pseudocode>
if (firstParse)
{
// do whatever it is needs to be done here
}
else
{
// this is what gets displayed to the end-user
}
%>
perhaps not elegant, but I'm not clear on your actual objective.
-----Original Message-----
From: Boris Granveaud <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, May 21, 1999 9:07 AM
Subject: Re: Double parsing: JSP -- JSP -- HTML
>>Create a File, open a FileWriter, and write your JSP code to that.
>
>Of course, it will work, but it is not very elegant: your JSP code is
>embedded in the Java code, you have to quote characters like " ...
>
>What I'd like is to write some code in one JSP page, and to have a way to
>tell that this code has to be executed at the first parsing, and this one
>should be executed at the second parsing. All this should be
syntactically
>simple (no quoting...)
>
>Any idea?
>
>Boris.
>
>
===========================================================================
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".