File tree 3 files changed +5
-6
lines changed
todolist-web-struts/src/main
java/io/github/benas/todolist/web/action/todo 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -86,8 +86,8 @@ public String doCreate() {
86
86
return Action .SUCCESS ;
87
87
}
88
88
89
- public String doUpload (HttpServletRequest request ) {
90
- todo .setUserId (getSessionUser ().getId ());
89
+ public String doUpload () {
90
+ // todo.setUserId(getSessionUser().getId());
91
91
// todoService.create(todo);
92
92
return Action .SUCCESS ;
93
93
}
Original file line number Diff line number Diff line change 1
1
# override default struts properties for dev mode
2
+ struts.multipart.parser =jakarta
2
3
struts.i18n.reload = true
3
4
struts.devMode = true
4
5
struts.configuration.xml.reload = true
Original file line number Diff line number Diff line change 41
41
<action name =" upload.do" class =" io.github.benas.todolist.web.action.todo.TodoAction" method =" doUpload" >
42
42
<interceptor-ref name =" loginInterceptor" />
43
43
<interceptor-ref name =" defaultStack" />
44
- <result type =" redirectAction" >
45
- <param name =" actionName" >home</param >
46
- <param name =" namespace" >/user</param >
47
- </result >
44
+ <interceptor-ref name =" fileUpload" />
45
+ <result name =" success" >/WEB-INF/views/todo/create.jsp</result >
48
46
</action >
49
47
50
48
<action name =" update" class =" io.github.benas.todolist.web.action.todo.TodoAction" method =" update" >
You can’t perform that action at this time.
0 commit comments