@@ -1,9 +1,16 @@- A Web page that uses Struts uses a Token which is dynamically generated by the server for every HTTP GET and POST. The problem during playback occurs for the POST where the recorded TOKEN Id is used and fails. To resolve this:
- 1. record the page,
- 2. find the Primary Get/POST URI that precedes the HTTP POST
- 3. click on the yellow icon to view the URL details of this HTTP GET in the right hand pane
- 4. select HTML tree
- 4. right click and search for TOKEN
- 5. select the TOKEN value
- 6. right click and select address, enter a variable name (on playback, the TOKEN value will be saved in this variable)
- 7. modify the POST for TOKEN= to use this variable ie replace the token value in the post statement with this variable
+ A Web page that uses [Struts|http://struts.apache.org] may use [Tokens|http://struts.apache.org/api/org/apache/struts/util/TokenProcessor.html] which are dynamically generated by the server for every HTTP GET and POST. (A ''Token'' is used to ensure that each request is handled once - e.g. "reload" doesn't trigger the same action again).
+
+ A problem during playback occurs for the POST where the recorded TOKEN Id is used and fails. To resolve this:
+
+ # record the page,
+ # find the Primary Get/POST URI that precedes the HTTP POST
+ # click on the yellow icon to view the URL details of this HTTP GET in the right hand pane
+ # select HTML tree
+ # right click and search for TOKEN
+ # select the TOKEN value
+ # right click and select address, enter a variable name (on playback, the TOKEN value will be saved in this variable)
+ # modify the POST for TOKEN= to use this variable ie replace the token value in the post statement with this variable
+
+ ------
+
+ FrequentlyAskedQuestions