Revize f25c5f14
Přidáno uživatelem Pavel Fidranský před asi 6 roky(ů)
sources/src/main/java/cz/zcu/kiv/offscreen/servlets/api/LoadGraphData.java | ||
---|---|---|
54 | 54 |
* Return json of file which was uploaded and is stored in session. |
55 | 55 |
*/ |
56 | 56 |
private String getDiagramFromSession(HttpServletRequest request) throws IOException { |
57 |
|
|
58 |
String jsonToDisplay = (String)request.getSession().getAttribute("json_graph"); |
|
59 |
request.getSession().removeAttribute("json_graph"); |
|
57 |
String jsonToDisplay = (String) request.getSession().getAttribute("json_graph"); |
|
60 | 58 |
|
61 | 59 |
if (!Strings.isNullOrEmpty(jsonToDisplay)) { |
62 | 60 |
GraphManager graphManager = new GraphJSONDataLoader(jsonToDisplay).LoadData(); |
Také k dispozici: Unified diff
fixed LoadGraphData servlet not to delete JSON from session which caused failure on page reload