BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Precompile JSPs

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE
View previous topic :: View next topic  
Author Message
Shahriar
Guest





PostPosted: Thu Apr 29, 2004 10:48 pm    Post subject: Precompile JSPs Reply with quote



Hello,

Is there an option in JBuilder 10 that would precompile a projects JSPs into
its
web module (WAR) directory?

- Thanks, Shahriar


Back to top
Kevin Dean
Guest





PostPosted: Fri Apr 30, 2004 3:19 pm    Post subject: Re: Precompile JSPs Reply with quote



JBuilder will precompile to check for errors but will not add the
precompiled JSP's to the WAR file. If you are deploying to Borland
Enterprise Server 5.2 or greater, you can compile the JSP's prior to
deployment with "iastool -compilejsp".

--
Check out our latest white papers at
http://www.datadevelopment.com/papers/index.html

BladeNET Scores With Borland Enterprise Tools
Team Development with JBuilder and Borland Enterprise Server

Dolphin Data Development Ltd.
http://www.datadevelopment.com/

"Shahriar" <svaghar (AT) adomo (DOT) com> wrote

Quote:
Hello,

Is there an option in JBuilder 10 that would precompile a projects JSPs
into
its
web module (WAR) directory?

- Thanks, Shahriar





Back to top
Shahriar
Guest





PostPosted: Fri Apr 30, 2004 4:40 pm    Post subject: Re: Precompile JSPs Reply with quote



I assume you can invoke an ANT script to precompile your JSPs.
Is that possible?

- Thanks, Shahriar


"Kevin Dean" <NkOdSePaAnM (AT) datadevelopment (DOT) com> wrote

Quote:
JBuilder will precompile to check for errors but will not add the
precompiled JSP's to the WAR file. If you are deploying to Borland
Enterprise Server 5.2 or greater, you can compile the JSP's prior to
deployment with "iastool -compilejsp".

--
Check out our latest white papers at
http://www.datadevelopment.com/papers/index.html

BladeNET Scores With Borland Enterprise Tools
Team Development with JBuilder and Borland Enterprise Server

Dolphin Data Development Ltd.
http://www.datadevelopment.com/

"Shahriar" <svaghar (AT) adomo (DOT) com> wrote in message
news:40918638 (AT) newsgroups (DOT) borland.com...
Hello,

Is there an option in JBuilder 10 that would precompile a projects JSPs
into
its
web module (WAR) directory?

- Thanks, Shahriar







Back to top
Kevin Dean
Guest





PostPosted: Fri Apr 30, 2004 5:58 pm    Post subject: Re: Precompile JSPs Reply with quote

Yes. If you're deploying to BES, create an ANT script to shell out to
IASTOOL and have it run after the WAR file is built. Here are some snippets
from one of mine; I assume you know enough about ANT to figure out where
they go and what parameters you need:

<target name="Compile JSP's" description="Compile JSP's in an EAR or WAR">
<!-- Delete temporary file in case of previous failure. -->
<delete file="compile_jsp.tmp" />

<exec executable="${besHome}/bin/iastool" failonerror="true">
<arg value="-compilejsp" />
<arg value="-src" />
<arg value="${warOrEAR}" />
<arg value="-target" />
<arg value="compile_jsp.tmp" />
<arg value="-package" />
<arg value="${package}" />
<arg value="-classpath" />
<arg value="${classPath}" />
</exec>

<!-- Rename temporary file to source file. -->
<move file="compile_jsp.tmp" tofile="${warOrEAR}" />
</target>

<!-- Compile JSP's in service.war. -->
<antcall target="Compile JSP's">
<param name="warOrEAR" value="mydomain.com/v1/service.war" />
<param name="package" value="com.mydomain.compiled_jsp.service" />
<param name="classPath" value="anotherdomain.com/v1/ddd_jndi.jar" />
</antcall>


--
Check out our latest white papers at
http://www.datadevelopment.com/papers/index.html

BladeNET Scores With Borland Enterprise Tools
Team Development with JBuilder and Borland Enterprise Server

