You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Christopher Schultz <ch...@christopherschultz.net> on 2024/06/06 14:43:44 UTC

[PROPOSAL] Remove JSP file from ROOT web application

All,

I'd like to change the existing webapps/ROOT/index.jsp to index.html and 
remove the dynamic elements. Currently, the only truly dynamic element 
in the whole file is this:

"
<p class="copyright">Copyright &copy;1999-${year} Apache Software 
Foundation.  All Rights Reserved</p>
"

I don't see any particular reason that the Copyright information must 
always show the "current year". We can simply set this to "the current 
year" during the release process.

This will mean that the default application will be completely static. 
Not much of an upgrade, *but* if a user would prefer to completely 
remove Jasper, it means that the default home page will be readable.

-chris

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


Re: [PROPOSAL] Remove JSP file from ROOT web application

Posted by Rémy Maucherat <re...@apache.org>.
On Thu, Jun 6, 2024 at 4:44 PM Christopher Schultz
<ch...@christopherschultz.net> wrote:
>
> All,
>
> I'd like to change the existing webapps/ROOT/index.jsp to index.html and
> remove the dynamic elements. Currently, the only truly dynamic element
> in the whole file is this:
>
> "
> <p class="copyright">Copyright &copy;1999-${year} Apache Software
> Foundation.  All Rights Reserved</p>
> "
>
> I don't see any particular reason that the Copyright information must
> always show the "current year". We can simply set this to "the current
> year" during the release process.
>
> This will mean that the default application will be completely static.
> Not much of an upgrade, *but* if a user would prefer to completely
> remove Jasper, it means that the default home page will be readable.

The reason for this one was simply to have a JSP demo. Of course it is
simpler to have a static page ;)
So this is not needed anymore.

Rémy

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

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


Re: [PROPOSAL] Remove JSP file from ROOT web application

Posted by Coty Sutherland <cs...@apache.org>.
On Fri, Jun 7, 2024 at 8:52 AM Christopher Schultz <
chris@christopherschultz.net> wrote:

> Konstantin,
>
> On 6/6/24 11:26, Konstantin Kolinko wrote:
> > чт, 6 июн. 2024 г. в 17:44, Christopher Schultz <
> chris@christopherschultz.net>:
> >>
> >> All,
> >>
> >> I'd like to change the existing webapps/ROOT/index.jsp to index.html and
> >> remove the dynamic elements. Currently, the only truly dynamic element
> >> in the whole file is this:
> >>
> >> "
> >> <p class="copyright">Copyright &copy;1999-${year} Apache Software
> >> Foundation.  All Rights Reserved</p>
> >> "
> >>
> >> I don't see any particular reason that the Copyright information must
> >> always show the "current year". We can simply set this to "the current
> >> year" during the release process.
> >>
> >> This will mean that the default application will be completely static.
> >> Not much of an upgrade, *but* if a user would prefer to completely
> >> remove Jasper, it means that the default home page will be readable.
> >
> > Hi, Chris!
>
> +1 !
>
> We missed you this week.
>
> > Being involved in moderation of one of our mailing lists, I suspect that
> > some amount of spam is caused by our default web page,
> > when it is de-facto used as the front page of a third-party web site.
> >
> > That is, ASF is wrongly interpreted as an owner of that web site.
> >
> > My thoughts were:
> > a) Replace it with a simple static page that just says "It works" or
> similar.
> > b) Make content dynamic, so that the current content is shown to
> > localhost clients only,
> > and show the "simple" page for anyone else.
> >
> > An example of "a)" is Apache HTTPD:
> >
> >
> https://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/docroot/index.html?revision=1200966&view=markup
> > https://svn.apache.org/viewvc?view=revision&revision=105393
> > Oct 2004 (19 years, 8 months ago)
> >
> > My preference is for "a)".
> >
> > Maybe move the old shiny "root" page to the examples web application.
>
> This is a reasonable idea.
>
> I always thought that httpd's "It works!" page was crappy. I like the
> Tomcat one better. But I'd like to disable everything in the ROOT web
> application if possible.
>

I can get on board with that. My first thought after reading Konstantin's
suggestion was that we should move the ROOT webapp to another context
(maybe something like Quickstart?) and then have the ROOT context be
"Congratulations, it works!" or some variant. Maybe adding a link to the
new location for the full splash page would make sense also?


>
> Having different behavior for local versus remote visits is an
> interesting idea. I wouldn't want to implement something like that
> without more support from other committers.
>

Whether or not I could +1 this depends on the complexity of implementation
and maintenance, and also would need some feedback from users because IMO I
could see confusion arising from differing behavior pretty quickly from
admins that aren't familiar with tomcat unless we make what's happening
obvious directly on the page.

