可以将具有EL 2.2功能的JSF Web应用程序部署到共享的Tomcat 6托管环境中吗? [英] Can EL 2.2 capable JSF web applications be deployed to shared Tomcat 6 hosting environment?

查看:92
本文介绍了可以将具有EL 2.2功能的JSF Web应用程序部署到共享的Tomcat 6托管环境中吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道,通过将Tomcat 6目录的lib文件夹中的el-api.jar替换为支持EL 2.2的版本,可以在Tomcat 6中利用EL 2.2的强大功能.请参阅以下问题:

I know that by replacing the el-api.jar in the lib folder of the Tomcat 6 directory with an EL 2.2 capable version that it is possible to utilize the power of EL 2.2 in Tomcat 6. See the following questions:

  • http://code2inspire.wordpress.com/2010/11/05/how-to-enable-el-2-2-on-tomcat-6/
  • http://www.javaplex.com/blog/for-jsf-2-how-to-enable-el-2-2-on-tomcat-6/

我有一个需要为面向公众的网站部署的应用程序,并且我希望尽可能便宜地进行开发.对我而言,最好的选择是与Shared Tomcat托管提供商合作,在该提供商中您与其他人共享Tomcat实例,但是我与之交谈的那个实例不提供Tomcat 7环境.

I have an app that I need to deploy for a public facing site and I want to do it as cheaply as possible. The best bargain for me would be to go with a Shared Tomcat hosting provider where you share a Tomcat instance with others, however the one I talked to doesn't offer Tomcat 7 environments.

设置VPS来执行此操作对我来说会更加昂贵和耗时,所以我想知道是否仍然有我可以在Tomcat 6上绕过它而无法修改lib目录?

It would be a lot more expensive and time consuming for me to setup a VPS to do this, so I was wondering if there is anyway I can swing this on Tomcat 6 without the ability to modify the lib directory?

推荐答案

请改用JBoss EL.它基于EL 2.1,但提供了相同的增强功能(如EL 2.2中所述).删除

Use JBoss EL instead. It is EL 2.1 based, but offers the same enhancements as done in EL 2.2. Drop jboss-el.jar in /WEB-INF/lib and add the following to the web.xml:

<context-param>     
    <param-name>com.sun.faces.expressionFactory</param-name>
    <param-value>org.jboss.el.ExpressionFactoryImpl</param-value>   
</context-param>

无需修改Tomcat的/lib.您只需要确保使用的是Facelets而不是JSP.

No need to modify Tomcat's /lib. You only need to ensure that you're using Facelets instead of JSP.

这篇关于可以将具有EL 2.2功能的JSF Web应用程序部署到共享的Tomcat 6托管环境中吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