<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="ProgId" content="Word.Document">
<meta name="Generator" content="Microsoft Word 11">
<meta name="Originator" content="Microsoft Word 11">
<link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml">
<link rel="Edit-Time-Data" href="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_editdata.mso">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="chsdate"></smarttagtype><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:PunctuationKerning/>
<w:DrawingGridVerticalSpacing>7.8 磅</w:DrawingGridVerticalSpacing>
<w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery>
<w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:Compatibility>
<w:SpaceForUL/>
<w:BalanceSingleByteDoubleByteWidth/>
<w:DoNotLeaveBackslashAlone/>
<w:ULTrailSpace/>
<w:DoNotExpandShiftReturn/>
<w:AdjustLineHeightInTable/>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:UseFELayout/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" LatentStyleCount="156">
</w:LatentStyles>
</xml><![endif]--><!--[if !mso]><
classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui></object>
<style>
st1\:*{behavior:url(#ieooui) }
</style>
<![endif]--><style>
<!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
mso-pagination:none;
font-size:10.5pt;
mso-bidi-font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:宋体;
mso-font-kerning:1.0pt;}
/* Page Definitions */
@page
{mso-page-border-surround-header:no;
mso-page-border-surround-footer:no;}
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
mso-header-margin:42.55pt;
mso-footer-margin:49.6pt;
mso-paper-source:0;
layout-grid:15.6pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:普通表格;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
</style>
<![endif]-->
前天晚上下载了ajax的视频教程,打算学习下ajax。于是,下载了能够较好支持ajax的IntelliJ <chsdate year="1899" month="12" day="30" islunardate="False" isrocdate="False" w:st="on">8.0.1</chsdate>,开始写一个Hello world式的代码。
这个项目很简单:用户进入一个表单页面(index.html),提交表单(只包含一个用户名参数)给一个Servlet(ClassicServer.java),然后这个servlet在页面上显示出用户名。
第一次测试:
目录结构和web.xml:
<!--[if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600"
o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f"
stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="_x0000_i1028" type="#_x0000_t75" style='width:414.75pt;
height:164.25pt'>
<v:imagedata src="file:///C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\msohtml1\01\clip_image001.png"
o:title="2——1"/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]-->
图一:index.html
<!--[if gte vml 1]><v:shape id="_x0000_i1029" type="#_x0000_t75"
style='width:219.75pt;height:164.25pt'>
<v:imagedata src="file:///C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\msohtml1\01\clip_image003.png"
o:title="2-2"/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]-->
图二:ClassicServer页面
<!--[if gte vml 1]><v:shape id="_x0000_i1030" type="#_x0000_t75"
style='width:410.25pt;height:258.75pt'>
<v:imagedata src="file:///C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\msohtml1\01\clip_image005.png"
o:title="2-3"/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]-->
第二次测试:
于是乎,我照搬视频教程里的做法,把servelt直接放进默认包中(没有另外新建包),并修改了web.xml的配置,重启tomcat。访问,呵呵,居然成功了。
目录结构和web.xml如下:
<!--[if gte vml 1]><v:shape id="_x0000_i1027" type="#_x0000_t75"
style='width:530.25pt;height:255.75pt'>
<v:imagedata src="file:///C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\msohtml1\01\clip_image007.png"
o:title="1"/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]-->
图一:index.html
<!--[if gte vml 1]><v:shape id="_x0000_i1026" type="#_x0000_t75"
style='width:287.25pt;height:167.25pt'>
<v:imagedata src="file:///C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\msohtml1\01\clip_image009.png"
o:title="1_2"/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]-->
图二:ClassicServer页面
<!--[if gte vml 1]><v:shape id="_x0000_i1025" type="#_x0000_t75"
style='width:312pt;height:130.5pt'>
<v:imagedata src="file:///C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\msohtml1\01\clip_image011.png"
o:title="1——3"/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]-->
小结:莫非IntelliJ不能完美地支持“包下servlet”?别忘了,你是收费的。
补充:
晚上,我继续使用IntelliJ进行ajax的初级学习,再次遇到上述现象,但是与servlet无关:是我编辑一个javascript文件后,保存之并重新部署该项目(为了避免部署一次不成功的问题,我多次点击了tomcat里面的deplyAll按钮),然后访问页面,查看源代码,发现源代码仍然还是部署之前的旧代码。可见,IntelliJ的部署能力是很差的,竟然屡屡部署不成功。囧!
没办法,重启tomcat,呵呵,这次它自动部署成功了。
分享到:
相关推荐
IntelliJ IDEA 使用教程 pdf
IntelliJ IDEA 中文指南
下载后,解压出来,放到lib目录下即可,intellij idea 2017 3.5版本新测可用。
idea intellij的scala插件
最近搞Php,查到与 intelliJ 插件。分享给大家。
史上最简单的 IntelliJ IDEA 教程
IntelliJIDEA汉化包
vscode-intellij-idea-keybindings, vs 代码的IntelliJ IDEA 键绑定端口 用于 Visual Studio 代码的 IntelliJ IDEA 键绑定 vs 代码的IntelliJ IDEA 键绑定端口。 包括 keymaps,WebStorm,PyCharm,PHP Storm等流行...
idea使用教程 IntelliJ IDEA 使用教程 ,IntelliJ IDEA 使用教程
IntelliJ IDEA安装详解配置教程
IntelliJI开发者指南
intellij快捷键.txt 简化输入,快速开发!
resources_cn_IntelliJIDEA_2017.3.1_r2.jar resources_cn_IntelliJIDEA_2017.3.2_r1.jar resources_cn_IntelliJIDEA_2017.3.3_r2.jar resources_cn_IntelliJIDEA_2017.3.4_r1.jar resources_...
intellij-sdk-docs, IntelliJ SDK平台文档 IntelliJ平台SDK文档这是一个 IntelliJ平台SDK文档库的存储库。报告 Bug请告知你在文档和样本中发现的任何内容不一致,过时的材料,外观问题和其他缺陷,提交一个问题到 ...
永久解决 Intellij idea 报错-Error -java 不支持发行版本5的问题.docx
intellij idea 集成tomcat
Intellij 14.0.2菜单汉化包
eventbus3-intellij-plugin搜不到就用这个方法加上就可以用了
IntelliJ IDEA是java编程语言开发的集成环境,不过官方是英文版的,这是一个汉化包,下载后放至IntelliJ IDEA安装目录的lib目录下就行,重新启动程序就是中文了。
intellij_idea配置