aspose file tools*
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "while updating records got changed" Watch "while updating records got changed" New topic
Author

while updating records got changed

annu joseph
Greenhorn

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
Author
Rancher

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
Greenhorn

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: http://aspose.com/file-tools
 
subject: while updating records got changed