Eclipse custom JSP Template

Source: Internet
Author: User

When creating a JSP, I found that many JSP templates are not what I want, slowing down the development efficiency. If I can customize a JSP page, it would be easy to do.

 

Let's talk about my ide. My IDE is eclipse3.4.2.

 

Go to the topic, go to the main directory of eclipse, and search for com. genuitec. eclipse. wizards _ *, only one jar is found. Copy the jar to another directory, use RAR to open the jar, and enter the directory of templates/JSP. Are you familiar with it?

The directory file name is as follows:

-Jspmetatags. VTL

Jsp-html.vtl

-JSP. VTL

Struts-1_2.vtl

Struts-1.1.vtl

-JSF. VTL

Struts-1_2-form.vtl

Struts-1.1-form.vtl

 

When we create a new JSP, we create a default JSP. the VTL will be ready. After the modification is complete, it will be thrown in. As for what high technology you want to do, you can also.

 

You can customize a JSP by yourself. change the VTL name, modify the content, and put it in the JSP. VTL is the same directory, so that you can see your custom JSP options when creating a new JSP.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.