|
View:
New views
20 Messages
—
Rating Filter:
Alert me
|
| < Prev | 1 - 2 | Next > |
|
|
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?--------------------------------------------------------------------------- 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" <webb.ryan1@...> To: "tomcat-help" <users@...> 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@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
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. 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 <john@...> 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" <webb.ryan1@...> > To: "tomcat-help" <users@...> > 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@... > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > |
|
|
Re: I dont want my users to see tomcat console. Any advice?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@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: I dont want my users to see tomcat console. Any advice?--------------------------------------------------------------------------- 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" <webb.ryan1@...> To: "Tomcat Users List" <users@...> 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 <john@...> 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" <webb.ryan1@...> >> To: "tomcat-help" <users@...> >> 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@... >> To unsubscribe, e-mail: users-unsubscribe@... >> For additional commands, e-mail: users-help@... >> >> > --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: I dont want my users to see tomcat console. Any advice?-----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@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
trim-directive-whitespaces and .tag filesHi, 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@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
RES: trim-directive-whitespaces and .tag filesJust 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@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: trim-directive-whitespaces and .tag filesOn Fri, May 9, 2008 at 7:04 AM, Milanez, Marcus
<Marcus.Milanez@...> 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@... --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
RES: trim-directive-whitespaces and .tag filesHi 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@...] 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 <Marcus.Milanez@...> 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@... --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: trim-directive-whitespaces and .tag filesOn Fri, May 9, 2008 at 7:21 AM, Milanez, Marcus
<Marcus.Milanez@...> 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@... --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
RES: trim-directive-whitespaces and .tag filesI'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) <%@ 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@...] 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 <Marcus.Milanez@...> 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@... --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: trim-directive-whitespaces and .tag filesOn Fri, May 9, 2008 at 7:28 AM, Milanez, Marcus
<Marcus.Milanez@...> 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@... --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
RES: trim-directive-whitespaces and .tag filesOK 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@...] 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 <Marcus.Milanez@...> 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@... --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: trim-directive-whitespaces and .tag filesHave you try converting your .tag files to .tagx files?
On Fri, May 9, 2008 at 11:45 AM, Milanez, Marcus <Marcus.Milanez@...> 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@...] > 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 > <Marcus.Milanez@...> 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@... > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@... To unsubscribe, > e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@... > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: trim-directive-whitespaces and .tag filesOn Fri, May 9, 2008 at 7:45 AM, Milanez, Marcus
<Marcus.Milanez@...> 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@... --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
RES: trim-directive-whitespaces and .tag files |