问题不在于等于<%=%> jsp文件中的表达式? &我可以在同一文件中使用带有 scriplet 的操作标签吗?

发布于 2024-09-30 17:27:26 字数 897 浏览 2 评论 0原文

<?xml version="1.0" encoding="ISO-8859-1" ?>

<jsp:text>

    <![CDATA[ <?xml version="1.0" encoding="ISO-8859-1" ?> ]]>
</jsp:text>

<jsp:text>
    <![CDATA[ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ]]>
</jsp:text>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>JSP OUTPUT</title>
</head>


<body background="pic_for_try\\Cracked_LCD_Screen_Wallpaper.jpg"
    style="background-attachment: fixed; background-repeat: repeat; background-color: #FF8000">

<jsp:expression>request.getParameter("myname")</jsp:expression> 

</body>
</html>

<?xml version="1.0" encoding="ISO-8859-1" ?>

<jsp:text>

    <![CDATA[ <?xml version="1.0" encoding="ISO-8859-1" ?> ]]>
</jsp:text>

<jsp:text>
    <![CDATA[ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ]]>
</jsp:text>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>JSP OUTPUT</title>
</head>


<body background="pic_for_try\\Cracked_LCD_Screen_Wallpaper.jpg"
    style="background-attachment: fixed; background-repeat: repeat; background-color: #FF8000">

<jsp:expression>request.getParameter("myname")</jsp:expression> 

</body>
</html>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

把回忆走一遍 2024-10-07 17:27:26

尝试添加:

<%@ page isScriptingEnabled="true|false" isELEnabled="true|false"%>

Try adding:

<%@ page isScriptingEnabled="true|false" isELEnabled="true|false"%>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文