哪两个<%%>里面的跑上去了?
解决方案 »
- 求高人解决 java.sql.BatchUpdateException: ORA-00001: 违反唯一约束条件 (SCOTT.DEPT2_PK)
- tomcat文档中的Realms and AAA的准确中文翻译应该是啥?
- 传引用的问题
- webservice 多用户访问问题
- 文件路径的问题(急)
- java做浏览器时怎么解析脚本语言
- 配置完eclipse3+tomcat5+lomboz后,出现了Could not found main class.Program will exit!的错误
- struts 中表单提交之后中文显示问题!
- j2ee有奖问答之一:EJB中的会话EJB与实体EJB的具体区别是什么?
- Jbuilder5安装好了,Weblogic也安装好了,但怎样使它们配置起来,开发EJB呢?(详细一点)答者送分!
- 批萨兄进来接分。问一个问题
- spring中xml如何配置
ShowConditions sc = new ShowConditions();
sc.ShowTitle(request,response);
%>
<%
sc.Show(request,response);
if(response.isCommitted()) return;
%> 这两段代码形成的数据跑到<html>上面去了
楼主说的是这两个<%%>。没接触过哈。。
<%
ShowConditions sc = new ShowConditions();
sc.ShowTitle(request,response);
%>
<tr> <td bgcolor="#FFFFFF">
<table id="tb1" align="center" border="0" cellpadding="2" cellspacing="1" bgcolor="#000000">
<tr bgcolor="#66CCFF"> <td height="25" align="center" class="style4" colspan="4">指定条件 </td>
</tr>
<%
sc.Show(request,response);
if(response.isCommitted()) return;
%>
<tr bgcolor="#FFFFFF"> <td colspan="4">
<input type="submit" class="button" name="submit" value=" 提交 " onClick="return validate_all();"> </td>
</tr>
</table>
<p> </p>
</td> </tr> </table> 这不是在table里面么?并且在resin和weblogic里面没有错误
请把<%%>放到<tr> <td> </td> </tr>里面。
<%
sc.Show(request,response);
if(response.isCommitted()) return;
%>
不明白你在JSP里面return些什么?
<%
ShowConditions sc = new ShowConditions();
sc.ShowTitle(request,response);
%>
<tr> <td bgcolor="#FFFFFF"> 你这个跑到table前面那是当然的了!
sc.ShowTitle
函数返回的就是<tr></tr>之类的table的结构
<tr><td>
<%
ShowConditions sc = new ShowConditions();
sc.ShowTitle(request,response);
%>
</td></tr>
<tr> <td bgcolor="#FFFFFF">