Re: JSP generating a messagebox

From: Walter Duque de Estrada <wduque_at_nospamearthlink.nospamnet>
Date: 2000/08/05
Message-ID: <01HW.B5B1B2260003C70E0B85BEE0_at_news.earthlink.net>#1/1


This is not a JSP issue per se but with server-side scripting and flow. A server detects server-side tags (JSP, ASP , CFM) on a text page and interprets them and then sends them to client. Once sent it
can't be taken back. The way to
do conditional flow is then to send one page with the messagebox and then
submit again to server with the boolean value as part of the post.
Place a form on the page that sends the boolean vale to the server to a jsp that gets the value from the submit.

On Fri, 21 Jul 2000 7:54:01 -0500, Mark Koorevaar wrote (in message <8l9ja9$1a6$1_at_porthos.nl.uu.net>):

> I have succeeded to print a messagebox (<script language="javascript">
> waarde= return confirm("De update is voltooid");
> </script>), but I want to put the return value (boolean) in a variabele so
> I can make an if statement in my JSP page like:
>
> <%
> if (waarde)
> {
> %>
> <jsp:forward page="zoekformulier.jsp" />
> <%
> }
> %>
> The problem is I can't get the value in the variable ( When there is code
> put behind the script in the JSP page, the browser doesn't wait for a
> reaction by pressing the OK or CANCEL button, but proceeds with the rest of
> the JSP code).
>
> I hope the question is understandable.
>
> With kind regards,
>
> Mark
>
>
Received on Sat Aug 05 2000 - 00:00:00 CEST

Original text of this message