带弹簧的HTML5画布(HTML5 canvas with spring)
我想创建一个以图形方式显示一些数据的Web应用程序。 HTML5画布似乎是完美的。 但我想使用Spring MVC,从而使用JSP。 那会有用吗? 你能在JSP页面中放一个HTML5画布吗? 有没有人有这方面的经验:有什么问题?
编辑:特别是,我想到HTML5不是XHTML,但JSP似乎需要XHTML 。
I want to create a web application that presents some data graphically. The HTML5 canvas seems perfect for that. But I want to use Spring MVC, and thus JSP. Would that work? Can you put an HTML5 canvas in a JSP page? Does anyone have any experience of this: what are the gotchas?
Edit: In particular, I have in mind that HTML5 is not XHTML, yet JSP seems to require XHTML.
原文:https://stackoverflow.com/questions/11782046
最满意答案
replace和substring语法仅适用于不适用于参数的变量。
但您可以简单地将参数复制到变量中,然后使用子字符串语法。
setlocal EnableDelayedExpansion FOR /D %%d IN (c:\windows\*) DO ( set "var=%%d" echo !var:~-7! )
这里需要延迟扩展,因为正常的%var%会在解析完整块时扩展,而不是在执行时扩展。
或者您可以使用
call
技术,但这非常慢并且有许多副作用。FOR /D %%d IN (c:\windows\*) DO ( set "var=%%d" call echo %%var:~-7%% )
The replace and substring syntax only works for variables not for parameters.
But you can simply copy the parameter into a variable and then use the substring syntax.
setlocal EnableDelayedExpansion FOR /D %%d IN (c:\windows\*) DO ( set "var=%%d" echo !var:~-7! )
You need here the delayed expansion, as a normal %var% would be expanded while parsing the complete block, not at execution time.
Or you could use the
call
technic, but this is very slow and have many side effects.FOR /D %%d IN (c:\windows\*) DO ( set "var=%%d" call echo %%var:~-7%% )
相关问答
更多-
xp下如何在cmd里启动mysql服务?[2022-05-29]
net start mysql(或者是其他服务名) -
好吧,这花了一些,但我想我已经明白了。 尝试这个: SET UNDEFINED 2>Nul | Findstr/I "." IF ERRORLEVEL 1 ECHO Not Defined. 这适用于所有情况AFAIK,并不依赖任何命令扩展功能。 OK, this took a bit, but I think I've figured it out. Try this: SET UNDEFINED 2>Nul | Findstr/I "." IF ERRORLEVEL 1 ECHO Not Defi ...
-
我做了一些/许多实验,这似乎是主要的结果。 为了更好地了解批次如何工作,以及为什么有时候逃避工作和其他时间似乎失败了。 我通过许多实验工作,我建立测试,以便我可以确定离散阶段的顺序。 存在多个要检查的领域。 我得到了 BatchLineParser - 批处理文件内的解析器,用于线或块 CmdLineParser - 像BatchLineParser一样,但直接在命令提示符下工作不同 LabelParser - call / goto和标签的工作原理 CommandBlockCaching - 括号和缓存的 ...
-
你需要在python 3.x中使用类似print("hello")东西 print已转换为python 3.x中的函数。 读到这个:` 打印是一个功能 Python 3.1.2 (release31-maint, Dec 9 2011, 20:50:50) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> print 3 File "
", li ... -
命令'exec master..xp_cmdshell'不创建文件(command 'exec master..xp_cmdshell' does not creating file)[2023-09-26]
您的SQL Server在哪个帐户下运行? 也许它没有足够的权限。 如果是这样,则可以使用sp_xp_cmdshell_proxy_account。 但是,我相信您正试图在您的计算机上找到该文件而不是服务器。 而你正在做的是将文件存储到服务器。 尝试在本地SQL Server上执行此操作。 What account is your SQL Server running under? Maybe it doesn't have enough privileges. If this is true, you c ... -
使用百分号(%)作为CMD参数将被解释为变量(Use of percent sign (%) as a CMD parameter is interpreted as a variable)[2023-05-01]
使用双百分号发送百分比文字。 wget.exe "http://example.com/file0%%24.html" Use a double-percent sign to send a percent literal. wget.exe "http://example.com/file0%%24.html" -
使用String.Replace("%","")替换“%”,然后使用Double.TryParse()将字符串转换为double Use String.Replace("%","") to replace the "%" and then Double.TryParse() to convert the string to double
-
将传递给xp_cmdshell的命令参数转义为dtexec(Escaping command parameters passed to xp_cmdshell to dtexec)[2023-06-29]
简而言之,将CMD /S /C "置于CMD /S /C "开头”,并将其置于最后。 在两者之间,您可以拥有任意数量的报价。 这是你如何做到的: declare @cmd varchar(8000) -- Note you can use CMD builtins and output redirection etc with this technique, -- as we are going to pass the whole thing to CMD to execute set @cmd = 'e ... -
是否可以在xp bath(cmd)脚本中自动转义变量?(is it possible to automatically escape variables in xp bath (cmd) scripts?)[2023-02-27]
SET / P将正确接受任何输入,包括未转义的特殊字符。 当需要使用包含特殊字符的变量(可能)时,您只需要使用延迟扩展。 @echo off setlocal enableDelayedExpansion set /p "test=Enter something: " echo test=!test! SET / P语句中的引号不需要允许特殊字符输入。 它们只是在提示结束时启用空格。 SET /P will properly accept any input, including unescaped sp ... -
replace和substring语法仅适用于不适用于参数的变量。 但您可以简单地将参数复制到变量中,然后使用子字符串语法。 setlocal EnableDelayedExpansion FOR /D %%d IN (c:\windows\*) DO ( set "var=%%d" echo !var:~-7! ) 这里需要延迟扩展,因为正常的%var%会在解析完整块时扩展,而不是在执行时扩展。 或者您可以使用call技术,但这非常慢并且有许多副作用。 FOR /D %%d IN (c:\win ...