You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ryan webb <we...@gmail.com> on 2008/05/09 05:01:47 UTC

I dont want my users to see tomcat console. Any advice?

Dear Tomcat users,

*Situation:*
- I have internal web application (corporate web site only).
- I don't have Domain, user access our site using example:
http://107.105.13.236/webApplication/.

*Problem:*
- Users see tomcat manager console site when they type in URL
http://107.105.13.236/

*Question:*
- I don't want users to see the tomcat manager console site. Is there some
sort of redirection to webApplication?
I want users to see our webApplication when they typed in
http://107.105.13.236/

any advice, help, our suggestions are greatly appreciated

God bless,
Ryan Webb - Philippines

Re: I dont want my users to see tomcat console. Any advice?

Posted by Johnny Kewl <jo...@kewlstuff.co.za>.
---------------------------------------------------------------------------
HARBOR: http://coolharbor.100free.com/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
Making the Java dream come true.
---------------------------------------------------------------------------
----- Original Message ----- 
From: "ryan webb" <we...@gmail.com>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Friday, May 09, 2008 5:44 AM
Subject: Re: I dont want my users to see tomcat console. Any advice?


> Mr. Johnny Kewl,
>
> Thank you very much for your quick reply.
> I get what are you trying to say.
>
> except on the last part:
> < Also make a note of the URL on the default page, so you can still get at
> the admin stuff.
> what note? please write simple example.

Nothing complicated... you taking your admin page away and all I want you to 
note is the links on that page
like
http://localhost:8080/manager/html

so that by just typing that into the browser you can still admin tomcat.

That ROOT is nothing more than just another webapp and is often used as an 
index page to navigate a whole site.
If you dont want to redirect, you can make it a normal Welcome page with 
links.
The admin stuff is still there... if you know the links... thats all
You can still get in ;)

if you use the meta tag

<meta http-equiv="refresh" content="1; url=../webapp/index.jsp">

Then you can stick up those typical pages you see on the Web...
You should be redirected in 2 seconds... blah blah

Nothing special other than the ROOT webapp... has no context name.
Its just another Webapp...

The only problem that can happen is that sometimes if one is hosting with a 
SP... the SP wants the root to list everyones webapps.
TC is cool ;)


> You're right, if I restricted the users from seeing Tomcat Manager 
> console,
> that means I cannot also get in.(if i use another computer).
>
> Sir, would you recommend me some resources, websites about what i am 
> trying
> to accomplish?
>
> God bless,
> Ryan Webb - Philippines
>
> On Fri, May 9, 2008 at 11:24 AM, Johnny Kewl <jo...@kewlstuff.co.za> wrote:
>
>>
>> ---------------------------------------------------------------------------
>> HARBOR: http://coolharbor.100free.com/index.htm
>> The most powerful application server on earth.
>> The only real POJO Application Server.
>> Making the Java dream come true.
>> ---------------------------------------------------------------------------
>> ----- Original Message ----- From: "ryan webb" <we...@gmail.com>
>> To: "tomcat-help" <us...@tomcat.apache.org>
>> Sent: Friday, May 09, 2008 5:01 AM
>> Subject: I dont want my users to see tomcat console. Any advice?
>>
>> Ryan... try this
>>
>> Make a new web app call it ROOT
>> Then in the JSP page add something like
>>
>> <meta http-equiv="refresh" content="1; url=/webapp/index.jsp">
>>
>> Drop it into tomcat...
>>
>> I cant remember the deatails off hand, but because the ROOT that comes 
>> with
>> TC is precompiled, it wont listen to you if you change it directly.
>> Copy the old root out, just in case you change your mind later.
>> Also make a note of the URL on the default page, so you can still get at
>> the admin stuff.
>>
>> Have fun
>>
>>
>>  Dear Tomcat users,
>>>
>>> *Situation:*
>>> - I have internal web application (corporate web site only).
>>> - I don't have Domain, user access our site using example:
>>> http://107.105.13.236/webApplication/.
>>>
>>> *Problem:*
>>> - Users see tomcat manager console site when they type in URL
>>> http://107.105.13.236/
>>>
>>> *Question:*
>>> - I don't want users to see the tomcat manager console site. Is there 
>>> some
>>> sort of redirection to webApplication?
>>> I want users to see our webApplication when they typed in
>>> http://107.105.13.236/
>>>
>>> any advice, help, our suggestions are greatly appreciated
>>>
>>> God bless,
>>> Ryan Webb - Philippines
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> 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
>>
>>
> 


