日期:2014-05-17  浏览次数:20720 次

SSH2求大虾帮忙:
department.jsp取出来的值怎么放到文本框里边 ?

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>


<title>添加部门</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->

</head>

<body>

<s:property value="#request.updateDep.dep_name" />

<s:form action="manage_update" namespace="/department" method="post">
<s:hidden name="department.dep_id" value=" ${updateDep.dep_id }"></s:hidden>
     部门名称:<s:textfield name="department.dep_name"
value=" ${updateDep.dep_name  }"></s:textfield>
<br />
     部门简称:<s:textfield name="department.dep_shortname"
value=" ${updateDep.dep_shortname  }"></s:textfield>
<br />

<input type="submit" value="保存" />
</s:form>

</body>
</html>

报错:
org.apache.jasper.JasperException: /WEB-INF/page/departmentUpdate.jsp (line: 31, column: 2) According to TLD or attribute directive in tag file, attribute value does not accept any expressions
web.xml <web-app version="3.0" 
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_3_0.xsd">

求大虾们帮忙了 怎么解决啊?是不是用其他标签?
SSH2 JSTL?OGNL? HTML

------解决方案--------------------
引用:
department.jsp取出来的值怎么放到文本框里边 ?

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<