注册 登录
编程论坛 J2EE论坛

用out.print方法以及文字链接问题

yexin218 发布于 2007-07-28 09:16, 641 次点击
out.print("<li>"+ " <a href='http://localhost:8080/shipu/main.jsp?name='"+rs.getString("mc")+ "'&name='"+region+"' target='mainFrame'> " + 你好 +"</a> </li>");

我想当用户点击“你好”的时候, 链接到 http://localhost:8080/shipu/main.jsp 并提供两个参数 region 和 name.
可是不知道我上面写的错在那里了?总是不正确执行。
谢谢各位帮忙!

2 回复
#2
Gramary2007-07-28 09:38
out.print("<li>"+ " <a href=http://localhost:8080/shipu/main.jsp?name="+rs.getString("mc")+ "&name="+region+" target=mainFrame> " + 你好 +"</a> </li>");

这样应该对了 把''去掉
#3
yexin2182007-07-28 10:04
thanks very much!
Really!
1