Definition: Generate a correct and concise answer for the question based on the words in the context.
Input: Context : David Geisinger (1790 -- 5 March 1860) was an officer of the United States Navy, who served during the War of 1812, and was later Commodore of the East India Squadron.
Question : Which war did David Geisinger serve in?
Output:
War of 1812