---------------------------------------------------------------------
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: I dont want my users to see tomcat console. Any advice?

Posted by Mark Thomas <ma...@apache.org>.
ryan webb wrote:
> Mr. Johnny Kewl,
> 
> Thank you very much for your quick reply.
> I get what are you trying to say.
> 
> except on the last part:
> < Also make a note of the URL on the default page, so you can still get at
> the admin stuff.
> what note? please write simple example.
> 
> You're right, if I restricted the users from seeing Tomcat Manager console,
> that means I cannot also get in.(if i use another computer).
> 
> Sir, would you recommend me some resources, websites about what i am trying
> to accomplish?

1. Don't configure the manager application as the ROOT application. Change 
it back to how it is in a default install.
2. Re-enable security so a username and password is required to access the 
manager app (this is also how the default install is configured)
3. Make your application the ROOT application.

The Tomcat docs should provide all the information you need for 
configuration. Ask here if you need any help.

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: I dont want my users to see tomcat console. Any advice?

Posted by ryan webb <we...@gmail.com>.
Mr. Johnny Kewl,

Thank you very much for your quick reply.
I get what are you trying to say.

except on the last part:
< Also make a note of the URL on the default page, so you can still get at
the admin stuff.
what note? please write simple example.

You're right, if I restricted the users from seeing Tomcat Manager console,
that means I cannot also get in.(if i use another computer).

Sir, would you recommend me some resources, websites about what i am trying
to accomplish?

God bless,
Ryan Webb - Philippines

On Fri, May 9, 2008 at 11:24 AM, Johnny Kewl <jo...@kewlstuff.co.za> wrote:

>
> ---------------------------------------------------------------------------
> HARBOR: http://coolharbor.100free.com/index.htm
> The most powerful application server on earth.
> The only real POJO Application Server.
> Making the Java dream come true.
> ---------------------------------------------------------------------------
> ----- Original Message ----- From: "ryan webb" <we...@gmail.com>
> To: "tomcat-help" <us...@tomcat.apache.org>
> Sent: Friday, May 09, 2008 5:01 AM
> Subject: I dont want my users to see tomcat console. Any advice?
>
> Ryan... try this
>
> Make a new web app call it ROOT
> Then in the JSP page add something like
>
> <meta http-equiv="refresh" content="1; url=/webapp/index.jsp">
>
> Drop it into tomcat...
>
> I cant remember the deatails off hand, but because the ROOT that comes with
> TC is precompiled, it wont listen to you if you change it directly.
> Copy the old root out, just in case you change your mind later.
> Also make a note of the URL on the default page, so you can still get at
> the admin stuff.
>
> Have fun
>
>
>  Dear Tomcat users,
>>
>> *Situation:*
>> - I have internal web application (corporate web site only).
>> - I don't have Domain, user access our site using example:
>> http://107.105.13.236/webApplication/.
>>
>> *Problem:*
>> - Users see tomcat manager console site when they type in URL
>> http://107.105.13.236/
>>
>> *Question:*
>> - I don't want users to see the tomcat manager console site. Is there some
>> sort of redirection to webApplication?
>> I want users to see our webApplication when they typed in
>> http://107.105.13.236/
>>
>> any advice, help, our suggestions are greatly appreciated
>>
>> God bless,
>> Ryan Webb - Philippines
>>
>>
>
> ---------------------------------------------------------------------
> 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
>
>

RES: trim-directive-whitespaces and .tag files

