deleting JSP Files?

2003-07-01 Thread Thomas Weller
Hello,

I have a JSP Project I want to deliver on CD. Of course I don't want to
provide all sources, so I decided only to include class-files.

I precompiled all JSP files to class files and then deleted the JSP
files. Unfortunately, this does not seem to work. Tomcat generates a
file not found error. Second, I compiled the JSPs and then overwrite
each of them with a single whitespace character. Even if Tomcat runs on
a write protected medium (with just access to the TEMP directory), it
displays a blank page then. How can that be? I thought that Tomcat would
use the class-files, if they exist.
Any suggestions?

My setting is autoDeploy=false.

Thanks,

Thomas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: deleting JSP Files?

2003-07-01 Thread Edward See \(magicaLogic\)

the way I do it, i place as much java codes as possible (scriplets in jsp)
inside javabeans.

javabeans are distributed as .class files no need for .java files.

in jsp files, minimal scriptlets that are unavoidable.
jsp session variables need java processing too, so those variables are
inside javabeans too.

hope this helps.

best regards,
Edward See , [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
magicaLogic
Software Engineering
Direct line.: (632) 938-0402

Love people, not things. Use things, not people.



-Original Message-
From: Thomas Weller [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 01, 2003 5:25 PM
To: [EMAIL PROTECTED]
Subject: deleting JSP Files?


Hello,

I have a JSP Project I want to deliver on CD. Of course I don't want to
provide all sources, so I decided only to include class-files.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: deleting JSP Files?

2003-07-01 Thread Tim Funk
Have have put the mappings of the class files to your jsp's in your web.xml? 
JSPC should provide a mechanism to give you a snippet of XML to place in 
web.xml. That needs to be there for precompiling to work.

-Tim

Thomas Weller wrote:
Hello,

I have a JSP Project I want to deliver on CD. Of course I don't want to
provide all sources, so I decided only to include class-files.
I precompiled all JSP files to class files and then deleted the JSP
files. Unfortunately, this does not seem to work. Tomcat generates a
file not found error. Second, I compiled the JSPs and then overwrite
each of them with a single whitespace character. Even if Tomcat runs on
a write protected medium (with just access to the TEMP directory), it
displays a blank page then. How can that be? I thought that Tomcat would
use the class-files, if they exist.
Any suggestions?
My setting is autoDeploy=false.

Thanks,

Thomas

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AW: deleting JSP Files?

2003-07-01 Thread Thomas Weller
Hi Tim,

I think you mean the generated_web.xml file generated by Ant. 
Until now, I was unable to compile my Project with Ant, so I don't have
that file. But maybe there is an XML Tag inside to tell Tomcat not to
compile the sources which I could use.
Is there an example file of generated_web.xml? I was unlucky searching
the web for one.

Thomas

-Ursprungliche Nachricht-
Von: Tim Funk [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 1. Juli 2003 12:50
An: Tomcat Users List
Betreff: Re: deleting JSP Files?

Have have put the mappings of the class files to your jsp's in your
web.xml? 
JSPC should provide a mechanism to give you a snippet of XML to place in

web.xml. That needs to be there for precompiling to work.

-Tim

Thomas Weller wrote:
 Hello,
 
 I have a JSP Project I want to deliver on CD. Of course I don't want
to
 provide all sources, so I decided only to include class-files.
 
 I precompiled all JSP files to class files and then deleted the JSP
 files. Unfortunately, this does not seem to work. Tomcat generates a
 file not found error. Second, I compiled the JSPs and then overwrite
 each of them with a single whitespace character. Even if Tomcat runs
on
 a write protected medium (with just access to the TEMP directory), it
 displays a blank page then. How can that be? I thought that Tomcat
would
 use the class-files, if they exist.
 Any suggestions?
 
 My setting is autoDeploy=false.
 
 Thanks,
 
 Thomas
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: deleting JSP Files?

2003-07-01 Thread Tim Funk
Yup (for generated_web.xml file) - I never use precompiled JSP (wish I could 
so my experience is limited, as well as my knowledge).

Tomcat5 example webapp use precompiled jsps.

But the xml snippet generated by the ANT task is essential to using 
precompiled JSP's. That snippet declares each servlet in a servlet 
declaration then maps them to the appropriate JSP file using servlet-mapping.

-Tim

Thomas Weller wrote:
Hi Tim,

I think you mean the generated_web.xml file generated by Ant. 
Until now, I was unable to compile my Project with Ant, so I don't have
that file. But maybe there is an XML Tag inside to tell Tomcat not to
compile the sources which I could use.
Is there an example file of generated_web.xml? I was unlucky searching
the web for one.

Thomas

-Ursprungliche Nachricht-
Von: Tim Funk [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 1. Juli 2003 12:50
An: Tomcat Users List
Betreff: Re: deleting JSP Files?

Have have put the mappings of the class files to your jsp's in your
web.xml? 
JSPC should provide a mechanism to give you a snippet of XML to place in

web.xml. That needs to be there for precompiling to work.

-Tim

Thomas Weller wrote:

Hello,

I have a JSP Project I want to deliver on CD. Of course I don't want
to

provide all sources, so I decided only to include class-files.

I precompiled all JSP files to class files and then deleted the JSP
files. Unfortunately, this does not seem to work. Tomcat generates a
file not found error. Second, I compiled the JSPs and then overwrite
each of them with a single whitespace character. Even if Tomcat runs
on

a write protected medium (with just access to the TEMP directory), it
displays a blank page then. How can that be? I thought that Tomcat
would

use the class-files, if they exist.
Any suggestions?
My setting is autoDeploy=false.

Thanks,

Thomas

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]