Ravinder Kumar wrote: > hi, > yes i know that, but still i have to do this. please tell me how can i do > this.
Two possibilities: a) code your own web browser that does not have this security restriction and make the users of your application use that browser b) A more realistic idea is to call javascript's history.back() method to send the user to the previous page which should still be populated with the values that the user entered. Depends on the browser and depends on your caching configuration (in the browser as well as the server). Problem is that you need to get the new validation errors loaded. You can do this using ajax, but you need to find a way to fire that ajax script which is not that easy since modern browsers tend to save the current state of all javascripts on a page and just resume them when you use the history.back() function. You can try to detect a resume by continuously polling the system time. In case of a resume you can detect a sudden jump. The problem may be solvable, but it requires hard work and it is probably not worth the effort. Christian provided a simpler more robust solution that caches the file on the server (this method is not perfect either, because for example a user could submit his form containing an error, go fetch a coffee, eat some lunch and make a dozen calls and when he returns to the form to resubmit the form after fixing the errors your application probably decided that the user is not going to come back because so much time passed and forgot about the file, but in most cases that will help you.) Thomas > please > > On Wed, Jun 23, 2010 at 8:09 PM, Levi Hoogenberg > <levihoogenb...@gmail.com>wrote: > >> This is normal behaviour (not related to Stripes) and is the way it is for >> security reasons. >> >> Op 23 jun. 2010 om 16:19 heeft Ravinder Kumar <ravinder....@gmail.com> het >> volgende geschreven: >> >> Hi, >> m very new to stripes. m facing an issue related to file upload. >> 1. i have a web form in which m using stripes's file tag. like >> >> <stripes:file name="newAttachment"/> >> >> 2. i have browsed a file and clicked the save button to save the form content >> >> >> but some error occurs on the page and browsed file path from the >> file component text box get cleared. >> 3. Now i have to again browse the file to uplaod. >> 4. I want to retain that browsed file path in the file component, how can i >> >> >> >> do this. >> 5. By default file tag attribute Disabled is true, i tried to make it false >> and set the file path from the server side. but it is not working and also >> showing the brows file component textbox disabled. >> >> >> >> 6. Please help me, m stuck on it. >> >> please reply me on my mail <ravinder....@gmail.com>ravinder....@gmail.com >> Thanks >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> >> _______________________________________________ >> Stripes-users mailing list >> Stripes-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/stripes-users >> >> >> >> ------------------------------------------------------------------------------ >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> Stripes-users mailing list >> Stripes-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/stripes-users >> >> > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > > > ------------------------------------------------------------------------ > > _______________________________________________ > Stripes-users mailing list > Stripes-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/stripes-users ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users