Posted by "Milanez, Marcus" <Ma...@diebold.com>.
Thabks a lot for your effort! 

-----Mensagem original-----
De: Hassan Schroeder [mailto:hassan.schroeder@gmail.com] 
Enviada em: sexta-feira, 9 de maio de 2008 15:51
Para: Tomcat Users List
Assunto: Re: trim-directive-whitespaces and .tag files

On Fri, May 9, 2008 at 11:42 AM, Milanez, Marcus
<Ma...@diebold.com> wrote:

> Which is slightly different, but got the directive working... Thus, I 
> believe this is the most appropriate web-app descriptor, right?

sounds like :-)  -- glad to hear it's working now!

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
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


---------------------------------------------------------------------
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: trim-directive-whitespaces and .tag files

Posted by Hassan Schroeder <ha...@gmail.com>.
On Fri, May 9, 2008 at 11:42 AM, Milanez, Marcus
<Ma...@diebold.com> wrote:

> Which is slightly different, but got the directive working... Thus, I
> believe this is the most appropriate web-app descriptor, right?

sounds like :-)  -- glad to hear it's working now!

-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
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: trim-directive-whitespaces and .tag files

Posted by Lucas Galfaso <lg...@gmail.com>.
Have you try converting your .tag files to .tagx files?

On Fri, May 9, 2008 at 11:45 AM, Milanez, Marcus
<Ma...@diebold.com> wrote:
>
> OK Hassan, thanks a lot! If I could get this directive working with .tag
> files I would appreciate a lot more, but if I couldn't find a way, I'll
> try your suggestion!
>
> Just a final questions: should it be working or not? I mean, ths
> specification for trim-directive-whitespaces says that it could not work
> in these cases?
>
> Thanks a lot for your time!
>
> Marcus Milanez
>
> -----Mensagem original-----
> De: Hassan Schroeder [mailto:hassan.schroeder@gmail.com]
> Enviada em: sexta-feira, 9 de maio de 2008 11:38
> Para: Tomcat Users List
> Assunto: Re: trim-directive-whitespaces and .tag files
>
> On Fri, May 9, 2008 at 7:28 AM, Milanez, Marcus
> <Ma...@diebold.com> wrote:
>
>> I think it won't be possible to trim white spaces from .tag files
>> uwing this directive then...
>
> If minimizing white space is critical for you, you might try something
> with the String taglib  -- maybe wrap a string:squeeze around the whole
> tag body. Just a first-cup-of-coffee thought...  :-)
>
> HTH,
> --
> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
>
> ---------------------------------------------------------------------
> 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
>
>
> ---------------------------------------------------------------------
> 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
>
>

---------------------------------------------------------------------
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


RES: trim-directive-whitespaces and .tag files

Posted by "Milanez, Marcus" <Ma...@diebold.com>.
Hassan,

Thanks a lot. It worked! I noticed we were using the following web-app
in DTD:

<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/javaee/web-app_2_5.xsd"
    version="2.5">

Then I just replaced by 

<web-app
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    metadata-complete="false"
    version="2.5">

Which is slightly different, but got the directive working... Thus, I
believe this is the most appropriate web-app descriptor, right?

Thanks a lot for all your support!

Marcus Milanez 

-----Mensagem original-----
De: Hassan Schroeder [mailto:hassan.schroeder@gmail.com] 
Enviada em: sexta-feira, 9 de maio de 2008 15:27
Para: Tomcat Users List
Assunto: Re: trim-directive-whitespaces and .tag files

On Fri, May 9, 2008 at 11:00 AM, Milanez, Marcus
<Ma...@diebold.com> wrote:

> trimDirectiveWhitespaces directive simply doesn't work at all in 
> Tomcat 6.. I've posted this question here some months ago..

Uh, I just tried it on both a JSP file (page directive) and tag file
using the tag directive, and both worked fine.

Are you sure you're using a 2.5 deployment descriptor?

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
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


