How can I make a general template for all jsp files where the whole site design will be, and could import it.

  • Do you work through IDE? - Aslan Kussein
  • Yes, through Intellije Idea - J Mas

2 answers 2

There are several template engines for jsp, probably the most popular:

Tiles

Struts

  • Is it possible to simply store jsp with a design and import it into each jsp is it possible so - J Mas
  • You can simply connect via jsp: include the desired jsp with the design. - Vladislav Pyatkov
  • and will it be right? - J Mas
  • The question needs to be formulated in some other way. Who defines the rules? This will be a valid jsp - Vladislav Pyatkov

Go to the IDEA settings in the search, write the File and Code templates then click on the other button and go to the WEB tab there click on the JSP

enter image description here

  • Is it possible to put it in one file, so that if I changed the design, it changed everywhere, the design of the entire site will be stored there - J Mas