Re: [PROPOSAL] Remove JSP file from ROOT web application

Posted by Christopher Schultz <ch...@christopherschultz.net>.
Konstantin,

On 6/6/24 11:26, Konstantin Kolinko wrote:
> чт, 6 июн. 2024 г. в 17:44, Christopher Schultz <ch...@christopherschultz.net>:
>>
>> All,
>>
>> I'd like to change the existing webapps/ROOT/index.jsp to index.html and
>> remove the dynamic elements. Currently, the only truly dynamic element
>> in the whole file is this:
>>
>> "
>> <p class="copyright">Copyright &copy;1999-${year} Apache Software
>> Foundation.  All Rights Reserved</p>
>> "
>>
>> I don't see any particular reason that the Copyright information must
>> always show the "current year". We can simply set this to "the current
>> year" during the release process.
>>
>> This will mean that the default application will be completely static.
>> Not much of an upgrade, *but* if a user would prefer to completely
>> remove Jasper, it means that the default home page will be readable.
> 
> Hi, Chris!

+1 !

We missed you this week.

> Being involved in moderation of one of our mailing lists, I suspect that
> some amount of spam is caused by our default web page,
> when it is de-facto used as the front page of a third-party web site.
> 
> That is, ASF is wrongly interpreted as an owner of that web site.
> 
> My thoughts were:
> a) Replace it with a simple static page that just says "It works" or similar.
> b) Make content dynamic, so that the current content is shown to
> localhost clients only,
> and show the "simple" page for anyone else.
> 
> An example of "a)" is Apache HTTPD:
> 
> https://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/docroot/index.html?revision=1200966&view=markup
> https://svn.apache.org/viewvc?view=revision&revision=105393
> Oct 2004 (19 years, 8 months ago)
> 
> My preference is for "a)".
> 
> Maybe move the old shiny "root" page to the examples web application.

This is a reasonable idea.

I always thought that httpd's "It works!" page was crappy. I like the 
Tomcat one better. But I'd like to disable everything in the ROOT web 
application if possible.

Having different behavior for local versus remote visits is an 
interesting idea. I wouldn't want to implement something like that 
without more support from other committers.

-chris

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


Re: [PROPOSAL] Remove JSP file from ROOT web application

Posted by Raymond Augé <ra...@liferay.com.INVALID>.
My 2c.

I think a new static page could easily make it clear what happened without
too much discomfort.

"Welcome to the NEW Apache Tomcat static landing page (replace this webapp
with your own... the old one, if deployed, is probably [here](/quickstart))"

etc. etc.

I would think that in a large portion of "enterprise" cases (a.k.a. those
having long maintenance expectations, as is the case at $myworkplace$),
Tomcat is being repackaged and the default ROOT is being overridden before
the default one is ever seen, in which case the fancy landing page isn't
really a problem to begin with and so you're mainly focusing on the stock
deployments and new users where, honestly, would they really know any
difference?

On Fri, Jun 7, 2024 at 9:24 AM Felix Schumacher <
felix.schumacher@internetallee.de> wrote:

>
>
> Am 6. Juni 2024 17:26:27 MESZ schrieb Konstantin Kolinko <
> knst.kolinko@gmail.com>:
> >чт, 6 июн. 2024 г. в 17:44, Christopher Schultz <
> chris@christopherschultz.net>:
> >>
> >> All,
> >>
> >> I'd like to change the existing webapps/ROOT/index.jsp to index.html and
> >> remove the dynamic elements. Currently, the only truly dynamic element
> >> in the whole file is this:
> >>
> >> "
> >> <p class="copyright">Copyright &copy;1999-${year} Apache Software
> >> Foundation.  All Rights Reserved</p>
> >> "
> >>
> >> I don't see any particular reason that the Copyright information must
> >> always show the "current year". We can simply set this to "the current
> >> year" during the release process.
> >>
> >> This will mean that the default application will be completely static.
> >> Not much of an upgrade, *but* if a user would prefer to completely
> >> remove Jasper, it means that the default home page will be readable.
> >
> >Hi, Chris!
> >
> >Being involved in moderation of one of our mailing lists, I suspect that
> >some amount of spam is caused by our default web page,
> >when it is de-facto used as the front page of a third-party web site.
> >
> >That is, ASF is wrongly interpreted as an owner of that web site.
> >
> >My thoughts were:
> >a) Replace it with a simple static page that just says "It works" or
> similar.
> >b) Make content dynamic, so that the current content is shown to
> >localhost clients only,
> >and show the "simple" page for anyone else.
> >
> >An example of "a)" is Apache HTTPD:
> >
> >
> https://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/docroot/index.html?revision=1200966&view=markup
> >https://svn.apache.org/viewvc?view=revision&revision=105393
> >Oct 2004 (19 years, 8 months ago)
> >
> >My preference is for "a)".
>
> +1 for a simple (but still nice to look at) it-works page, when bundled
> into distribution package.
>
> Maybe a link to follow up steps on that page would be good.
>
> The old site could be used for development builds.
>
> Or as suggested moved into another context.
>
> I think b) would add too much surprise possibilities for admins/users to
> be worth it.
>
> Felix
>
> >
> >Maybe move the old shiny "root" page to the examples web application.
> >
> >Best regards,
> >Konstantin Kolinko
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> >For additional commands, e-mail: dev-help@tomcat.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>

