jsp precompile

I've been trying to figure out how to get my jsps to precompile with little luck. I can right-click on the files and select "compile" but that only seems to do validation. Is there a way to get the precompiled jsp class files to be placed in the output path of the module?

Thanks,
Jon

6 comments
Comment actions Permalink

Jon Erdman wrote:

I've been trying to figure out how to get my jsps to precompile with little luck. I can right-click on the files and select "compile" but that only seems to do validation. Is there a way to get the precompiled jsp class files to be placed in the output path of the module?

Thanks,
Jon


Nope. The only thing that happens if you have a web module setup, and
the jsps are in a module which is a Child of the web module (i.e. web
module depends on jsp module) it will copy the JSP over to the proper
location on compile.

Would be nice though.

R

0
Comment actions Permalink

Since the validation is a compilation using the Jasper compiler, it
should not be a big problem keeping the generated JSP class files. I
never did this with Tomcat, but I guess it takes the precompiled ones
when they are in the proper location. With Weblogic for example you need
to run their APPC tool or ant task on the final WAR file which compiles
the JSPs and modifies the WAR file to contain the precompiled ones.
Other servers will probably have their own paradigm on how to achieve this.

On the other hand I think in development you don't really need
precompiled JSPs, do you? I think the IDE need not go beyond what is
usually needed in "development mode". When building applications for
production or something, ANT can do this job.

Jon Erdman wrote:

I've been trying to figure out how to get my jsps to precompile with little luck. I can right-click on the files and select "compile" but that only seems to do validation. Is there a way to get the precompiled jsp class files to be placed in the output path of the module?

Thanks,
Jon

0
Comment actions Permalink

I don't really need the precompiled jsps but I like to get all the compiling done at once instead of having to wait when I first try to access the jsp. I currently do use an ant script to take care of this.

On the other hand I think in development you don't
really need
precompiled JSPs, do you? I think the IDE need not go
beyond what is
usually needed in "development mode". When building
applications for
production or something, ANT can do this job.

0
Comment actions Permalink

Jon Erdman wrote:

I don't really need the precompiled jsps but I like to get all the compiling done at once instead of having to wait when I first try to access the jsp. I currently do use an ant script to take care of this.

>>On the other hand I think in development you don't
>>really need
>>precompiled JSPs, do you? I think the IDE need not go
>>beyond what is
>>usually needed in "development mode". When building
>>applications for
>>production or something, ANT can do this job.



Personally, I could use it so I can use the IDE for final deployment.
After all they do create a war file now, why not compile the whole
enchilada and let'er rip?

I don't need precompile during development no, JSP Validation is enough
for me, though it's still a work in progress in the current build.

R

0
Comment actions Permalink

The precompile feature would at least be server dependend. I think I saw
"use APPC" or something with the weblogic integration (might as well be
for EJB only, don't remember exactly at the moment), so this might be
there at least for weblogic already.

Robert S. Sfeir wrote:

Jon Erdman wrote:

>> I don't really need the precompiled jsps but I like to get all the
>> compiling done at once instead of having to wait when I first try to
>> access the jsp. I currently do use an ant script to take care of this.
>>
>>
>>> On the other hand I think in development you don't
>>> really need precompiled JSPs, do you? I think the IDE need not go
>>> beyond what is usually needed in "development mode". When building
>>> applications for production or something, ANT can do this job.
>>
>>
>>


Personally, I could use it so I can use the IDE for final deployment.
After all they do create a war file now, why not compile the whole
enchilada and let'er rip?

I don't need precompile during development no, JSP Validation is enough
for me, though it's still a work in progress in the current build.

R

0
Comment actions Permalink

No I've seen this APPC message even working with Tomcat 5. It's there
when it copies all the files to the appropriate locations in the
exploded dir.

It might be that they're working on it, but it's not done yet. There
are lots of things changing still in J2EE, it's kind of fun to watch
actually.

R

Michael Descher wrote:

The precompile feature would at least be server dependend. I think I saw
"use APPC" or something with the weblogic integration (might as well be
for EJB only, don't remember exactly at the moment), so this might be
there at least for weblogic already.

Robert S. Sfeir wrote:

>> Jon Erdman wrote:
>>
>>> I don't really need the precompiled jsps but I like to get all the
>>> compiling done at once instead of having to wait when I first try to
>>> access the jsp. I currently do use an ant script to take care of this.
>>>
>>>
>>>> On the other hand I think in development you don't
>>>> really need precompiled JSPs, do you? I think the IDE need not go
>>>> beyond what is usually needed in "development mode". When building
>>>> applications for production or something, ANT can do this job.
>>>
>>>
>>>
>>>
>>
>> Personally, I could use it so I can use the IDE for final deployment.
>> After all they do create a war file now, why not compile the whole
>> enchilada and let'er rip?
>>
>> I don't need precompile during development no, JSP Validation is
>> enough for me, though it's still a work in progress in the current build.
>>
>> R

0

Please sign in to leave a comment.