作为 extJs 的新手,我正在尝试配置一个 webapp 来使用它。
justdoit.jsp 如下:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<html>
<head>
<link rel="stylesheet" type="text/css" href="extJs/resources/css/ext-all.css" />
<script src="extJs/adapter/ext/ext-base.js"></script>
<script src="extJs/ext-all.js"></script>
<title>Getting Started with Extjs</title>
<script type="text/javascript">
// Path to the blank image must point to a valid location on your server
Ext.BLANK_IMAGE_URL = 'extJs/resources/images/default/s.gif';
</script>
</head>
<body>
Ext.onReady(function(){
Ext.Msg.alert('Test Extjs', 'Hello World'); }
);
</body>
</html>
战争的爆炸结构是:
justdoit.jsp
extJs/ext-all.js
extJs/adapter
extJs/resources
META-INF
WEB-INF
WEB-INF/web.xml
然而,jsp 是用文字呈现的,而不是任何有意义的 extJs 现象:
Ext.onReady(function(){ Ext.Msg.alert('Test Extjs', 'Hello World'); } );
怎么了?
帮助表示赞赏