开发者

Order of JSP page imports

Does the order of the imports in a JSP page matter? I have a JSP page that worked just fine in JBoss 4, but is not compiling in JBoss 6. These are the imports:

<%@ page import="com.at.enp.SecurityManager,
        com.at.enp.util.webUtil,
        com.at.vb.mod.fa.db.RPData.ResetOption开发者_运维知识库,
        com.at.enp.modules.loyalty.MetricSetting,
        java.util.List,
        com.at.presentation.security.EFRightsGroup,
        com.at.enp.modules.loyalty.BonusPlanHandler,
        com.at.presentation.bean.ef.RewardType,
        java.text.SimpleDateFormat,
        com.at.util.*"%>

The offending import is : com.at.vb.mod.fa.db.RPData.ResetOption ResetOption is a public class inside of RPData. If I move the import down in the import list the page compiles just fine. I have no idea why that is making a difference. Any help would be appreciated.


To my knowledge, the order of import statements in a Java class does not matter, so it shouldn't matter in the JSP too. However, I've seen JVM bugs like 6431987 and 6391197 about import order (the former being the closest to your case). Could you be affected by such a bug?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