oops you forgot to mention another feature -- extract include

I didn't (I hope) just miss this previously -- "Extract Include" for JSP.
Of course it didn't seem to work correctly when I just tried it. It
created the new file to be included. But the include directive it wrote
in the file didn't resolve.

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

4 comments
Comment actions Permalink

As near as I've been able to tell, includes still aren't supported in JSP.

It's a shame too. That's the one JSP feature that I could really use.

Donald

0
Comment actions Permalink

what do you mean? Includes are working great now... at least for me
they are... maybe it's a config issue on your end? They even resolve
dynamic includes in style tags across other jsps too... so...

if you have:

a.jsp which has the header stuff with some includes and @import in the
style tag with <c:url...>, and tag lib imports.

b.jsp includes a.jsp

b.jsp get code completion to css tag libs etc...

What is it that's not covered for you?

R

0
Comment actions Permalink

Sure, it could be a config issue.

... but what config would I have to change?

I have a bunch of .jsp files in my web module that only include other .jsp files in the same directory of the same module. It doesn't seem to me that there should be anything that would need changing.

I'd be glad to try something if someone would please give me a clue as to what I should try.

Donald

0
Comment actions Permalink

what do you mean? Includes are working great now...
at least for me

Pieces of java code from included file, which should go into service() method (<% ... %>) are not visible by main jsp, so you can not put variable declarations there or span your control structures like put "try {" in prolog include and "} catch() " in epilogue include. I know, I know it's a bad stile, but the point is it's still somewhat broken.

0

Please sign in to leave a comment.