Dolphin Data Development Ltd.
http://www.datadevelopment.com/

"Shahriar" <svaghar (AT) adomo (DOT) com> wrote

Quote:
I assume you can invoke an ANT script to precompile your JSPs.
Is that possible?

- Thanks, Shahriar


"Kevin Dean" <NkOdSePaAnM (AT) datadevelopment (DOT) com> wrote in message
news:40926f1a$1 (AT) newsgroups (DOT) borland.com...
JBuilder will precompile to check for errors but will not add the
precompiled JSP's to the WAR file. If you are deploying to Borland
Enterprise Server 5.2 or greater, you can compile the JSP's prior to
deployment with "iastool -compilejsp".

--
Check out our latest white papers at
http://www.datadevelopment.com/papers/index.html

BladeNET Scores With Borland Enterprise Tools
Team Development with JBuilder and Borland Enterprise Server

Dolphin Data Development Ltd.
http://www.datadevelopment.com/

"Shahriar" <svaghar (AT) adomo (DOT) com> wrote in message
news:40918638 (AT) newsgroups (DOT) borland.com...
Hello,

Is there an option in JBuilder 10 that would precompile a projects
JSPs
into
its
web module (WAR) directory?

- Thanks, Shahriar









Back to top
Shahriar
Guest





PostPosted: Fri Apr 30, 2004 6:45 pm    Post subject: Re: Precompile JSPs Reply with quote

Thanks for your help. I'll be deploying to tomcat. So I am planning to
follow the
ant instructions at:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html
I just have to find how to append the ant build to my jbuilder "Rebuild".

- Shahriar

"Kevin Dean" <NkOdSePaAnM (AT) datadevelopment (DOT) com> wrote

Quote:
Yes. If you're deploying to BES, create an ANT script to shell out to
IASTOOL and have it run after the WAR file is built. Here are some
snippets
from one of mine; I assume you know enough about ANT to figure out where
they go and what parameters you need:

target name="Compile JSP's" description="Compile JSP's in an EAR or
WAR"
!-- Delete temporary file in case of previous failure. --
delete file="compile_jsp.tmp" /

exec executable="${besHome}/bin/iastool" failonerror="true"
arg value="-compilejsp" /
arg value="-src" /
arg value="${warOrEAR}" /
arg value="-target" /
arg value="compile_jsp.tmp" /
arg value="-package" /
arg value="${package}" /
arg value="-classpath" /
arg value="${classPath}" /
/exec

!-- Rename temporary file to source file. --
move file="compile_jsp.tmp" tofile="${warOrEAR}" /
/target

!-- Compile JSP's in service.war. --
antcall target="Compile JSP's"
param name="warOrEAR" value="mydomain.com/v1/service.war" /
param name="package" value="com.mydomain.compiled_jsp.service" /
param name="classPath" value="anotherdomain.com/v1/ddd_jndi.jar" /
/antcall


--
Check out our latest white papers at
http://www.datadevelopment.com/papers/index.html

BladeNET Scores With Borland Enterprise Tools
Team Development with JBuilder and Borland Enterprise Server

Dolphin Data Development Ltd.
http://www.datadevelopment.com/

"Shahriar" <svaghar (AT) adomo (DOT) com> wrote in message
news:4092816f$1 (AT) newsgroups (DOT) borland.com...
I assume you can invoke an ANT script to precompile your JSPs.
Is that possible?

- Thanks, Shahriar


"Kevin Dean" <NkOdSePaAnM (AT) datadevelopment (DOT) com> wrote in message
news:40926f1a$1 (AT) newsgroups (DOT) borland.com...
JBuilder will precompile to check for errors but will not add the
precompiled JSP's to the WAR file. If you are deploying to Borland
Enterprise Server 5.2 or greater, you can compile the JSP's prior to
deployment with "iastool -compilejsp".

--
Check out our latest white papers at
http://www.datadevelopment.com/papers/index.html

BladeNET Scores With Borland Enterprise Tools
Team Development with JBuilder and Borland Enterprise Server

Dolphin Data Development Ltd.
http://www.datadevelopment.com/

"Shahriar" <svaghar (AT) adomo (DOT) com> wrote in message
news:40918638 (AT) newsgroups (DOT) borland.com...
Hello,

Is there an option in JBuilder 10 that would precompile a projects
JSPs
into
its
web module (WAR) directory?

- Thanks, Shahriar











Back to top
Kevin Dean
Guest





PostPosted: Fri Apr 30, 2004 9:18 pm    Post subject: Re: Precompile JSPs Reply with quote

Add the ANT file to your project as per JBuilder's documentation and set the
"Prior targets" property to "WebAppNode". That will ensure that the ANT
file is called after the WAR is built.

--
Check out our latest white papers at
http://www.datadevelopment.com/papers/index.html

BladeNET Scores With Borland Enterprise Tools
Team Development with JBuilder and Borland Enterprise Server

Dolphin Data Development Ltd.
http://www.datadevelopment.com/

"Shahriar" <svaghar (AT) adomo (DOT) com> wrote

Quote:
Thanks for your help. I'll be deploying to tomcat. So I am planning to
follow the
ant instructions at:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html
I just have to find how to append the ant build to my jbuilder "Rebuild".

- Shahriar

"Kevin Dean" <NkOdSePaAnM (AT) datadevelopment (DOT) com> wrote in message
news:40929407 (AT) newsgroups (DOT) borland.com...
Yes. If you're deploying to BES, create an ANT script to shell out to
IASTOOL and have it run after the WAR file is built. Here are some
snippets
from one of mine; I assume you know enough about ANT to figure out where
they go and what parameters you need:

target name="Compile JSP's" description="Compile JSP's in an EAR or
WAR"
!-- Delete temporary file in case of previous failure. --
delete file="compile_jsp.tmp" /

exec executable="${besHome}/bin/iastool" failonerror="true"
arg value="-compilejsp" /
arg value="-src" /
arg value="${warOrEAR}" /
arg value="-target" /
arg value="compile_jsp.tmp" /
arg value="-package" /
arg value="${package}" /
arg value="-classpath" /
arg value="${classPath}" /
/exec

!-- Rename temporary file to source file. --
move file="compile_jsp.tmp" tofile="${warOrEAR}" /
/target

!-- Compile JSP's in service.war. --
antcall target="Compile JSP's"
param name="warOrEAR" value="mydomain.com/v1/service.war" /
param name="package" value="com.mydomain.compiled_jsp.service" /
param name="classPath" value="anotherdomain.com/v1/ddd_jndi.jar" /
/antcall


--
Check out our latest white papers at
http://www.datadevelopment.com/papers/index.html

BladeNET Scores With Borland Enterprise Tools
Team Development with JBuilder and Borland Enterprise Server

Dolphin Data Development Ltd.
http://www.datadevelopment.com/

"Shahriar" <svaghar (AT) adomo (DOT) com> wrote in message
news:4092816f$1 (AT) newsgroups (DOT) borland.com...
I assume you can invoke an ANT script to precompile your JSPs.
Is that possible?

- Thanks, Shahriar


"Kevin Dean" <NkOdSePaAnM (AT) datadevelopment (DOT) com> wrote in message
news:40926f1a$1 (AT) newsgroups (DOT) borland.com...
JBuilder will precompile to check for errors but will not add the
precompiled JSP's to the WAR file. If you are deploying to Borland
Enterprise Server 5.2 or greater, you can compile the JSP's prior to
deployment with "iastool -compilejsp".

--
Check out our latest white papers at
http://www.datadevelopment.com/papers/index.html

BladeNET Scores With Borland Enterprise Tools
Team Development with JBuilder and Borland Enterprise Server

Dolphin Data Development Ltd.
http://www.datadevelopment.com/

"Shahriar" <svaghar (AT) adomo (DOT) com> wrote in message
news:40918638 (AT) newsgroups (DOT) borland.com...
Hello,

Is there an option in JBuilder 10 that would precompile a projects
JSPs
into
its
web module (WAR) directory?

- Thanks, Shahriar













Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.