---------------------------------------------------------------------
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: trim-directive-whitespaces and .tag files

Posted by Hassan Schroeder <ha...@gmail.com>.
On Fri, May 9, 2008 at 11:00 AM, Milanez, Marcus
<Ma...@diebold.com> wrote:

> trimDirectiveWhitespaces directive simply doesn't work at all in Tomcat
> 6.. I've posted this question here some months ago..

Uh, I just tried it on both a JSP file (page directive) and tag file using
the tag directive, and both worked fine.

Are you sure you're using a 2.5 deployment descriptor?

-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
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


RES: trim-directive-whitespaces and .tag files

Posted by "Milanez, Marcus" <Ma...@diebold.com>.
Oh,I'm sorry, I thought you were refeering errouneous withe space
trimming...

trimDirectiveWhitespaces directive simply doesn't work at all in Tomcat
6.. I've posted this question here some months ago.. 

-----Mensagem original-----
De: Hassan Schroeder [mailto:hassan.schroeder@gmail.com] 
Enviada em: sexta-feira, 9 de maio de 2008 14:09
Para: Tomcat Users List
Assunto: Re: trim-directive-whitespaces and .tag files

On Fri, May 9, 2008 at 9:55 AM, Milanez, Marcus
<Ma...@diebold.com> wrote:

> I've reard about this issues, but our tests confirmed that all JSPs 
> and scripts are working well. We've also downloaded a filter that does

> just the same, but we've experimented some javascript problems...

Not sure what "issues" you're referring to :-)

I was just highlighting this:

   tag file directive attribute trimDirectiveWhitespaces

:: meaning, you can put that in each tag file directly to achieve your
original goal.

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
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


---------------------------------------------------------------------
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: trim-directive-whitespaces and .tag files

Posted by Hassan Schroeder <ha...@gmail.com>.
On Fri, May 9, 2008 at 9:55 AM, Milanez, Marcus
<Ma...@diebold.com> wrote:

> I've reard about this issues, but our tests confirmed that all JSPs and
> scripts are working well. We've also downloaded a filter that does just
> the same, but we've experimented some javascript problems...

Not sure what "issues" you're referring to :-)

I was just highlighting this:

   tag file directive attribute trimDirectiveWhitespaces

:: meaning, you can put that in each tag file directly to achieve your
original goal.

-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
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


RES: trim-directive-whitespaces and .tag files

Posted by "Milanez, Marcus" <Ma...@diebold.com>.
Hassan,

I've reard about this issues, but our tests confirmed that all JSPs and
scripts are working well. We've also downloaded a filter that does just
the same, but we've experimented some javascript problems...

Thanks!

Marcus Milanez 

-----Mensagem original-----
De: Hassan Schroeder [mailto:hassan.schroeder@gmail.com] 
Enviada em: sexta-feira, 9 de maio de 2008 12:10
Para: Tomcat Users List
Assunto: Re: trim-directive-whitespaces and .tag files

On Fri, May 9, 2008 at 7:45 AM, Milanez, Marcus
<Ma...@diebold.com> wrote:

> Just a final questions: should it be working or not? I mean, ths 
> specification for trim-directive-whitespaces says that it could not 
> work in these cases?

Actually, the 2.1 spec says:

"As of JSP 2.1, it is possible to have extraneous whitespaces removed
from template text through element trim-directive-whitespaces of JSP
Property Groups (See Section JSP.3.3.8, "Removing whitespaces from
template text"), or the page and tag file directive attribute
trimDirectiveWhitespaces (See Section JSP.1.10.1, "The page Directive",
Section JSP.8.5.1, "The tag Directive")."

So looks like a little more experimentation is in order  :-)

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
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


---------------------------------------------------------------------
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: trim-directive-whitespaces and .tag files

Posted by Hassan Schroeder <ha...@gmail.com>.
On Fri, May 9, 2008 at 7:45 AM, Milanez, Marcus
<Ma...@diebold.com> wrote:

