<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head> <body>
<%
String name = request.getParameter("textfield");
%>
您填写的内容是:
<br />
昵称:${param.name }
<br />
所在城市:
<br />
使用的开发语言有:
</body>
</html>

解决方案 »

  1.   

    不识别是什么意思?页面会把你写的EL表达式原模原样的输出出来还是你写的EL表达式输出的值为空?
      

  2.   

    哈哈!! 版本不支持,可以试下开启EL表达式语句
    <%@ page isELIgnored="false"%> 
      

  3.   


    什么都不输出的话 大概是你提供的属性与你在页面使用的属性不对而且看了你在你发的帖子中的代码我更坚信了这一点 http://fatkun.com/2010/11/el-expression.html
    我手头就这么一个链接 剩下你自己去搜吧 先明白EL表达式如何用比较好..
      

  4.   

    楼主:把你的<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" 
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
     http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">看看,是不是这个版本的?
      

  5.   

    String name = request.getParameter("textfield");
    你定义的字符串变量叫textfield吗?
    应该是这里错了,楼主再好好检查一下吧,祝你好运哈
      

  6.   

    都不行啊 我的 版本<?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list></web-app>
    是他 然后改成2.4也不对    加上<%@ page isELIgnored="false"%>  这句话也不对  怎么回事啊 
      

  7.   

    首先我确定我得到值了 out.pringln(name) 得到值了啊  然后我的版本
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list></web-app>我也改成2.4了 也加上<%@ page isELIgnored="false"%>  这句话了 还是不行