<%--带参数的链接--%>
<%@ taglib prefix="s" uri="/struts-tags"%><html>
<head>
<title>Hello World!</title>
</head>
<body>
<h2><s:property value="message" /></h2>
<h3>Languages</h3>
<ul>       
   <li>       
   <s:url id="url" action="HelloWorld">              
      <s:param name="request_locale">en</s:param>       
   </s:url>       
   <s:a href="%{url}">English</s:a>       
   </li>       
   <li>       
      <s:url id="url" action="HelloWorld">              
         <s:param name="request_locale">es</s:param>       
      </s:url>       
      <s:a href="%{url}">Espanol</s:a>       
   </li>
</ul>
</body>
</html>

解决方案 »

  1.   

    我现在碰到的问题是这样的 
    <%@ page language="java" pageEncoding="UTF-8"%>
    <%@ taglib prefix="s" uri="/struts-tags"%>
    <html>
    <frameset id="treeFrame" cols="160,7,*" framespacing="0" frameborder="no" border="0">
      <frame src="<s:url id ="tbDept" action="tbDept" namespace="/admin"><s:param name="targetUrl" value="/accredit/busHouseList.action"></s:param> </s:url>" name="LeftFrame" scrolling="auto" >
      <frame src="../commons/folder.jsp" name="folder" scrolling="No" noresize="noresize"/>
      <frame src="<s:url action="busHouseList" namespace="/accredit"/>" name="MainFrame" scrolling="auto" >
    </frameset>
    <noframes>
    <body>
    </body>
    </noframes>
    </html>
    我这样不能得到targetUrl的值,我的怎么改能过能,谢谢大家。