> Just a final questions: should it be working or not? I mean, ths
> specification for trim-directive-whitespaces says that it could not work
> in these cases?

Actually, the 2.1 spec says:

"As of JSP 2.1, it is possible to have extraneous whitespaces removed from
template text through element trim-directive-whitespaces of JSP Property Groups
(See Section JSP.3.3.8, "Removing whitespaces from template text"), or the page
and tag file directive attribute trimDirectiveWhitespaces (See Section
JSP.1.10.1,
"The page Directive", Section JSP.8.5.1, "The tag Directive")."

So looks like a little more experimentation is in order  :-)

-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
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


RES: trim-directive-whitespaces and .tag files

Posted by "Milanez, Marcus" <Ma...@diebold.com>.
OK Hassan, thanks a lot! If I could get this directive working with .tag
files I would appreciate a lot more, but if I couldn't find a way, I'll
try your suggestion!

Just a final questions: should it be working or not? I mean, ths
specification for trim-directive-whitespaces says that it could not work
in these cases?

Thanks a lot for your time!

Marcus Milanez

-----Mensagem original-----
De: Hassan Schroeder [mailto:hassan.schroeder@gmail.com] 
Enviada em: sexta-feira, 9 de maio de 2008 11:38
Para: Tomcat Users List
Assunto: Re: trim-directive-whitespaces and .tag files

On Fri, May 9, 2008 at 7:28 AM, Milanez, Marcus
<Ma...@diebold.com> wrote:

> I think it won't be possible to trim white spaces from .tag files 
> uwing this directive then...

If minimizing white space is critical for you, you might try something
with the String taglib  -- maybe wrap a string:squeeze around the whole
tag body. Just a first-cup-of-coffee thought...  :-)

HTH,
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
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


---------------------------------------------------------------------
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: trim-directive-whitespaces and .tag files

Posted by Hassan Schroeder <ha...@gmail.com>.
On Fri, May 9, 2008 at 7:28 AM, Milanez, Marcus
<Ma...@diebold.com> wrote:

> I think it won't be possible to trim white spaces from .tag files uwing
> this directive then...

If minimizing white space is critical for you, you might try something
with the String taglib  -- maybe wrap a string:squeeze around the
whole tag body. Just a first-cup-of-coffee thought...  :-)

HTH,
-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
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


RES: trim-directive-whitespaces and .tag files

Posted by "Milanez, Marcus" <Ma...@diebold.com>.
 
I'll answer my own question here. I guess this directive takes effect
during compile time 'cause when I try to pre-compile my jsps with the
<url-pattern>*.tag</url-pattern> in my web.xml file, I come accross with
the following error:

"file: /appFolder/WEB-INF/tags/fields/data.tag(1,14) &lt;%@ attribute
directive can only be used in a tag file"

I think it won't be possible to trim white spaces from .tag files uwing
this directive then...



-----Mensagem original-----
De: Milanez, Marcus 
Enviada em: sexta-feira, 9 de maio de 2008 11:21
Para: 'Tomcat Users List'
Assunto: RES: trim-directive-whitespaces and .tag files

Hi Hassan,

No effect. I think that's because we never reference .tag files
directly. My guess is that when tomcat engine compiles .tag files into
.java files, it ignores my trim-directive. 

Do you know how this directive work? Does it remove white spaces in
every request (like a filter) or during compiling time? 

Thank you!

-----Mensagem original-----
De: Hassan Schroeder [mailto:hassan.schroeder@gmail.com]
Enviada em: sexta-feira, 9 de maio de 2008 11:17
Para: Tomcat Users List
Assunto: Re: trim-directive-whitespaces and .tag files

On Fri, May 9, 2008 at 7:04 AM, Milanez, Marcus
<Ma...@diebold.com> wrote:

> I'm successfully using trim-directive-whitespaces in my web.xml file, 
> clearing unecessary white spaces from my pages. The only problem is 
> that .tag files content is not affected by this directive.

What happened when you added this:

