小编Gra*_*ian的帖子

如何将 JSP 转换为 Thymeleaf?

我在使用 Thymeleaf 时遇到问题,我不知道该怎么做。

<!-- chart.jsp-->
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script type="text/javascript">
window.onload = function() {

var dps = [[]];
var chart = new CanvasJS.Chart("chartContainer", {
    animationEnabled: true,
    exportEnabled: true,
    title: {
        text: "Simple Column Chart with Index Labels"
    },
    data: [{
        type: "column", //change type to bar, line, area, pie, etc
        //indexLabel: "{y}", //Shows y value on all Data Points
        indexLabelFontColor: …
Run Code Online (Sandbox Code Playgroud)

java model-view-controller spring jsp thymeleaf

0
推荐指数
1
解决办法
5949
查看次数

标签 统计

java ×1

jsp ×1

model-view-controller ×1

spring ×1

thymeleaf ×1