I would be curious if this works the same as the scriptlet version:

<logic:notPresent name="alreadySubmitted" scope="session" >
        <meta http-equiv="refresh" content="0">
        <bean:define id="alreadySubmitted" scope="session" value="yep"/>
</logic:notPresent>

Or to be more like the scriptlet in it's test (but with a safey check for
null in case the session attribute doesn't exist whereas the code below
would throw an exception on the JSP page if the session attribute wasn't
set, which is always on the firt try):

<logic:notPresent name="alreadySubmitted" scope="session" >
        <meta http-equiv="refresh" content="0">
        <bean:define id="alreadySubmitted" scope="session" value="yep"/>
</logic:notPresent>
<logic:present name="alreadySubmitted" scope="session">
        <logic:notEqual name="alreadySubmitted" value="yup">
                <meta http-equiv="refresh" content="0">
                <bean:define id="alreadySubmitted" scope="session"
value="yep"/>
        </logic:notEqual>
</logic:present>


The second version using tags is longer but the first version should
suffice.



-----Original Message-----
From: James Childers [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 04, 2003 4:24 PM
To: Struts Users Mailing List
Subject: RE: / /OREF:CPTF3B3C Refresh jsp exactly once


In JSP:

<head>
<% if
(!((String)session.getAttribute("alreadySubmitted")).equalsIgnoreCase("yup")
) { %>
        <meta http-equiv="refresh" content="0">
        <% session.setAttribute("alreadySubmitted", "yup");
} %>
</head>

Crude, but functional.

-= J

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 04, 2003 9:29 AM
> To: [EMAIL PROTECTED]
> Subject: / /OREF:CPTF3B3C Refresh jsp exactly once
> 
> 
> 
> Does anyone know how to refresh a jsp once exactly without user
> intervention?
> I have an applet that load before a table in the same jsp is
> rendered. I need to refresh in order to display the table.
> 
> I've trawled but there's no satisfactory solution - I've tried
> devshed's and e-e in addition to the meta tag but with the latter and
> some of the javascript, the page just loops.
> 
> Any ideas?
> 
> Tx
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to