少了双引号了。你改为:
m2.add("查看今日新贴","url","http://" + "<%=ServerIP%>" )
试试!