Ниже приведены мои конфигурации:
POM.xml
Код: Выделить всё
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
in.my.site
struts2-starter
1.0-SNAPSHOT
war
struts2-starter
http://maven.apache.org
UTF-8
17
17
jakarta.enterprise
jakarta.enterprise.cdi-api
4.1.0
jakarta.enterprise
jakarta.enterprise.cdi-el-api
4.1.0
com.fasterxml.jackson.dataformat
jackson-dataformat-xml
2.10.1
junit
junit
3.8.1
test
< /code>
[b]struts.xmlКод: Выделить всё
/success.jsp
/error.jsp
< /code>
TutorialActionpackage in.my.site.struts2.actions;
public class TutorialAction {
public String execute() {
System.out.println("In execute method");
return "success";
}
}
< /code>
I am new to Struts and I have spent a lot of time trying to spot the error. Anything else that I should be configuring?
Подробнее здесь: https://stackoverflow.com/questions/793 ... ng-java-17
Мобильная версия