Paulo, Does your DAO "userService.saveUser(user);" save the file specifically? Remember, files are uploaded in temporary locations per request so when your code has a RedirectResolution and has not manually saved the file (example: newAttachment.save(File) ) then the file goes away when you invoke a RedirectResolution. Additionally, I think I tried using @Intercepts(LifecycleStage.ResolutionExecution) and I don't remember it getting to that stage when invoking a RedirectResolution. Maybe I was using an older version of Stripes and referencing current documentation...
Regards, David Paulo Hélio Alves wrote: > Sorry for response so late... > > Well, i'm using Stripes 1.4.3, Stripes Security 1.4.2, Java 6. > In JSP, i use something like this: > > ... > <stripes:form action="/users/UserRegister.action"> > <stripes:hidden name="user.id" value="${requestScope.actionBean.user.id}"/> > <stripes:hidden name="user.login" > value="${requestScope.actionBean.user.login}"/> > <stripes:hidden name="user.email" > value="${requestScope.actionBean.user.email}"/> > <stripes:file name="newAttachement" /> > <stripes:text name="user.name" value=""/> > <stripes:text name="user.address" value=""/> > <stripes:submit name="registerUser" style="width:14em;" value="${regUser}"/> > .... > > in the action i have this: > > ... > // this attributes have the getters/setters methods... > private User user; > private FileBean newAttchement; > ... > > @DefaultHandler > @HandlesEvent(value = "registerUser") > public Resolution registerUser() { > log.info("******************** registerUser *****************"); > log.info("----"+user+":"+user.id); > log.info("File Name"+newAttchement.getFileName()); > log.info(user.getId()+" "+user); > userService.saveUser(user); //this made save ou update > return new RedirectResolution(UsersActionBean.class); > } > > @Before(LifecycleStage.BindingAndValidation) > public void fillLookupFields() { > log.info("******************** fillLookupFields *****************"); > userLogged = getUserInWork(); > } > > i use an interceptor before fillLookupFields for doing this: > @Intercepts(LifecycleStage.ResolutionExecution) > public class MyInterceptor implements Interceptor { > public Resolution intercept(ExecutionContext ctx) throws Exception { > HttpServletRequest httpRequest = ctx.getActionBeanContext().getRequest(); > log.info(httpRequest.getUserPrincipal().getName()); > log.info(httpRequest.getRequestURI()); > return ctx.proceed(); > } > } > > this is the configuration of Stripes Security filter in web.xml > ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users