You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Zico <ma...@gmail.com> on 2008/08/11 15:33:46 UTC
Html tagging
Hi,
I am Zico. I have been working on http://dspace.bracu.ac.bd/dspace
Now, i want to remove the last /dspace part from my url.
Here, i want to add that, i have been using Fedora-7, apache tomcat,
java-1.5.
At least i need to redirect my current page. It means, user will know about
the *actual* url address, which is http://dspace.bracu.ac.bd ; then will
enter this address, but it will redirect them automatically into
http://dspace.bracu.ac.bd/dspace
For this, i tried with html tagging in my index.html page of apache-tomcat.
It`s location: */usr/src/apache-tomcat/webapps/ROOT/index.html*
The tag i used:
<head>
...
<meta http-equiv="REFRESH" content="0"; url=http://dspace.bracu.ac.bd/dspace
>
...
</head>
But, it didn`t work for me.
Can you please help me?
--
Best,
Z
Re: Html tagging
Posted by Zico <ma...@gmail.com>.
On Tue, Aug 12, 2008 at 2:32 PM, Stefan Oestreicher <
stefan.oestreicher@netdoktor.at> wrote:
> if there is nothing in the ROOT directory that you need (what I suspect,
> since you wanted to put a redirect document there) you can delete it and
> rename the dspace.war to ROOT.war. Tomcat will then unpack that war to the
> ROOT directory and your application should then be accessible directly
> through http://your.host/
>
Stefen, i have made it. Your mail helped me a lot! Please check the link:
http://dspace.bracu.ac.bd/
Here, you can see that, the "tomcat page" shows it`s face here, though i put
CONTENT=0 there in html tag. Now, can you please help me that, how can i
*reduce* the time of "tomcat page loading..."?? It looks bad when tomcat
takes a lot of time to load our dspace.
--
Best,
Z
RE: Html tagging
Posted by Stefan Oestreicher <st...@netdoktor.at>.
> -----Original Message-----
> From: Zico [mailto:mailzico@gmail.com]
> Sent: Monday, August 11, 2008 3:44 PM
> To: Tomcat Users List
> Cc: stefan.oestreicher@netdoktor.at
> Subject: Re: Html tagging
>
> On Mon, Aug 11, 2008 at 7:40 PM, Stefan Oestreicher <
> stefan.oestreicher@netdoktor.at> wrote:
>
> > why don't you just deploy your application in the ROOT context?
>
>
> Thanks, but i cannot your point here. What do you want to mean here?
It depends on how you're deploying your application.
Instead of placing an index.html file inside the ROOT folder you can put
your whole application in that folder, then it will be served as the ROOT
context.
If you're using a *.war with auto deployment just name it ROOT.war before
placing it into the webapps folder. Or, if you're using a *.war file outside
the webapps folder with a context descriptor pointing at that *.war, just
name that context descriptor ROOT.xml.
If it's unclear what I'm talking about, you probably should read
http://tomcat.apache.org/tomcat-6.0-doc/appdev/deployment.html.
HTH,
Stefan
---------------------------------------------------------------------
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: Html tagging
Posted by Zico <ma...@gmail.com>.
On Mon, Aug 11, 2008 at 7:40 PM, Stefan Oestreicher <
stefan.oestreicher@netdoktor.at> wrote:
> why don't you just deploy your application in the ROOT context?
Thanks, but i cannot your point here. What do you want to mean here?
--
Best,
Z
RE: Html tagging
Posted by Stefan Oestreicher <st...@netdoktor.at>.
why don't you just deploy your application in the ROOT context?
Anyway, it most likely doesn't work because you have a typo there, it should
be:
<meta http-equiv="REFRESH" content="0;
url=http://dspace.bracu.ac.bd/dspace">
instead of
<meta http-equiv="REFRESH" content="0";
url=http://dspace.bracu.ac.bd/dspace>
HTH,
Stefan Oestreicher
> -----Original Message-----
> From: Zico [mailto:mailzico@gmail.com]
> Sent: Monday, August 11, 2008 3:34 PM
> To: users@tomcat.apache.org
> Subject: Html tagging
>
> Hi,
>
> I am Zico. I have been working on
> http://dspace.bracu.ac.bd/dspace Now, i want to remove the
> last /dspace part from my url.
>
> Here, i want to add that, i have been using Fedora-7, apache
> tomcat, java-1.5.
>
> At least i need to redirect my current page. It means, user
> will know about the *actual* url address, which is
> http://dspace.bracu.ac.bd ; then will enter this address, but
> it will redirect them automatically into
> http://dspace.bracu.ac.bd/dspace
>
> For this, i tried with html tagging in my index.html page of
> apache-tomcat.
> It`s location: */usr/src/apache-tomcat/webapps/ROOT/index.html*
>
> The tag i used:
>
> <head>
> ...
> <meta http-equiv="REFRESH" content="0";
> url=http://dspace.bracu.ac.bd/dspace
> >
>
> ...
>
> </head>
>
> But, it didn`t work for me.
>
> Can you please help me?
>
>
> --
> Best,
> Z
>
---------------------------------------------------------------------
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