File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes while updating records got changed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "while updating records got changed" Watch "while updating records got changed" New topic

while updating records got changed

annu joseph

Joined: Nov 25, 2008
Posts: 16
Hi all,

i have a page called editDeviceSpec. in this page,at the top the devicename is displayed. This page is to update any details of the particular device selected. The problem is: suppose user A wants to edit the information of device1 and he selects the edit specification page of device1. Now at the same time if user B takes the edit specification page of say device2 and update specifications of device2, the user A on clicking update button suddenly gets the edit specification page of device2 instead of device1 in which he was working on. The device name itself gets changed to device 2.
What is the problem. Is it because of scope? In <action > tag all the scopes are mentioned as request
please help
David Newton

Joined: Sep 29, 2008
Posts: 12617

Impossible to help without more information.

If you have two users on two separate machines and one of them is getting the other's data then something is horribly wrong.
annu joseph

Joined: Nov 25, 2008
Posts: 16
Now that issue is fixed . I made the scope in the <action > tag as "session". BUt now iam facing some other problem.
The problem is, if i update the information about device1, on selecting another device2 and taking edit spec section of device2 the data from the device1 is appearing. Since the scope is session do i need to make it null somewhere??
I agree. Here's the link:
subject: while updating records got changed
Similar Threads
How to know the values displayed values changed or not in a jsp for update purpose
Refreshing a page calls previous action
Record Locking in multi-user
Trying to bind inputText fields from an a4j:repeat tag to java code
how to stop image being chached in browser in jsf