I am using Eclipse IDE 2022-06 , Java/JDK 1.6, Windows 10 pro x64, Spring 2.5.6 .
I need encoding UTF-8 by default, not ISO-8859-1. I don't want edit many files, many time manually. How to change template when create new JSP file?
I am using Eclipse IDE 2022-06 , Java/JDK 1.6, Windows 10 pro x64, Spring 2.5.6 .
I need encoding UTF-8 by default, not ISO-8859-1. I don't want edit many files, many time manually. How to change template when create new JSP file?
user-jose garcia-2384656
On
If you are working in a Dynamic Web Project in eclipse IDE for web development, then click the "Window" menu tab, then "Preferences", then the Preferences window comes up, then in the navigation column (left), click "Web" > "Editor" > "Templates". Then, click on the the "New" template you want to change and click the "Edit" button. The window that allows you to change the tags comes up. Make the changes, then click OK, and then click "Apply and Close" and it's done.


In the New JSP File dialog click Next
By default, in the JSP templates the variable
${encoding}is used which can be configured in the preferences Web > JSP Files.sample result