Skip to content

Commit 7a70e4a

Browse files
committed
转移 solon-view-jsp-jakarta 到 solon-jakarta 仓库
1 parent 6f07a56 commit 7a70e4a

File tree

8 files changed

+13
-10
lines changed

8 files changed

+13
-10
lines changed

solon-jakarta-parent/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<java.version>17</java.version>
2222

2323
<jakarta.logback.version>1.5.18</jakarta.logback.version>
24+
<jakarta.servlet5.version>5.0.0</jakarta.servlet5.version>
2425
<jakarta.servlet.version>6.1.0</jakarta.servlet.version>
2526

2627
<cxf.version>4.1.2</cxf.version>

solon-jakarta-projects/solon-view/solon-view-jsp-jakarta/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<dependency>
3131
<groupId>jakarta.servlet</groupId>
3232
<artifactId>jakarta.servlet-api</artifactId>
33-
<version>${jakarta.servlet.version}</version>
33+
<version>${jakarta.servlet5.version}</version>
3434
<scope>provided</scope>
3535
</dependency>
3636

solon-jakarta-projects/solon-view/solon-view-jsp-jakarta/src/main/java/org/noear/solon/view/jsp/JspRender.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2024 noear.org and authors
2+
* Copyright 2017-2025 noear.org and authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,6 +20,7 @@
2020
import org.noear.solon.core.handle.Context;
2121
import org.noear.solon.core.handle.ModelAndView;
2222
import org.noear.solon.core.handle.Render;
23+
import org.noear.solon.core.util.MimeType;
2324
import org.noear.solon.view.ViewConfig;
2425

2526
public class JspRender implements Render {
@@ -38,7 +39,7 @@ public void render(Object obj, Context ctx) throws Throwable {
3839

3940
public void render_mav(ModelAndView mv, Context ctx) throws Throwable {
4041
if(ctx.contentTypeNew() == null) {
41-
ctx.contentType("text/html;charset=utf-8");
42+
ctx.contentType(MimeType.TEXT_HTML_UTF8_VALUE);
4243
}
4344

4445
if (ViewConfig.isOutputMeta()) {

solon-jakarta-projects/solon-view/solon-view-jsp-jakarta/src/main/java/org/noear/solon/view/jsp/XPluginImp.java renamed to solon-jakarta-projects/solon-view/solon-view-jsp-jakarta/src/main/java/org/noear/solon/view/jsp/integration/ViewJspPlugin.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2024 noear.org and authors
2+
* Copyright 2017-2025 noear.org and authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,14 +13,15 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.noear.solon.view.jsp;
16+
package org.noear.solon.view.jsp.integration;
1717

1818
import org.noear.solon.core.AppContext;
1919
import org.noear.solon.core.Plugin;
2020
import org.noear.solon.core.util.ClassUtil;
2121
import org.noear.solon.core.util.LogUtil;
22+
import org.noear.solon.view.jsp.JspRender;
2223

23-
public class XPluginImp implements Plugin {
24+
public class ViewJspPlugin implements Plugin {
2425

2526
@Override
2627
public void start(AppContext context) {

solon-jakarta-projects/solon-view/solon-view-jsp-jakarta/src/main/java/org/noear/solon/view/jsp/tags/AuthPermissionsTag.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2024 noear.org and authors
2+
* Copyright 2017-2025 noear.org and authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

solon-jakarta-projects/solon-view/solon-view-jsp-jakarta/src/main/java/org/noear/solon/view/jsp/tags/AuthRolesTag.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2024 noear.org and authors
2+
* Copyright 2017-2025 noear.org and authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
solon.plugin=org.noear.solon.view.jsp.XPluginImp
1+
solon.plugin=org.noear.solon.view.jsp.integration.ViewJspPlugin
22
solon.plugin.priority=3

solon-jakarta-projects/solon-web/solon-web-servlet-jakarta/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<dependency>
3030
<groupId>jakarta.servlet</groupId>
3131
<artifactId>jakarta.servlet-api</artifactId>
32-
<version>${jakarta.servlet.version}</version>
32+
<version>${jakarta.servlet5.version}</version>
3333
</dependency>
3434

3535
<dependency>

0 commit comments

Comments
 (0)