<jsp-config>
     <jsp-property-group>
       <url-pattern>*.tag</url-pattern>
       <trim-directive-whitespaces>true</trim-directive-whitespaces>
     </jsp-property-group>
   </jsp-config>

Did it produce an error, or just no effect?

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
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


---------------------------------------------------------------------
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: trim-directive-whitespaces and .tag files

Posted by Hassan Schroeder <ha...@gmail.com>.
On Fri, May 9, 2008 at 7:21 AM, Milanez, Marcus
<Ma...@diebold.com> wrote:

> No effect. I think that's because we never reference .tag files
> directly.

Probably -- it was worth a shot, I figured :-)

> Do you know how this directive work? Does it remove white spaces in
> every request (like a filter) or during compiling time?

No idea, but it you've got it working for JSP files, it should be pretty
easy to compare the compiled files in /work with and without it.

-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
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


RES: trim-directive-whitespaces and .tag files

Posted by "Milanez, Marcus" <Ma...@diebold.com>.
Hi Hassan,

No effect. I think that's because we never reference .tag files
directly. My guess is that when tomcat engine compiles .tag files into
.java files, it ignores my trim-directive. 

Do you know how this directive work? Does it remove white spaces in
every request (like a filter) or during compiling time? 

Thank you!

-----Mensagem original-----
De: Hassan Schroeder [mailto:hassan.schroeder@gmail.com] 
Enviada em: sexta-feira, 9 de maio de 2008 11:17
Para: Tomcat Users List
Assunto: Re: trim-directive-whitespaces and .tag files

On Fri, May 9, 2008 at 7:04 AM, Milanez, Marcus
<Ma...@diebold.com> wrote:

> I'm successfully using trim-directive-whitespaces in my web.xml file, 
> clearing unecessary white spaces from my pages. The only problem is 
> that .tag files content is not affected by this directive.

What happened when you added this:

<jsp-config>
     <jsp-property-group>
       <url-pattern>*.tag</url-pattern>
       <trim-directive-whitespaces>true</trim-directive-whitespaces>
     </jsp-property-group>
   </jsp-config>

Did it produce an error, or just no effect?

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
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


---------------------------------------------------------------------
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: trim-directive-whitespaces and .tag files

Posted by Hassan Schroeder <ha...@gmail.com>.
On Fri, May 9, 2008 at 7:04 AM, Milanez, Marcus
<Ma...@diebold.com> wrote:

> I'm successfully using trim-directive-whitespaces in my web.xml file,
> clearing unecessary white spaces from my pages. The only problem is that
> .tag files content is not affected by this directive.

What happened when you added this:

<jsp-config>
     <jsp-property-group>
       <url-pattern>*.tag</url-pattern>
       <trim-directive-whitespaces>true</trim-directive-whitespaces>
     </jsp-property-group>
   </jsp-config>

Did it produce an error, or just no effect?

-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
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


RES: trim-directive-whitespaces and .tag files

Posted by "Milanez, Marcus" <Ma...@diebold.com>.
Just for a matter of reference, I'm currently using Tomcat 6.0.14 under
Windows 2003 server.

Thanks again! 

-----Mensagem original-----
De: Milanez, Marcus 
Enviada em: sexta-feira, 9 de maio de 2008 11:04
Para: 'Tomcat Users List'
Assunto: trim-directive-whitespaces and .tag files


Hi,

I'm successfully using trim-directive-whitespaces in my web.xml file,
clearing unecessary white spaces from my pages. The only problem is that
.tag files content is not affected by this directive. Is there a way to
make it work? I've searched a lot for it and couldn't find anything...

I'm using the following directive at this moment:

    <jsp-config>
      <jsp-property-group>
        <url-pattern>*.jsp</url-pattern>
        <trim-directive-whitespaces>true</trim-directive-whitespaces>
      </jsp-property-group>
    </jsp-config>


Any suggestion?

Thank you all!

Marcus Milanez

---------------------------------------------------------------------
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


trim-directive-whitespaces and .tag files

