[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[JDEE + MMM-Mode + JSP] Teach JDE about JSP-style imports
From: |
Kai Grossjohann |
Subject: |
[JDEE + MMM-Mode + JSP] Teach JDE about JSP-style imports |
Date: |
4 Sep 2003 04:21:52 -0700 |
Say I have the following *.jsp:
<%@ page import = "java.net.URI" %>
<%
URL foo = new URL("http://www.gnu.org/");
%>
Now this won't work because I'm importing URI and not URL.
Further, even if it was URI, I couldn't hit C-c C-v C-g on it because
JDE mode doesn't know about the import of java.net.URI.
How to teach JDEE about these weird import statements?
My config uses mmm-mode to edit *.jsp files, as follows:
(require 'mmm-mode)
(require 'mmm-sample)
(add-to-list 'auto-mode-alist '("\\.jsp\\'" . html-mode))
(setq mmm-global-mode 'maybe)
(mmm-add-group 'jsp
'((jsp-code
:submode jde-mode
:match-face (("<%!" . mmm-declaration-submode-face)
("<%=" . mmm-output-submode-face)
("<%" . mmm-code-submode-face))
:front "<%[!=]?"
:back "%>"
:insert ((?% jsp-code nil @ "<%" @ " " _ " " @ "%>"
@)
(?! jsp-declaration nil @ "<%!" @ " " _ " "
@ "%>" @)
(?= jsp-expression nil @ "<%=" @ " " _ " "
@ "%>" @))
)
(jsp-directive
:submode text-mode
:face mmm-special-submode-face
:front "<%@"
:back "%>"
:insert ((?@ jsp-directive nil @ "<%@" @ " " _ " " @
"%>" @))
)))
(add-to-list 'mmm-mode-ext-classes-alist '(nil "\\.jsp\\'" jsp-code))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [JDEE + MMM-Mode + JSP] Teach JDE about JSP-style imports,
Kai Grossjohann <=