You know, I think it is better, if you use actual url instead of history.go
I mean, let say I added your page to Favorites - than you never know were that go(-1) will bring you.
posted 15 years ago
Here's a precise definition problem: The user is presented with a form. If the form has already been filled by him, he updates it from that page, else he adds/saves the form for the first time. Whatever acion he takes, an Action class of Struts is called, which forwards control on successful updation/addition to a generic application-wide JSP, which displays alerts, or forwards control back to the original page. The generic JSP has been used a slight modification to the core Struts framework. The alert message is passed from the Action class. On successful updation/addition, control has to be forwarded to the class which retreves the record. history.back() (in the generic JSP) works perfectly well on IE 6, tranferring control back to List Action class, and RELOADING the same. The reloading is not working in NN7.2 I have tried using self.location.reload(true), location.href, location.reload - but it doesn't reload the page.
I'm not dead! I feel happy! I'd like to go for a walk! I'll even read a tiny ad: