IDEA always puts JSP import statements in the first row of a JSP file. This causes problems where the JSP is trying to generate XML as the <?xml version="1.0"?> must be the first character of the file.
Currently IDEA generated import looks like this : <%@ page import="com.atlassian.kb.web.KBUtils"%> <%@ page contentType="text/xml" %><?xml version="1.0"?> which errors for obvious reasons. Is it possible to somehow detect this and end up with this: <%@ page contentType="text/xml" %><?xml version="1.0"?> <%@ page import="com.atlassian.kb.web.KBUtils"%> with the import on the second line of the file? Or better, look for an existing <%@ page %> scriptlet, and add the import attribute into that, so that it ends up like so: <%@ page contentType="text/xml" import="com.atlassian.kb.web.KBUtils" %><?xml version="1.0"?> Make sense? -mike Mike Cannon-Brookes :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Mike Aizatsky > Sent: Tuesday, October 02, 2001 9:33 PM > To: [EMAIL PROTECTED] > Subject: [Eap-list] Overriden method renaming > > > Hi, > > When I'm renaming the method from class A, which is overriden > in class B with unchecked "Preview changes" IDEA silently skips > the method in class B. May be it should ask whether do I want to > rename all methods in descentants? > > --- > Sincerely yours, > Mike Aizatsky > __________________________________________________________________ > _________ > Visit http://www.visto.com. > Find out how companies are linking mobile users to the > enterprise with Visto. > > > _______________________________________________ > Eap-list mailing list > [EMAIL PROTECTED] > http://www.intellij.com/mailman/listinfo/eap-list _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list
