tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: TC 9.0.21: ContextListener + Servlet app
Date Mon, 24 Jun 2019 06:16:27 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Tommy,

>> I have some theories that I'm trying to do a PoC for.  I was 
>> debating between have a class to generate the HTML content for 
>> setup but it would make the page design more complicated and 
>> additional development time for something that's mostly like used
>>  once.  That's why I settled on static. As for default 
>> configuration, I plan on having only one listener and one servlet
>>  for all requests of dynamic content and delegate accordingly as 
>> per my theories.  Hence, I needed to change slightly in 
>> configuration.
You can always map your thing to / and then invoke the default servlet
programmatically, like this:

servletContext.getNamedDispatcher("default").forward(request, response);

Then you don't have to. play weird games with everything.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl0QaroACgkQHPApP6U8
pFggbQ/9HKU35eD/1tj+BgiqGLIpTwArp4YFn8JjlIhA3vIDJsyupJMatryzDMUA
dnJ90ooxJ3T9eqcNDfXq6xd3fS0gXDYzBIZEk1nosvTJiEFhH6CuinT7873Utdb4
/4LGVkq+2KIrDlYkzHSq+I4pn+Y4PsKCcXN5BiWnMcgCOYuFQmubVac0oVPGH22i
qirVUkewrMxlk0l4ai5+xAU+EYRNvRMWc6Zj+jqM7ihV8AvmvpXYsnjXcfkC8HUb
1cG5KUWc7jMN6duJ12IWvnfGIJM3MtmNsPsWcYmxq+gRtDPC82azRcgKTGmFVY2Q
gHZd069VvYZ++xH9cuvEdjNsEuNNouiN3wBWMqwFz7UK/yeKNppfsgAi3PzWnGuZ
2XNAtGfRvPgTk2C+GL7QsFd2hbh3V9afIjcmDAJu8lHUFb5D08/Qb1Oc7W9p4dWS
jypdbXeri/m9jQM9XCOG2HTk2dRUFu0ZUbudeKTGcJLBxzbdetFmE50IHf5jEi85
oUh8e+OVGOTzoOP7DuxU0F2vsQaC9aQNZkv9Zltfye/wu2Wx9tYdsU5UYgJNw38H
tWpX2F44ofjrQ6OtSpHeS8HgDqzaSNTvfW3wDZd9eoKBDV3wRYuGnBDp67dgq8GT
qg2aO5Bp6ki2qSSfCXXeJ8oz8kdIH03mMjgfxVJK3xkeJhy46mo=
=KKr6
-----END PGP SIGNATURE-----

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


Mime
View raw message