Register  |  Login




Advertisement

Start Your Own Q&A Site

Create your own Q&A site easily, allowing you to quickly grow a new community around any subject matter or generate new organic traffic for your existing website.

Question

Status: Open Points: 125 Time: 06:13 - Sep 14, 2007  

219129

I want to know whether browser's back button is clicked or not?

In my application i have problem. My application performs in such a way that if user successfully submits the data a email will be generated and will be send to respective user who has submitted the request. After that if the user clicks on the browser's back button the second email will be received by the user this is what we would not except.

Is it possible to get the browser's back status into Servlets so that we can restrict the condition for sending a email?

Let me know incase of any concerns you have.
If possible get me the code as well

Technolgies using:
.htm, Java servelts, java script.

Answer Discussion
Tutorials

 

PeterNZ

Date:: Sep 17, 2007

Time:: 17:31

Sorry I am not a Java guy but maybe you can do the same what we do in .Net. There is a property called IsPostBack which is true if a page is reloaded based on a post back event. If a button is clicked, the page does a post back. if the user hits the back button, the page load is not through a post back. So if you do the email send only On Post back you should avoid sending it twice.

Cheers

Peter

219129

Date:: Sep 17, 2007

Time:: 23:46

Thanks for your response.
But in my application am using the email functionality in doGet() method of the Servlet i can not modify the email sending functionality from doGet() method will be automatically called when page reloads again.

So please suggest me is there any other way to know the back button status i.e. if user clicked on the browser's back button or not by usnig java script or java servlets.

So please suggest me is there a

PeterNZ

Date:: Sep 18, 2007

Time:: 00:29

No sorry, not from the top of my head. I found this webpage: http://www.hunlock.com/blogs/Mastering_T... maybe you find the solution there

Cheers

Peter

219129

Date:: Sep 18, 2007

Time:: 03:00

Thanks for quick response.

I could not get the solution over the link which you have provided to me.

Let me get some more suggesstions on this.

admin

Date:: Mar 04, 2009

Time:: 09:57

The question looks to be abandoned by the user who asked it. If no action is taken within 2 days, a Quomon Moderator will consider closing the question and distributing the points.

The Quomon Team

jessonh

Date:: Dec 27, 2010

Time:: 07:33

Hey, are you bothered with the slow internet connection, here is an easy to solve your problem, to install a PC protector or cleaning, according to my personal experience, Tuneup360 is good choice, and your computer takes only 30 sec to start up if you have it!!

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

Tutorials cannot be submitted until the Answer Discussion is complete.

Submit answers in the Answer Discussion area

Ask a Question

Have a new question? Ask!

You have 100 characters to use



Top Experts

View More

Rank

Expert

Points

1.

nidhi

10279

2.

oracleofDelphi

6493

3.

rcastagna

5596

4.

LAGM

4848

5.

PeterNZ

3487

6.

gonzalo

2840

7.

Mason

2770

8.

jgivoni

2303

9.

xarcus

1820

10.

Anpanman

917

Become an Expert

Register today to share your knowledge with the community and be recognized and rewarded for your contributions.


Register Here




"Psst, Quomon is a great site. Pass it on."     Tell a Friend  |   Link To Us  |   Save to Delicious  |   Digg! Digg it



Language Options

English:

www.quomon.com

Español:

www.quomon.es