Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to cutomize the Geoserver GetFeatureInfo Popup. I want to add image against each parcel I click. For this purpose I've read to change the content.ftl file of geoserver. But I found that file in wms.jar file. So, I extract it and after changing the content.ftl file, when i agin convert into .jar file, Geoserver doesn't work. Is there a solution to it? Any other suggestion to add the image along Featureinfo.

share|improve this question

did you check out GetFeatureInfo Templates here? i think it helps you about your problem.

So, what do you have to do if you want to override the custom templates? Well, it depends on which template you want to override.

header.ftl and footer.ftl are type independent, so if you want to override them you have to place a file named header.ftl or footer.ftl in the templates directory, located in your GeoServer GeoServer Data Directory. On the contrary, content.ftl may be generic, or specific to a feature type.


i hope it helps you...

share|improve this answer
I read it, but as I mentioned in the question, above tutorial said to change the content.ftl file. But that file i found on my geoserver directory as embeded in the wms.jar file. So after unpaking it and changing the content.ftl file, when i again convert the wms file into wms.jar file, geoserver doesn't work. – muzaffar Oct 18 '12 at 7:05
you are supposed to change the content.ftl file in your data directory look for the workspace and datafile names. – iant Oct 18 '12 at 8:58
up vote 2 down vote accepted

By default, the content.ftl file is not placed in the workspace datafile. So, we have to create it in case we want to modify it. Hence, Simply make a new file with type .ftl. And write it according to Free Markers Syntax.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.