You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by GHOSTRIDER <gh...@gmail.com> on 2007/04/12 12:23:52 UTC

Regarding: Tomcat default JSP edit

.

Hello,
I have a question,
I'm new to Tomcat but not new to
server configurations..
I have installed
Apache Tomcat/6.0.10

I'm attempting secure my installation
and I've hit a road block when trying
to follow the written tutorial
"*Editing the default JSP home page loaded by Tomcat*"

Located here:
http://wiki.apache.org/tomcat/EditDefaultJSPPage

The problem I am seeing is..

According to the tutorial..I should see something like this
in my CATALINA_HOME/webapps/ROOT/WEB-INF/web.xml

<servlet>
        <servlet-name>org.apache.jsp.index_jsp</servlet-name>
        <servlet-class>org.apache.jsp.index_jsp</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>org.apache.jsp.index_jsp</servlet-name>
        <url-pattern>/index.jsp</url-pattern>
    </servlet-mapping>



And, per the tutorial I should comment the above code out to proceed with
editing the default JSP page.
However,  I am not seeing the above code at all on my web.xml
doc.
All that is on that web.xml doc below the license info text is this:

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"

version="2.5">

<display-name>Welcome to Tomcat</display-name>

<description>

Welcome to Tomcat

</description>

</web-app>



I was wondering if anyone could guide me in this area?



Thanks,

Rod

ghostriderxp@gmail.com

Re: Regarding: Tomcat default JSP edit

Posted by Johnny Kewl <jo...@kewlstuff.co.za>.
Strange....
Here is the whole file for you...



----- Original Message ----- 
From: "GHOSTRIDER" <gh...@gmail.com>
To: <us...@tomcat.apache.org>
Sent: Thursday, April 12, 2007 12:23 PM
Subject: Regarding: Tomcat default JSP edit


> .
> 
> Hello,
> I have a question,
> I'm new to Tomcat but not new to
> server configurations..
> I have installed
> Apache Tomcat/6.0.10
> 
> I'm attempting secure my installation
> and I've hit a road block when trying
> to follow the written tutorial
> "*Editing the default JSP home page loaded by Tomcat*"
> 
> Located here:
> http://wiki.apache.org/tomcat/EditDefaultJSPPage
> 
> The problem I am seeing is..
> 
> According to the tutorial..I should see something like this
> in my CATALINA_HOME/webapps/ROOT/WEB-INF/web.xml
> 
> <servlet>
>        <servlet-name>org.apache.jsp.index_jsp</servlet-name>
>        <servlet-class>org.apache.jsp.index_jsp</servlet-class>
>    </servlet>
> 
>    <servlet-mapping>
>        <servlet-name>org.apache.jsp.index_jsp</servlet-name>
>        <url-pattern>/index.jsp</url-pattern>
>    </servlet-mapping>
> 
> 
> 
> And, per the tutorial I should comment the above code out to proceed with
> editing the default JSP page.
> However,  I am not seeing the above code at all on my web.xml
> doc.
> All that is on that web.xml doc below the license info text is this:
> 
> <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
> 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"
> 
> version="2.5">
> 
> <display-name>Welcome to Tomcat</display-name>
> 
> <description>
> 
> Welcome to Tomcat
> 
> </description>
> 
> </web-app>
> 
> 
> 
> I was wondering if anyone could guide me in this area?
> 
> 
> 
> Thanks,
> 
> Rod
> 
> ghostriderxp@gmail.com
>

Re: Regarding: Tomcat default JSP edit

Posted by GHOSTRIDER <gh...@gmail.com>.
.
In response to my message...

*Johnny writes:*
*"Strange....
Here is the whole file for you..."*


*Thanks for sending that Johnny*
*it allows me to complete this task..*
**
**
*Followed by Mark:*
*"The JSP is no longer pre-compiled so you can just skip this stage and
edit the JSP directly."*


*Thanks Mark,*
*Now I don't need to complete this task...*
*{:-p*

(I did it anyway though.. before I got your message)

sidenote...

I only installed Tomcat for one reason really..
I happened to come across a cool webapp
that required it... and I'm glad I did now..
In case you are wondering what it is,
and like classic rock,
feel free to visit my new webapp..
Click on over to this URL..
(I've shortened it)
http://snipurl.com/ghostradio_on_demand

and have a look, use the guest login
to get in, and be sure to look at the
brief help page
...it explains how it all works..

A link to my station home page can be
found there as well..
(shameless plug...sorry)

Thanks again for the replies gentlemen..
very helpful.
Rod
**
PS:  btw... you guys know of any other cool webapps
or where I may find some?

**
**




On 4/12/07, Mark Thomas <ma...@apache.org> wrote:
>
> GHOSTRIDER wrote:
> > The problem I am seeing is..
> >
> > According to the tutorial..I should see something like this
> > in my CATALINA_HOME/webapps/ROOT/WEB-INF/web.xml
> >
> > <servlet>
> >        <servlet-name>org.apache.jsp.index_jsp</servlet-name>
> >        <servlet-class>org.apache.jsp.index_jsp</servlet-class>
> >    </servlet>
> >
> >    <servlet-mapping>
> >        <servlet-name>org.apache.jsp.index_jsp</servlet-name>
> >        <url-pattern>/index.jsp</url-pattern>
> >    </servlet-mapping>
> >
> >
> >
> > And, per the tutorial I should comment the above code out to proceed
> with
> > editing the default JSP page.
>
> The JSP is no longer pre-compiled so you can just skip this stage and
> edit the JSP directly.
>
> Mark
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Regarding: Tomcat default JSP edit

Posted by Mark Thomas <ma...@apache.org>.
GHOSTRIDER wrote:
> The problem I am seeing is..
> 
> According to the tutorial..I should see something like this
> in my CATALINA_HOME/webapps/ROOT/WEB-INF/web.xml
> 
> <servlet>
>        <servlet-name>org.apache.jsp.index_jsp</servlet-name>
>        <servlet-class>org.apache.jsp.index_jsp</servlet-class>
>    </servlet>
> 
>    <servlet-mapping>
>        <servlet-name>org.apache.jsp.index_jsp</servlet-name>
>        <url-pattern>/index.jsp</url-pattern>
>    </servlet-mapping>
> 
> 
> 
> And, per the tutorial I should comment the above code out to proceed with
> editing the default JSP page.

The JSP is no longer pre-compiled so you can just skip this stage and
edit the JSP directly.

Mark


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