List file with underlines in their names 

Solution / Conclusion 

 \lstinputlisting[caption=code/jsp/db\_browsetable.jsp]{code/jsp/db_browsetable.jsp}

Analysis / Reason 

Oh, it is the macro error:

\finclude{jsp/db_browsetable.jsp}

is nok, but

\lstinputlisting{code/jsp/db_browsetable.jsp}

is ok!

\lstinputlisting[caption=code/jsp/db_browsetable.jsp]{code/jsp/db_browsetable.jsp}
! Missing $ inserted.
<inserted text>
                $
l.38 ...wsetable.jsp]{code/jsp/db_browsetable.jsp}

Trying History 

Trying History 

\finclude{jsp/db_browsetable.jsp}
?
! Emergency stop.
<inserted text>
                $
l.45 \finclude{jsp/db_browsetable.jsp}

Trying History 

\finclude{jsp/db\_browsetable.jsp}
! Package Listings Error: File `code/jsp/db\unhbox\voidb@x \kern .06em\vbox {\hrule width.3em}browsetable.jsp' not found.

Trying History 

\usepackage[T1]{fontenc}
! Package Listings Error: File `code/jsp/db\T1\textunderscorebrowsetable.jsp' not found.

Use \finclude{jsp/db_browsetable.jsp} produced same above error.

Trying History 

\finclude{jsp/db{_}browsetable.jsp}
! Package Listings Error: File `code/jsp/db{_}browsetable.jsp' not found.