As soon as your value changes make a call explicitly to setA i.e
Bean1.setA();

Hope this will change the value in beans and your refresh function will be
able to get the new value.
Just a thought. Let me know if it works

Thanks & Regards
Pradeep
|------------------------+------------------------+------------------------|
|                        |   Herbert Pfleger      |                        |
|                        |   <herbert.pfleger@LZB-|           To:          |
|                        |   BAYERN.BUNDESBANK.DE>|   [EMAIL PROTECTED]|
|                        |   Sent by: A mailing   |   soft.com             |
|                        |   list about Java      |           cc:          |
|                        |   Server Pages         |   (bcc: Pradeep        |
|                        |   specification and    |   Roy/Intentia_AU/Inten|
|                        |   reference            |   tia)                 |
|                        |   <[EMAIL PROTECTED]|           Subject:     |
|                        |   n.com>               |   How to refresh a     |
|                        |                        |   JSP-Page             |
|                        |   27/07/00 13:03 CET   |                        |
|                        |   Please respond to A  |                        |
|                        |   mailing list about   |                        |
|                        |   Java Server Pages    |                        |
|                        |   specification and    |                        |
|                        |   reference            |                        |
|                        |                        |                        |
|------------------------+------------------------+------------------------|







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