DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2005
    Posts
    17

    resetting variables when using dynamic jsp

    if an error occurs in my jsp page i send the to a different jsp page informing them of the error and a link back to the same page.

    but the jsp doesnt respond to the new information, if they type in the same error.

    it only works if i restart the server. any ideas what is wrong?

  2. #2
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    The servlet/jsp is in the servers cache, you will have to find out how to flush/
    disable this cache for your server. A specific servlet does not by default reload
    when the class file is changed.
    eschew obfuscation

  3. #3
    Join Date
    Jan 2005
    Posts
    17
    yea but if i go from pageA to pageB to pageC and then back to pageB again the information in pageB that was got from pageA will be erased if i 'reflush' the page.

  4. #4
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    It sounds like you need to rethink your user response logic, mabye use cookies to
    recreate old states of information.
    eschew obfuscation

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links