<a >
<xsl:attribute name="href">
/examples/servlet/delete?id=<xsl:value-of select="position()"/>
</xsl:attribute>
<xsl:attribute name="onclick">delete(<xsl:value-of select="@id"/>)</xsl:attribute>
</a>
<xsl:attribute name="href">
/examples/servlet/delete?id=<xsl:value-of select="position()"/>
</xsl:attribute>
<xsl:attribute name="onclick">delete(<xsl:value-of select="@id"/>)</xsl:attribute>
</a>
servlet中ServletContext context = this.getServletConfig().getServletContext();
String id = context.getInitParameter("id");
然后就直接用吧