For JSP the best I have been able to do is use multimode.el to switch to
Java mode when inside <% %> and use HTML mode otherwise.
Here's the relevant bit from my .emacs:
;;jsp/html multi-mode
(autoload 'multi-mode
"multi-mode"
"Allowing multiple major modes in a buffer."
t)
(defun jsp-mode () (interactive)
(multi-mode 1
'html-mode
'("<%" java-mode)
'("%>" html-mode)))
(setq auto-mode-alist
(cons '("\\.jsp$" . jsp-mode)
auto-mode-alist))
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html