TOMCAT是4.1的,跟这个有关系吗?
谢谢!
谢谢!
解决方案 »
- ssh项目整和 org.springframework.beans.factory.BeanCreationException:
- action="/AdminLogin/" 表单中的这个是什么意思啊?
- 问一个关于上传文件的问题???
- 如何居中
- jpa DB2 主键生成
- 30分求教在servlet中运行某个目录下的.class文件
- jsp不能通过jdbc连接sql2000,sql2000的sp4包已经打过了,jdbc for sql2000驱动也安装了,并把lib下的三个jar都放到了应用程序的WEB-INF/
- tomcat 配置https与http自动切换怎么配
- Tomcat4+JSP+mysql无法显示中文!!!急!急!急!
- 请教
- 如何象数据库中插入数据
- 谁有把oracle(sql2000)的对数据库的连接和操作做到Bean(.java)中了?
a href="b.jsp?v1=333"
b页
a href="tt.jsp?v1=<%=request.getParameter("vi")%>"
这样ls_topic_id=是不变的,因为它也是串啊。
你是不是看错了。??
<form name="form1" method="post" action="">
<table width="111%" border="1" height="49">
<tr bgcolor="#0000FF">
<th width="8%" height="25">
<div align="center"><font color="#FFFFFF">人气</font></div>
</th>
<th width="43%" height="25">
<div align="center"><font color="#FFFFFF">主题</font></div>
</th>
<th width="11%" height="25">
<div align="center"><font color="#FFFFFF">创建人</font></div>
</th>
<th width="9%" height="25">
<div align="center"><font color="#FFFFFF">回复</font></div>
</th>
<th width="15%" height="25">
<div align="center"><font color="#FFFFFF">最后回复时间</font></div>
</th>
<th width="14%" height="25">
<div align="center"><font color="#FFFFFF">回复人</font></div>
</th>
</tr>
<% int i=1;
String ls_topic_id;
String ls_name;
int ls_serial_no;
int li_popular;
ResultSet r_set;
r_set = isvalid.getAllTopic();
if(r_set.wasNull())
{
out.print("no topic!");
return;
}
for(i=1;i<=20;i++)
{
if(r_set.next())
{
li_popular = r_set.getInt("popular");
ls_name = r_set.getString("name");
ls_name = new String(ls_name.getBytes("GB2312"),"ISO-8859-1");
ls_topic_id= r_set.getString("topic_id");
ls_topic_id = new String(ls_topic_id.getBytes("GB2312"),"ISO-8859-1");
ls_serial_no= r_set.getInt("serialno");
}
else
{
li_popular =0 ;
ls_name ="no name" ;
ls_topic_id="no topic";
}
String ls_href = "<A href=topic_detail.jsp?ls_topic_id="+<%=ls_topic_id%>+"&ls_topic_name="+<%=ls_name%>;
String ls_href3= ">"+ls_topic_id+"</A>";
String ls_href4=ls_href+ls_href3;
out.print("<tr>");
out.print("<td>"+li_popular);
out.print("<td>"+"<A href=topic_detail.jsp?ls_topic_id="+<%=ls_topic_id%>+"&ls_topic_name="+<%=ls_name%>+">"+ls_topic_id+"</A>);//这里有问题
out.print("<td>"+ls_name);
out.print("<td>"+"0401");
out.print("<td>"+"0501");
out.print("<td>"+"0601");
out.println("</tr>");
}
%>
</table>
</form>
将“流氓无赖”测试到底
——始于2003年7月
树欲止而风不停,行云流水匆匆去;
树梢蚂蚱凭空望,江边浪花碎巨石; 支持“流金岁月”!!!
——2003年12月24日am^@^