Posted by "Milanez, Marcus" <Ma...@diebold.com>.
Hi,

I'm successfully using trim-directive-whitespaces in my web.xml file,
clearing unecessary white spaces from my pages. The only problem is that
.tag files content is not affected by this directive. Is there a way to
make it work? I've searched a lot for it and couldn't find anything...

I'm using the following directive at this moment:

    <jsp-config>
      <jsp-property-group>
        <url-pattern>*.jsp</url-pattern>
        <trim-directive-whitespaces>true</trim-directive-whitespaces>
      </jsp-property-group>
    </jsp-config>


Any suggestion?

Thank you all!

Marcus Milanez

---------------------------------------------------------------------
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: I dont want my users to see tomcat console. Any advice?

Posted by Bhanu <bh...@hcl.in>.



Take off with HCL


BHANU PRATAP RAINA
Systems Administrator 
HCL Infinet Ltd.
E-4,5,6 Sector XI
Noida 201 301, UP
INDIA 
bhanu.pratap@hcl.in
www.hclinfinet.in 
mobile: 
+91-9871976805 





Add me to your address book...



-----Original Message-----
From: ryan webb [mailto:webb.ryan1@gmail.com] 
Sent: Tuesday, May 13, 2008 6:41 AM
To: Tomcat Users List
Subject: Re: I dont want my users to see tomcat console. Any advice?

Mr. Chris,

Yes thank you for your advice, I appreciate your tips.
And follow your suggestion.

Have a good day Mr. Chris.


On Mon, May 12, 2008 at 10:39 PM, Christopher Schultz <
chris@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>  Ryan,
>
> ryan webb wrote:
> | Yes, I will also read TC documentations. But for now I want a quick and
> | simple explanation..
>
>  The TC documentation is quick and simple. If not, you should suggest
> editions.
>
> | and besides all your experiences are the best teachers. =)
>
>  While that may be true, reading the documentation saves us from having
> to help you with problems covered by said documentation, and focus on
> issues other people are having that may not be so straightforward.
>
> - -chris
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
>  iEYEARECAAYFAkgoVoUACgkQ9CaO5/Lv0PArAQCgoBI++XKfAlZUWArBGjxnyZfG
> pNMAn333cz0DsLnIksPBXph2tqvBPzf5
> =TScu
> -----END PGP SIGNATURE-----
>
> ------------------------------ ---------------------------------------
> 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
>
>
-- 
warmest regards,
Ryan Webb - Philippines

email: webb.ryan1@gmail.com



  The email is subject to Disclaimer as per  http://www.hclinfosystems.in/email-disclaimer.htm  

---------------------------------------------------------------------
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: I dont want my users to see tomcat console. Any advice?

Posted by ryan webb <we...@gmail.com>.
Mr. Chris,

Yes thank you for your advice, I appreciate your tips.
And follow your suggestion.

Have a good day Mr. Chris.


On Mon, May 12, 2008 at 10:39 PM, Christopher Schultz <
chris@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>  Ryan,
>
> ryan webb wrote:
> | Yes, I will also read TC documentations. But for now I want a quick and
> | simple explanation..
>
>  The TC documentation is quick and simple. If not, you should suggest
> editions.
>
> | and besides all your experiences are the best teachers. =)
>
>  While that may be true, reading the documentation saves us from having
> to help you with problems covered by said documentation, and focus on
> issues other people are having that may not be so straightforward.
>
> - -chris
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
>  iEYEARECAAYFAkgoVoUACgkQ9CaO5/Lv0PArAQCgoBI++XKfAlZUWArBGjxnyZfG
> pNMAn333cz0DsLnIksPBXph2tqvBPzf5
> =TScu
> -----END PGP SIGNATURE-----
>
> ------------------------------ ---------------------------------------
> 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
>
>
-- 
warmest regards,
Ryan Webb - Philippines

email: webb.ryan1@gmail.com

Re: I dont want my users to see tomcat console. Any advice?

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ryan,

