这是我的页面代码:
<td> <a href= "admin/useredit.jsp?username= <%=user.getUsername()%> "> 编辑 </a> </td>
在页面中的显示结果是:
http://localhost:8080/BBSWebModule/admin/useredit.jsp?username=admin
是我需要的结果.
但是我点击这个链接.就会被告知有一下错误.
javax.servlet.ServletException: Cannot create rewrite URL: java.net.MalformedURLException: You must specify exactly one of "forward ", "href ", "page " or "action "
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.admin.useredit_jsp._jspService(useredit_jsp.java:342)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
请大虾帮我瞧瞧.问题在哪.谢谢
------解决方案--------------------
错误是:You must specify exactly one of "forward ", "href ", "page " or "action "
类似这样
<td> <html:link action= "/finduser.do?id=${users.id} "> 修改 </html:link> </td>
<td> <html:link action= "/deleuser.do?id=${users.id} "> 删除 </html:link> </td>
-------------------
J2EE技术交流QQ群:6890959
欢迎大家加入.一起切磋交流..
共同进步..