}
public static final String REQUEST_URI = "REQUEST_URI";
private void setRepostData(Request request) {
Request req = new SimpleRequest();
String actionName = ((HttpRequest) request).getRequestURI();
int index = actionName.lastIndexOf("/");
if (index != -1) actionName = actionName.substring(index + 1);
req.setValue(REQUEST_URI, actionName);
for (Iterator iterator = request.getNames().iterator(); iterator.hasNext();) {
String name = (String) iterator.next();
req.setValue(name, request.getValue(name));
}
request.getSession().setValue(REPOST_DATA, req);
}