首先随便打开一个jsp页,在网页中单击右键选择:preferences
打开后如图所示,找到jsp template选项.

选择new,在弹出的提示框,输入如图所示内容,当然输入你想要的就可以了.我这里是 struts2.

点击ok就可以了. 下一步注意在创建的时候,一定要选择Basic Jsp,如图所示:

在接下来的页面里随便输入jsp的名字,然后next:

选择你想要的模板(其中出现了刚才新添加的模板),点击Finish就ok了. 对于xml...etc其实都是一样的,比如xml,只需要打开一个xml文件,在上面右键找到相应属性,按上述类似步骤配置即可. 这样做可以简化我们的开发,提高效率.