本文介绍了它是更好地出货,而不是自己的JSP使用JSP的类文件WAR,?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我们可以做的Tomcat /贾斯珀编译使用JSP一个Ant任务,岂不更好出货与pre-编译的JSP类文件,而不是自己的JSP吗?WAR

If we can make Tomcat/Jasper compile JSPs using an ANT task, wouldn't it better to ship the WAR with pre-compiled JSPs as class files, rather than JSPs themselves?

这样的话,我们不使用Weblogic / Webshere JSP编译问题束缚。所有这一切,他们将得到的是类文件。

That way, we are not tied down with Weblogic/Webshere JSP compilation issues. All that they would get are 'class' files.

我认为这将需要的JSP的servlet将不得不以某种方式关闭。和Spring / Struts的servlet将要启用的处理的JSP的推广。

I think this would need that the "jsp" servlet would have to be turned off somehow. And the Spring/Struts Servlet will have to enabled to handle 'jsp' extension.

你觉得呢?什么是其他生产环境中更常见的做的事情吗?

What do you think? And what is the more commonly done thing in other production environments?

推荐答案

我一般会说,不,这不是更好。我认为这是太麻烦穿过去,然后就包装耳朵/战争和运费。

I would generally say no it's not better. I think it's too much trouble to go through, then just packaging the ear/war up and shipping.

如果你是JSP的不是在生产编译,并在本地编译或QA,那么你有一个需要解决的以及其他的问题。

If you're JSP's aren't compiling in production, and are compiling locally or in QA then you have other issues that need to be solved as well.

这篇关于它是更好地出货,而不是自己的JSP使用JSP的类文件WAR,?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 12:21