If you've found yourself frequently converting jsp's to servlets, as I have, are using vim (with embedded perl), and want something that'll help you convert most of the file, with less typing, to a jsp, this can be useful. Any code sections, or references to variables , like <%=foo%>, you'll need to handle manually. The following, of course, goes in your vimrc.
Update: Now it handles jsp directives of type <%=variablename%>
map <F9> :, perld s/\"/\\"/g<CR>:, perld s/(.*)/out.println("\1");/<CR +> :, perld s/<%=([^%]+)%>/\" + \1 + \"/g<CR> :, perld s/(<%)(.*)/\1\2 + \/\/ Revisit this later/; <CR> map! <F9> <ESC>:, perld s/\"/\\"/g<CR>:, perld s/(.*)/out.println("\1" +);/<CR> :, perld s/<%=([^%]+)%>/\" + \1 + \"/g<CR> :, perld s/(<%)(.* +)/\1\2 \/\/ Revisit this later/; <CR>