Re: Modify JspServlet config in application web.xml?

2018-01-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Richárd,

On 1/27/18 7:18 AM, Richárd Olivér Legéndi wrote:
> Thanks a lot, Christopher and Mark!
> 
> Wow, lot of knowledge and pointers to move forward. I've debugged a
> bit around both ContextConfig and JspServlet, and it is exactly as
> you described. This saves a hell lot of work for me and helps avoid
> some stressful meetings :D
> 
> Thanks a lot! Also for the reference of the Servlet spec, I think
> it's time to go through it.

It's one of the most readable spec documents I've ever read. Well
worth the read for anyone who will be doing anything web-related with
Java EE.

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlpt/SwACgkQHPApP6U8
pFh8mRAAgvJLHaZmWe6640lbYHiKrkzW8pr9SF3F/JLZI1VsSJGQYJLqSfHeWETs
BCjyKibw/9x/iIq9WbLUA5W1liUMnp0o0kvj7U+zbYrTmqqpcfy8aoFstbfjVrVz
mdrloK0qgtrFjGyx0Z8aWOnuDd5DvNJPDv0GVPia50+zX3xWD63/w7RuqVqeoKOM
GF3q2G1AZ1COagnPMdYf6T/vMFVoS5YnllSowDYPbxEUt8bvqdXjllbDKZhTrgON
CUDaqIsfyCRcw5MpSh0tfkktC0SSL3iVsj0GGU8XNb2akDpu4Cd8k1GLyeLZfqJm
G9WFVU1ckiGlyDcnGOGKQtinMKLmf2EwwlK84pc2q7y7DCzWn18Vq0HiKBRA4sNf
yQJtLHsumhhIyl05Pv1WHnmlJiqUYoD8i9JX8RmVFjV79q2j7jVvBDa9Rpkblgxz
DwTkPkOY77h0JL7+VmjKkTG+NF8Xua9w6Fbq1Hf6P2ufxnm44xA9zB8kpPvVyLcC
dJZ6QTvAfUkw7eA6y2X+ixxZ4RGWlLxSNC/X7aySiMVuS++IhDieAA5TRkbwZC1v
OwayUOWFjtqSAdP50t3xMJwanv2bH55PD6wSoh+vLsPYZyfdMeqj4YCIcPgTHQbD
sGpnZZ3/P6Pz/Yj5V6zAtJrYIg2rUQ0oV2rR8CTH2zdmbzq7FXs=
=S0xs
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: jsp precompile options

2018-01-28 Thread Alex O'Ree
Mark, thanks for the clarification. I don't know why I assumed it was
needed. Awesome!
Juan, I'll give that one a shot, thanks!

On Sun, Jan 28, 2018 at 5:45 AM, Mark Thomas  wrote:

> On 27/01/18 13:35, Alex O'Ree wrote:
> > Using tomcat 8.5...
> >
> > I have a web app that still uses jsp's and i'm looking into a few options
> > to (a) aid development and (b) reduce or eliminate the need for the JDK
> in
> > a production setup and just run a JRE.
>
> Tomcat doesn't need the JDK and hasn't for a good number of years.
> Tomcat includes the Eclipse compiler and uses that to compile JSPs by
> default.
>
> > (a) Making development easier. My project is maven based and I'd like to
> > run some kind of JSP precompile at build time to ensure that all jsp
> files
> > can be compiled (no typos). I've tried a bunch of examples from SO but
> > haven't found anything that functionally works.
>
> If you don't show us a) what you tried and b) what error message you got
> we can't help you and point you in the right direction.
>
> > (b) Along the same lines, if the solution to question a can inject the
> > precompiled jsp files into the WAR, and that is deployed to tomcat, my
> > assumption is that the JDK and thus javac would not be necessary at
> > runtime. Is this an accurate statement or do other elements within tomcat
> > require the JDK? This is assuming that all JSP's deployed to tomcat are
> > precompiled somehow.
>
> The JDK is not necessary to run any currently supported version of Tomcat.
>
> Mark
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: jsp precompile options

2018-01-28 Thread Mark Thomas
On 27/01/18 13:35, Alex O'Ree wrote:
> Using tomcat 8.5...
> 
> I have a web app that still uses jsp's and i'm looking into a few options
> to (a) aid development and (b) reduce or eliminate the need for the JDK in
> a production setup and just run a JRE.

Tomcat doesn't need the JDK and hasn't for a good number of years.
Tomcat includes the Eclipse compiler and uses that to compile JSPs by
default.

> (a) Making development easier. My project is maven based and I'd like to
> run some kind of JSP precompile at build time to ensure that all jsp files
> can be compiled (no typos). I've tried a bunch of examples from SO but
> haven't found anything that functionally works.

If you don't show us a) what you tried and b) what error message you got
we can't help you and point you in the right direction.

> (b) Along the same lines, if the solution to question a can inject the
> precompiled jsp files into the WAR, and that is deployed to tomcat, my
> assumption is that the JDK and thus javac would not be necessary at
> runtime. Is this an accurate statement or do other elements within tomcat
> require the JDK? This is assuming that all JSP's deployed to tomcat are
> precompiled somehow.

The JDK is not necessary to run any currently supported version of Tomcat.

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org