0

How to write automatically auther name created date when I create jsp in Eclipse is there any shortcut or template available that work for me

in java file we annotation @author to write auther's name (i.e)

/**
    @auther xyz
*/ 

but what are the possible ways to write it in JSP

I want to write below option

Author:xyz
Document:xyzd.jsp
Created Date:22th sep 2013
Cœur
  • 37,241
  • 25
  • 195
  • 267
Nirav Prajapati
  • 2,987
  • 27
  • 32

2 Answers2

1

You can change the jsp file formats under ,

Window -> Preferences 

or still easier is to ,

enter image description here

to edit on clicking the jsp templates link while creating the new jsp

Santhosh
  • 8,181
  • 4
  • 29
  • 56
1

In eclipse you will have to create a new jsp template and create a new template.For new template:Click on Windows>Preferences>Web>JSP Files>Editor>Templates.

Create a New Template and then specify your pattern there.As per convention:

<%-- - Author(s): - Date: - Copyright Notice: - @(#) - Description: --%>

Navish Sharma
  • 233
  • 2
  • 11