-- 
*Raymond Augé* (@rotty3000)
Senior Software Architect *Liferay, Inc.* (@Liferay)
OSGi Fellow, Java Champion

Re: [PROPOSAL] Remove JSP file from ROOT web application

Posted by Felix Schumacher <fe...@internetallee.de>.

Am 6. Juni 2024 17:26:27 MESZ schrieb Konstantin Kolinko <kn...@gmail.com>:
>чт, 6 июн. 2024 г. в 17:44, Christopher Schultz <ch...@christopherschultz.net>:
>>
>> All,
>>
>> I'd like to change the existing webapps/ROOT/index.jsp to index.html and
>> remove the dynamic elements. Currently, the only truly dynamic element
>> in the whole file is this:
>>
>> "
>> <p class="copyright">Copyright &copy;1999-${year} Apache Software
>> Foundation.  All Rights Reserved</p>
>> "
>>
>> I don't see any particular reason that the Copyright information must
>> always show the "current year". We can simply set this to "the current
>> year" during the release process.
>>
>> This will mean that the default application will be completely static.
>> Not much of an upgrade, *but* if a user would prefer to completely
>> remove Jasper, it means that the default home page will be readable.
>
>Hi, Chris!
>
>Being involved in moderation of one of our mailing lists, I suspect that
>some amount of spam is caused by our default web page,
>when it is de-facto used as the front page of a third-party web site.
>
>That is, ASF is wrongly interpreted as an owner of that web site.
>
>My thoughts were:
>a) Replace it with a simple static page that just says "It works" or similar.
>b) Make content dynamic, so that the current content is shown to
>localhost clients only,
>and show the "simple" page for anyone else.
>
>An example of "a)" is Apache HTTPD:
>
>https://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/docroot/index.html?revision=1200966&view=markup
>https://svn.apache.org/viewvc?view=revision&revision=105393
>Oct 2004 (19 years, 8 months ago)
>
>My preference is for "a)".

+1 for a simple (but still nice to look at) it-works page, when bundled into distribution package. 

Maybe a link to follow up steps on that page would be good.

The old site could be used for development builds.

Or as suggested moved into another context. 

I think b) would add too much surprise possibilities for admins/users to be worth it.

Felix

>
>Maybe move the old shiny "root" page to the examples web application.
>
>Best regards,
>Konstantin Kolinko
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: dev-help@tomcat.apache.org
>

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


Re: [PROPOSAL] Remove JSP file from ROOT web application

Posted by Konstantin Kolinko <kn...@gmail.com>.
чт, 6 июн. 2024 г. в 17:44, Christopher Schultz <ch...@christopherschultz.net>:
>
> All,
>
> I'd like to change the existing webapps/ROOT/index.jsp to index.html and
> remove the dynamic elements. Currently, the only truly dynamic element
> in the whole file is this:
>
> "
> <p class="copyright">Copyright &copy;1999-${year} Apache Software
> Foundation.  All Rights Reserved</p>
> "
>
> I don't see any particular reason that the Copyright information must
> always show the "current year". We can simply set this to "the current
> year" during the release process.
>
> This will mean that the default application will be completely static.
> Not much of an upgrade, *but* if a user would prefer to completely
> remove Jasper, it means that the default home page will be readable.

Hi, Chris!

Being involved in moderation of one of our mailing lists, I suspect that
some amount of spam is caused by our default web page,
when it is de-facto used as the front page of a third-party web site.

That is, ASF is wrongly interpreted as an owner of that web site.

My thoughts were:
a) Replace it with a simple static page that just says "It works" or similar.
b) Make content dynamic, so that the current content is shown to
localhost clients only,
and show the "simple" page for anyone else.

An example of "a)" is Apache HTTPD:

https://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/docroot/index.html?revision=1200966&view=markup
https://svn.apache.org/viewvc?view=revision&revision=105393
Oct 2004 (19 years, 8 months ago)

My preference is for "a)".

Maybe move the old shiny "root" page to the examples web application.

Best regards,
Konstantin Kolinko

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