<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>upload</title>
</head>
<body>
<% String filename = (String)request.getAttribute("filename");%>
<img src="/WebContent/images/<%=filename%>" />
<input id="filename" value="<%=filename%>">
</body>
</html>
picshow.jsp
frame.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>finduser</title>
</head>
<body>
<div><iframe src="/WebContent/adduser.jsp"></div>
<div><iframe src="upload.jsp"></div>
<div><form action="edit.action" method="post">
<table cellpadding="0" cellspacing="0" norder="0" align="center">
<caption>单个用户信息1</caption>
<tbody>
<tr>
<td><input name=username value=<%=request.getParameter("username")%> >
</td>
</tr>
<tr>
<td>详细信息1
<div>
<s:iterator value="user">
<td>ID1:<input name="user.id" type="hidden" value=<s:property value="id"/>> </td>
<td>用户名1:<input name="user.username" value=<s:property value="username"/>></td>
<td>密码:<input name="user.password" value=<s:property value="password"/>></td>
<s:if test='username=="5"'><input type="radio" name="user.gender" value="男" checked="checked"/>男<input type="radio" name="user.gender" value="女" />女</s:if><s:else>女</s:else>
</s:iterator>
</div>
</td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="提交"></td>
</tr>
</tbody>
</table>
</form></div>
</body>
</html>
upload.action
ActionContext.getContext().put("filename", imageFileName);
struts.xml
<action name="upload" class="com.xuefeng.ssh.action.UploadFileAction">
<result name="input" type="redirect">/listmember.action</result>
<result name="login" type="redirect">/login.jsp</result>
<result name="success" >/picshow.jsp</result>
</action>