apache - In a Struts Action, can I write out a byte array as well as redirect the page? (Struts 1, Java) -
i'm working on project in which, after user submits form, i'd have them download pdf file (filled out information form) redirect them page. know how redirect (returning actionforward
set redirect correct jsp) , know how send pdf (i build using itext library, write byte array out httpservletresponse
's output stream), i'm not sure how both without sort of kludge.
i'm guessing i'll have 1 of 2 using javascript/ajax, wondering if there more elegant way struts.
not servlets.
what end doing in these situations request file timestamp request parameter.
when write response set cookie timestamp. every few moments on client side check see if cookie exists, if does, window.location 'redirect' page.
Comments
Post a Comment