问题描述
- html文件调用到jsp的时候不显示jsp的内容反而显示jsp里面的代码
- html文件如下:
无标题文档
jsp文件如下:
<%@ page language=""java"" import=""java.util.*"" pageEncoding=""UTF-8""%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+""://""+request.getServerName()+"":""+request.getServerPort()+path+""/"";
%>
<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.01 Transitional//EN"">获取文本:
<%String str=request.getParameter(""boy""); %>
<%=str %>获取按钮:
<%String strButton=request.getParameter(""submit""); %>
<%=strButton %>
时间: 2025-01-02 07:13:54