JiveJdon Community Forums
在线252人   首页   主题表   培训咨询   标签   精华   查搜   注册    登陆 RSS
首页 » 论坛 » 开源项目大家谈
???en_US.forumThreadPrev.name??? 上一主题
  Go back to the topic 返回本主题   Go back to the topic listing返回主题列表
???en_US.forumThreadNext.name??? 下一主题
Go 总共有 2 回复 / 1
 发表新帖子   回复该主题贴
angel_jdon

悄悄话
发表文章: 4
注册时间: 2005年04月07日 10:00
要命了,帮我~~~~~~~~~~~~~~ 2005年04月07日 10:06 到本帖网址 加入本帖到收藏夹 发送到手机 回复该主题
标签列表
用tomcat5.0.27 [jsp:include page=".do"/]问题

a2.jsp
----------------------------------------------------------------------
[%@ page contentType="text/html; charset=gb2312" language="java"%]
[html]
[head]
[title][/title]
[meta http-equiv="Content-Type" content="text/html; charset=gb2312"]
[/head]

[body]
[jsp:include page="../temp.do"/]
a2
[/body]
[/html]

temp.java
----------------------------------------------------------------------
package web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

public class temp extends Action {
public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm,HttpServletRequest request,javax.servlet.http.HttpServletResponse response) throws Exception {
return actionMapping.findForward("success");
}
}

struts-config.xml
-----------------------------------------------------------------------
[action path="/temp" type="web.temp" scope="request" validate="false"]
[forward name="success" path="/include/head.jsp" redirect="false"/]
[/action]

head.jsp
----------------------------------------------------------------------
[%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %]
[html]
[head]
[title][/title]
[meta http-equiv="Content-Type" content="text/html; charset=gb2312"]
[/head]

[body]
head
[/body]
[/html]
========================================================================
运行时报错:
2005-4-7 9:33:57 org.apache.jasper.runtime.PageContextImpl release
警告: Internal error flushing the buffer in release()

页面显示:
head
----
a2不显示,也就是说,在[jsp:include]之后的内容不显示,我怀疑是上面的错误导致,但单运行temp.do又没错,也不报错.
而且resin都能显示出a2,可能是纠错能力强,55555,怎么办呀,错误是什么问题.有什么办法解决...急死我了..
include 调用.do文件就出错....晕
banq

悄悄话
发表文章: 9474
注册时间: 2002年08月03日 17:08
Re: 要命了,帮我~~~~~~~~~~~~~~ 2005年04月16日 13:44 到本帖网址 加入本帖到收藏夹 发送到手机 回复该主题
既然用了Struts,为什么还在Jsp页面中有如下语句?
[%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %]


import="java.sql.*"是笔误吧!
supertrouper

悄悄话
发表文章: 19
注册时间: 2004年12月24日 10:08
Re: 要命了,帮我~~~~~~~~~~~~~~ 2005年04月18日 00:45 到本帖网址 加入本帖到收藏夹 发送到手机 回复该主题
你的action没有配置Formbean
这个主题有 2 回复 / 1Go
???en_US.forumThreadPrev.name??? 上一主题
  Go back to the topic 返回本主题   Go back to the topic listing返回主题列表    返回页首返回页首
???en_US.forumThreadNext.name??? 下一主题
热点TAG: AOP cache 缓存 DDD EJB 集群 设计模式 Hibernate IOC JiveJdon OO RBAC Seam Spring Struts
正在读取,请等待...
google yahoo 新浪ViVi 365Key网摘 天极网摘 CSDN网摘 添加到百度搜藏 POCO网摘 博采网摘
查询本论坛内 回复超过的热门帖子
     回复该主题贴
标题
 
粗体 斜体 下划线 插入图片 插入代码 插入url链接 插入附件
内容
  发贴前查询 标签列表勿重复发表问题

RSS 手机阅读 add to google add to yahoo
解惑之道在J道 ,打造中国最具影响力的的企业软件社区
OpenSource JIVEJDON v3.0 Powered by JdonFramework Code © 2002-08 jdon.com
anti spam