Rajiv Putuval

Greenhorn
+ Follow
since Jun 06, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rajiv Putuval

Hi,

Hmm, in my application, I had encountered the page submission whenever I clicked the back button.
So maybe I did not feel that there could be a possibility of the browser not submitting any request.

I am not in a position to analyze how the browser decides whether to submit the page or not.
In this case, it is a browser specific event handling, which is not in the application's control.

Maybe I will have to do a little research on this.
Sorry, I could not be of any help to you at the moment.

Regards,
Rajiv
14 years ago
JSF
Hi,

I am not sure how to go about with JSF, but I had been working on Spring MVC.
Let me explain in generic.

Following will be needed:
1. 2 tokens to identify the current page and the next page in the current JSP.
2. method abc () to be called in all the requests.

Tokens:
------
There will be two hidden variables, currentPage and nextPage in the page.
The currentPage will have a hardcoded value for each page.
The nextPage will take the name of the next page when the event handler is called in javascript.

Session update:
--------------
When the request successfully moves from one page to another, a variable currentPage will be stored in the session with the destination page (nextPage).
This happens before the forward is returned by an action method.

Action Class Update:
-------------------
All the methods of the action class will have to call the super class method abc() which will perform the following:
This will read the currentPage attribute from the request parameter and compare the same with the session variable.
In case, the variables are the same, proceed to perform the action, else redirect to the session invalid page.

Hope this will suffice your requirement.

Rajiv
14 years ago
JSF
I am working in Capgemini India since more than past two years. My experience in this company is very good.

If the company does not give a hike, there must be a reason for the same.

Since the company embraces the rightshore model, onsite opportunities are very less, though you can't say that there are no onsite opportunities.

The annual appraisals have been very satisfactory for me.

Wish you all the best in making a right decision!!!
17 years ago