我在做一个添加用户的页面从A页面到B页面,B页面有个返回按钮,返回A页面 之后A页面的数据都没了A页面是以.action结尾的添加按钮是这么写的
<input type="button" value="添加用户" onclick="location='register.jsp'">
返回按钮:<input type="button" value="返回" onclick="location='result.jsp'">A 页面路径 http://localhost:8080/struts2/login.actionB 页面路径 http://localhost:8080/struts2/register.jsp返回以后A 页面的路径变成了 http://localhost:8080/struts2/login.jsp还有一个按钮是“添加”在添加以后怎么返回A再把所有数据显示出来求高人指导啊
<input type="button" value="添加用户" onclick="location='register.jsp'">
返回按钮:<input type="button" value="返回" onclick="location='result.jsp'">A 页面路径 http://localhost:8080/struts2/login.actionB 页面路径 http://localhost:8080/struts2/register.jsp返回以后A 页面的路径变成了 http://localhost:8080/struts2/login.jsp还有一个按钮是“添加”在添加以后怎么返回A再把所有数据显示出来求高人指导啊
能不能说详细点,是不是要用action链 ???