Skip to content

Commit d89f99a

Browse files
committed
working state
1 parent 41a3314 commit d89f99a

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

todolist-web-struts/src/main/java/io/github/benas/todolist/web/action/todo/TodoAction.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ public String doCreate() {
8686
return Action.SUCCESS;
8787
}
8888

89-
public String doUpload(HttpServletRequest request) {
90-
todo.setUserId(getSessionUser().getId());
89+
public String doUpload() {
90+
// todo.setUserId(getSessionUser().getId());
9191
// todoService.create(todo);
9292
return Action.SUCCESS;
9393
}

todolist-web-struts/src/main/resources/struts.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# override default struts properties for dev mode
2+
struts.multipart.parser=jakarta
23
struts.i18n.reload = true
34
struts.devMode = true
45
struts.configuration.xml.reload = true

todolist-web-struts/src/main/resources/struts.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@
4141
<action name="upload.do" class="io.github.benas.todolist.web.action.todo.TodoAction" method="doUpload">
4242
<interceptor-ref name="loginInterceptor"/>
4343
<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>
4846
</action>
4947

5048
<action name="update" class="io.github.benas.todolist.web.action.todo.TodoAction" method="update">

0 commit comments

Comments
 (0)