《Put objects into servlet context(applicationLevel)》的相关内容
相关讨论
gwt spring 完美整合
1.3版本前整合gwt spring,用到了第三方类,如cglib扩展类具备gwt servlet的功能,随着1.4版本的发布(发布很久了T_T '),整合有了新的方式,闲话不说,看看整合后的servlet如何调用服务:
java 代码
/**
* GWTRemoteServiceServlet act as a ...
by yongyuan.jiang 2007-11-25 浏览 (3215) 回复 (11) 关键字: gwt spring
奇技淫巧 从bean中获取ServletContex
从servletcontext获取spring的beanfactory再获取bean已经不算技巧了。如何从bean中获取servletcontext呢?
在一个同已有代码集成的项目中,我遇到这个需求,需要访问servletcontext中的一些数据
无意之间发现spring的一个接口org.springframework.web.context.ServletContextAware
任何b ...
by pikachu 2006-04-24 浏览 (2660) 回复 (2) 关键字:
struts 初始化 SessionFactory
HibernatePlugIn for Struts
To configure Hibernate in a Jakarta-Struts application:
1. Create your struts-config.xml file.
2. Add the following configuration for the plugin:
[code:1]<plug-in ...
by zhenglinxi 2003-09-16 浏览 (5417) 回复 (8) 关键字:
相关博客
Spring Open Sourse Research(ContextLoaderListener Parts)
Spring 源码分析(ContextLoaderListener Parts)
ContextLoaderListener .java
java 代码
public class ContextLoaderListener implements ServletContextListener& ...
by hotforcc 2007-08-25 浏览 (907) 回复 (0) 关键字:
Struts2 和 Servlet 耦合
Struts2 和 Servlet 耦合=============================
首选 ActionConext 其次 ServletActionContext 最后是实现接口
http://scorpio-jh.blog.sohu.com/83673437.html
-- 1 -- ### ActionContext ### --- 不 ...
by wanghaoran04141205 2008-09-02 浏览 (31) 回复 (0) 关键字:
Spring 源码分析(Log4jConfigListener Parts)
java 代码
Spring Open Sourse Research(Log4jConfigListener Parts)
/**
* Bootstrap listener for custom Log ...
by hotforcc 2007-08-25 浏览 (926) 回复 (0) 关键字:
相关圈子讨论
Tapestry里怎么实现Jsp里的ServletContext.getRealPath("/")的功能。
Tapestry里怎么实现Jsp里的ServletContext.getRealPath("/")的功能,将web应用的相对路径转为绝对路径。
by zhouzhibo 2007-06-11 浏览 (818) 回复 (3)
在看“struts2使用ServletActionContext时报错”帖子时,引发的问题。
先看:http://struts2.group.javaeye.com/group/topic/6981
准备工作:xwork源码一份(我的版本是2.0.4)。
1.当时我是这么建立这个类的
public class StaticAction extends ActionSupport {
static {
logDi ...
by kyo100900 2008-10-10 浏览 (29) 回复 (2)
jsf+tomcat出错,谁能帮我解决下
下了一个例子,在家里跑的好好的,换了个机子就出问题了。Tomcat版本的一样的,出错如下:
[main] ERROR org.apache.myfaces.webapp.StartupServletContextListener - Error initializing ServletContext
javax.faces.FacesException: java.io.IOExcep ...
by gsccnu 2007-07-09 浏览 (1542) 回复 (6)
求教h2数据库表找不到的问题
我用包里带的sql语句建表和记录出现下列问题,不知道什么原因,求教:
============ org.ecside.easyda.SqlUtil ============
select count(userid) from PUBLIC.USER_INFO
where 1=1
#{IF:USERNAME<>EMPTY} and username like #{USERNA ...
by lysmx 2007-03-06 浏览 (818) 回复 (6)
运行时候报错,看看什么问题?
严重: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myEasyDA' defined in ServletContext resource [/WEB-INF/applica
tionContext.xml ...
by daiing 2007-04-28 浏览 (750) 回复 (8)
相关新闻
Java 6: 通过新的Scripting引擎使用Python
你有没有写过和外部进程或者系统交互的Java代码?你有没有希望使用脚本(Scripting)语言来写?如果你使用Java 6,Java 6提供了一个清晰的解决方案在JVM中跑Scripts,并且允许Java代码使用Script组件。
下面是一个Python的例子,借助jython的帮助,我们通过Java接口调用Python组件,使用简单的factory函数,我们能够类似Java对象一样运行scr ...
by QQbyte 2008-07-15 浏览 (1883) 回复 (11) 关键字: scripting python
EJB 3.0和Spring 2.5 :在Spring中使用EJB 3.0
Meera Subbarao说道:EJB和Spring社区的开发者为什么总是贬低对方呢?我同时使用EJB和Spring,就像所有的开发者一样,我对于两者需要大量的XML设置非常头疼,但是从Java 5发布以来,XML配置已经用annotation来替代了。但是在使用了最新的Spring 2.5和EJB 3.0,我觉得它们是互相补充的关系,而非相互竞争关系。
许多开发者理解,Spring是由Spr ...
by QQbyte 2008-08-29 浏览 (2121) 回复 (6) 关键字: ejb 3.0 spring 2.5
基于Spindle的增强HTTP Spider
构建于lucene之上的可用的Java开源Spider少之又少,spindle长期没有更新且功能不够完善,故而自己参考其源
代码重新编写了一个可扩展的WebCrawler,本着开源共享,共同进步的想法发布于此,期冀得到大家的批评指正,
有任何意见及建议均可Email联系我(kaninebruno@hotmail.com)
以下代码基于lucene-2.3.1,htmlp ...
by brunoplum 2008-04-01 浏览 (1823) 回复 (7) 关键字: spindle

