questions on JSP compile feature

I have two questions about the new JSP compile feature, which is great
(as soon as I get it working) I guess.

1. When compiling JSPs, the compiler always tells me that my TLD file
is not found. How is the compiler supposed to find the TLD file? I
have set up a web application right from the deployed directory of
Tomcat, i.e. the root set to the deployed folder. Since the web
application works, I know all files (e.g, the web.xml) are in the
right place.

2. I didn't find a way to compile all JSPs in a directory or even
better all in a web application with a single mouse click. Is this
possible somehow or is the feature restricted to compiling a single
page at a time?

Michael

5 comments
Comment actions Permalink

Hi Michael,

1. When compiling JSPs, the compiler always tells me that my TLD file
is not found. How is the compiler supposed to find the TLD file? I


Could you please send meth the error message? Do you have j2ee.jar file in
IDEA's classpath (not your application, but IDEA's classpath in particular)?

2. I didn't find a way to compile all JSPs in a directory or even


Just right click (or ctrl-shift-F9) on a directory and choose "compile". All
JSP files in this directory (recursively), will be validated as part of the
compilation process.

better all in a web application with a single mouse click.


We'll provide such functionality.

--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"


"Michael Descher" <michael.descher@gmx.de> wrote in message
news:te0cnukv88ac7985gho4ghoc081hv3e42o@4ax.com...

I have two questions about the new JSP compile feature, which is great
(as soon as I get it working) I guess.

>

1. When compiling JSPs, the compiler always tells me that my TLD file
is not found. How is the compiler supposed to find the TLD file? I
have set up a web application right from the deployed directory of
Tomcat, i.e. the root set to the deployed folder. Since the web
application works, I know all files (e.g, the web.xml) are in the
right place.

>

2. I didn't find a way to compile all JSPs in a directory or even
better all in a web application with a single mouse click. Is this
possible somehow or is the feature restricted to compiling a single
page at a time?

>

Michael

>


0
Comment actions Permalink

Hi Eugene,

>> 1. When compiling JSPs, the compiler always tells me that my TLD file
>> is not found. How is the compiler supposed to find the TLD file? I
>
>Could you please send meth the error message? Do you have j2ee.jar file in
>IDEA's classpath (not your application, but IDEA's classpath in particular)?

I do not have J2ee.JAR in IDEA's classpath. The message from the
compiler is:
Error: File "/MyTags" not found.

The JSP contains:
The web.xml contains: /MyTags /WEB-INF/lib/mytags.jar And the mytags.jar contains META-INF/taglib.tld file. This works without any problems when deploying into Tomcat or Orion server for example. >> 2. I didn't find a way to compile all JSPs in a directory or even > >Just right click (or ctrl-shift-F9) on a directory and choose "compile". All >JSP files in this directory (recursively), will be validated as part of the >]]>compilation process.

I guess I found the solution. I did not add the web folder to my
source paths, so "compile" was grayed out on the directories. Adding
the folder to the source paths helped. But it did not fix the above
problem.

Michael

0
Comment actions Permalink

Hi Michael,

Have you configured a WebApp in "File | ProjectProperties | Web" (you did
not mention this in your previous posts)?
All JSPs that are under the root directory, specified for the WebApp are
considered belonging to this WEbApp and compiled against its root directory.
And as soon as compiler takes sources belonging to the project for the
compilation, your JSPs should be added to the sourcespath.

--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"

"Michael Descher" <michael.descher@gmx.de> wrote in message
news:10rsnukrn8gilifj8j2nobvt52sqbs67mb@4ax.com...

>>Just right click (or ctrl-shift-F9) on a directory and choose "compile".

All

>>JSP files in this directory (recursively), will be validated as part of

the

>>compilation process.
>
>I guess I found the solution. I did not add the web folder to my
>source paths, so "compile" was grayed out on the directories. Adding
>the folder to the source paths helped. But it did not fix the above
>problem.

>

I have thought about this again. Is it really supposed to work this
way? I mean that you have to add web directories as source paths? What
is the web configuration option to have the JSPs validated during
build for? It does not do anything as long as I do not add the web
directory to the source paths. In case I do this, at least my web.xml
gets copied to the output path assigned to this source path. I did not
check if that happens to images as well, but I suppose so.

>

Michael

>


0
Comment actions Permalink

Hi Eugene,

yes, I have configured a web application with some name and the root
folder of my web application. I also checked the box "validate on
compile", but my JSPs do not get compiled (using build #644). They
only get compiled when I also add the web root to the normal source
paths which I guess (from your reply) is not how it is supposed to be.

Michael

On Wed, 11 Sep 2002 13:06:05 +0400, "Eugene Zhuravlev"
<jeka@intellij.com> wrote:

>Hi Michael,
>
>Have you configured a WebApp in "File | ProjectProperties | Web" (you did
>not mention this in your previous posts)?
>All JSPs that are under the root directory, specified for the WebApp are
>considered belonging to this WEbApp and compiled against its root directory.
>And as soon as compiler takes sources belonging to the project for the
>compilation, your JSPs should be added to the sourcespath.

0

Please sign in to leave a comment.