ryan webb wrote:
| Yes, I will also read TC documentations. But for now I want a quick and
| simple explanation..

The TC documentation is quick and simple. If not, you should suggest
editions.

| and besides all your experiences are the best teachers. =)

While that may be true, reading the documentation saves us from having
to help you with problems covered by said documentation, and focus on
issues other people are having that may not be so straightforward.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgoVoUACgkQ9CaO5/Lv0PArAQCgoBI++XKfAlZUWArBGjxnyZfG
pNMAn333cz0DsLnIksPBXph2tqvBPzf5
=TScu
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
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: I dont want my users to see tomcat console. Any advice?

Posted by ryan webb <we...@gmail.com>.
Dear Mr. Johnny, Mr. Chris and Mr. Mark,

Thank you very much for all your replies.
You have different approaches to my problem.
I will try all your solutions / suggestions and use what is most applicable
to my situation.

Yes, I will also read TC documentations. But for now I want a quick and
simple explanation..
and besides all your experiences are the best teachers. =)

God bless,
Ryan Webb - Philippines


On Fri, May 9, 2008 at 9:54 PM, Christopher Schultz <
chris@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Johnny,
>
> Johnny Kewl wrote:
> | Make a new web app call it ROOT
> | Then in the JSP page add something like
> |
> | <meta http-equiv="refresh" content="1; url=/webapp/index.jsp">
>
> Better yet, just rename your own webapp to ROOT and use that.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkgkV4gACgkQ9CaO5/Lv0PD/aQCfYqnk2Wx/n6Uij0lEc8HLG2TU
> oxEAn3NHT1mf/vLTABYR5asF4L6mD5nb
> =ydnl
> -----END PGP SIGNATURE-----
>
>
> ---------------------------------------------------------------------
> 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: I dont want my users to see tomcat console. Any advice?

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Johnny,

Johnny Kewl wrote:
| Make a new web app call it ROOT
| Then in the JSP page add something like
|
| <meta http-equiv="refresh" content="1; url=/webapp/index.jsp">

Better yet, just rename your own webapp to ROOT and use that.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgkV4gACgkQ9CaO5/Lv0PD/aQCfYqnk2Wx/n6Uij0lEc8HLG2TU
oxEAn3NHT1mf/vLTABYR5asF4L6mD5nb
=ydnl
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
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: I dont want my users to see tomcat console. Any advice?

Posted by Johnny Kewl <jo...@kewlstuff.co.za>.
---------------------------------------------------------------------------
HARBOR: http://coolharbor.100free.com/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
Making the Java dream come true.
---------------------------------------------------------------------------
----- Original Message ----- 
From: "ryan webb" <we...@gmail.com>
To: "tomcat-help" <us...@tomcat.apache.org>
Sent: Friday, May 09, 2008 5:01 AM
Subject: I dont want my users to see tomcat console. Any advice?

Ryan... try this

Make a new web app call it ROOT
Then in the JSP page add something like

<meta http-equiv="refresh" content="1; url=/webapp/index.jsp">

Drop it into tomcat...

I cant remember the deatails off hand, but because the ROOT that comes with 
TC is precompiled, it wont listen to you if you change it directly.
Copy the old root out, just in case you change your mind later.
Also make a note of the URL on the default page, so you can still get at the 
admin stuff.

Have fun

> Dear Tomcat users,
>
> *Situation:*
> - I have internal web application (corporate web site only).
> - I don't have Domain, user access our site using example:
> http://107.105.13.236/webApplication/.
>
> *Problem:*
> - Users see tomcat manager console site when they type in URL
> http://107.105.13.236/
>
> *Question:*
> - I don't want users to see the tomcat manager console site. Is there some
> sort of redirection to webApplication?
> I want users to see our webApplication when they typed in
> http://107.105.13.236/
>
> any advice, help, our suggestions are greatly appreciated
>
> God bless,
> Ryan Webb - Philippines
>


---------------------------------------------------------------------
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