Hi,
    Update the bean's scope to session and try again.
    <jsp:useBean id="Bean1" class="x.Bean1" scope="session"/>
xgh
----- Original Message -----
From: "Herbert Pfleger" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 27, 2000 8:03 PM
Subject: How to refresh a JSP-Page


> Hi All,
>
> I have a jsp-page with:
>
> <%@ page session="true"  import = "x.*" %>
> <jsp:useBean id="Bean1" class="x.Bean1" scope="page"/>
> ....
> <%= Bean1.getA() %>.
>
> Here A in Bean1 has the value 1.
> After that A in Bean1 changes to 2.
> So I am implementing a Refresh-Button with:
>
> <INPUT name=Refresh  type=button value=Refresh
onClick="javascript:refresh()">
> <script language="javascript">
> function refresh(){  window.location.reload();  }
> </script>
>
> When I press the refresh-button, <%= Bean1.getA() %> should show a 2, but
it
> always
> stays 1.
> I don't know how to manage a real refresh.
> So i hope anybody can tell me how to do this.
> Thanks a lot,
> Herb.
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to