I think have to use ajax for save and view image in the form

--- El dom, 29/8/10, Grzegorz Krugły <g...@karko.net> escribió:

De: Grzegorz Krugły <g...@karko.net>
Asunto: Re: [Stripes-users] StreamingResolution images
Para: "Stripes Users List" <stripes-users@lists.sourceforge.net>
Fecha: domingo, 29 de agosto, 2010 16:28

 It won't be that simple, I guess.
After POSTing the form, you'll need to save the file to disk somewhere
(You could also store it as byte[] in the HttpSession, but it will blow
up its size) and use RedirectResolution to go back to your form. On the
form just place <img src="/some-other-stripes-action"> and write another
action that uses StreamingResolution to send previously saved image file
to the browser. You'll have to put your <img> inside <c:if> to test if
it should be displayed or not.

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users



      
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to