Dear jsp expert, I would like to continue this discussion but with abit lower issue since I'm a JSP beginner. I use Tomcat 4.1 and J2SDK 1.4.2
I made 3 basic pages: 1. login page where user can submit his username and pwd 2. validation page to validate username and pwd from database, I set the session attribute here 3. index page where is the main page, I tried to get the session attribute here When user has been validated at the validation page, I then forward it to index page. But I always got this at the index page: "org.apache.jasper.JasperException: Error: Attempt to clear a buffer that's already been flushed" No matter what method I use to set and get the session attribute, that error always appear. I believe there must be a solution for this as it is a very common practise. Any suggestion maybe? Thank you in advance.. Regards, Pius -----Original Message----- From: vtr [mailto:[EMAIL PROTECTED] Sent: Friday, December 26, 2003 4:39 PM Subject: Re: JSP issue That is because that page is not reloading and the html has already been created. It can be countered by adding a refresh whenever the page returns due to the back button. What i mean to say is Check if the page is opened by back button , if it is so then refresh the page then all the variables get resend .. and you can check if it is null. regards V.T.R.Ravi Kumar, Engg.(CCX), BHEL Phone Office +91 1334285260 Mobile +91 1353114861 Woolsey-Swanson Rule: People would rather live with a problem they cannot solve rather than accept a solution they cannot understand. ----- Original Message ----- From: "Mikil" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 26, 2003 12:03 PM Subject: Re: JSP issue > Thanks for the reply. > > I have already tried that, but it doesn't work when you click on the back button of the browser, though the value is null. > > Any other suggestions welcomed. > > Rgds > > Mikil > > > ----- Original Message ----- > From: "vtr" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, December 26, 2003 2:02 PM > Subject: Re: JSP issue > > > > The simple solution would be > > Check the variable for null and redirect it to someother page if it is > > null.... > > or just give a message > > > > > > V.T.R.Ravi Kumar, Engg.(CCX), BHEL Phone Office +91 1334285260 Mobile +91 > > 1353114861 > > ----- Original Message ----- > > From: "Mikil" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Monday, December 22, 2003 5:49 PM > > Subject: JSP issue > > > > > > > Hello everyone, > > > > > > I have a scenario which is very common but don't know the solution and > > thats where I need some help. > > > > > > Scenario: > > > > > > After signing out from a web application the cookies are killed and > > sessions invalidated. But when I click on the back arrow key of the browser, > > the page with the user name appears though infact the value is null. > > > > > > Solution: > > > > > > I am looking for the solution that when I click on the back arrow of the > > browser, it should not allow what I mentioned above but instead should > > direct to a new page or home page. > > > > > > Await for your replies. > > > > > > Thank you in advance. > > > > > > Rgds > > > > > > Mikil =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com