[OT}RE: directive.include problem
Try: %@ include file=... % Michele From: Atreya Basu [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: directive.include problem Date: Mon, 08 Dec 2003 12:24:06 -0400 Hello, I'm getting a weird error when using jsp:directive.include file=.. /. I get an jsp.error.badaction error. I don't know maybe I'm using the the directive incorrectly. What I am trying to do is make my JSPs cleaner by moving some of the header and footer code onto a different file. Since I use the same header and footer code, I thought that I could use the directive.include element. But no luck. Any help? -- _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Cell phone switch rules are taking effect find out more here. http://special.msn.com/msnbc/consumeradvocate.armx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: sloppy English
I would like to point out that English is not the first language of everyone on this list. Regards, Michele From: Christopher Williams [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: OT: sloppy English Date: Mon, 22 Sep 2003 17:48:28 +0100 A lot of posts to this mailing list seem to use really lazy English: I consistently in lowercase, missing punctuation, missing capital letters at the start of sentences, etc. Two things: 1. A sentence which goes something like must i do x or can i do y is hard to read. 2. Writing like this makes you sound like a moron. We're all educated people or otherwise we wouldn't be computer programmers. So let's maintain some reasonable standards. Chris Williams. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Help protect your PC. Get a FREE computer virus scan online from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 4.03 wont start
Fred, I have run into this trying to start the program from the shortcuts. Try starting the program from the command line. Michele From: Shapira, Yoav [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: tomcat 4.03 wont start Date: Wed, 10 Sep 2003 12:53:41 -0400 Howdy, I have no idea about your problem: start it with catalina.sh run instead of start to keep the console window around, see if there are any error messages there. Please subscribe to the list if you want to use it -- I'm getting tired of moderating the hundreds of junk messages every day for a few legitimate ones like this one. Yoav Shapira Millennium ChemInformatics -Original Message- From: Fred Sells [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 10, 2003 9:40 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: tomcat 4.03 wont start I'm running tomcat 4.03 under windows 2000. Yesterday it worked just fine; today it won't start. just flashes the dos window for a second and dies. No log generated. I even reinstalled. I made no changes to tomcat, was working on jboss stuff the last few days. do not have jboss running now since I use it for a different project. checked JAVA_HOME, TOMCAT_HOME, CATALINA_HOME and they are fine. Any ideas. please replay all since I am not subscribed to this list. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Get 10MB of e-mail storage! Sign up for Hotmail Extra Storage. http://join.msn.com/?PAGE=features/es - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Off Topic: JSP that reads and creates links to file directory
Hi, I have created the jsp (below) that reads and creates links to file directory(intranet, windows nt os). It works in ie to the extent that it will read the file server directory and create the links, but when I follow the link I get an error from the browser (ie) saying the page was not found...Any help would be greatly appreciated! Example of link that calls the jsp: a href=../dirList.jsp?path=//\\corportateFileServer\department\team\communications\status reports\monthlyConsolidatedReporttitle=Team+Monthly+Status+ReportMonthly Report/a !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN %@ page import=java.io.* % %@ page import=java.net.* % %@ page import=javax.servlet.* % %@ page import=javax.servlet.ServletException% %@ page import=javax.servlet.http.*% %@ page import=java.util.* % % String path = request.getParameter(path); File file = new File( path ); String title = request.getParameter(title); % html head meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 link href=/xxx/sitestyle/guidestyle.css type=text/css rel=stylesheet script type=text/javascript src=/xxx/scripts/dateScript.js/script title/title /head body style=margin: -1em; background-image: url(/xxx/icons/background.gif); background-repeat: repeat-y; table width=535 border=0 cellspacing=50 cellpadding=0 tr td valign=top width=62% % out.println( div align='center' class='maintitle' + title + /div/brFiles Located at:br + path ); % /td /tr tr td % if( !file.exists() || !file.canRead()){ out.println( Can't Read + file ); return; } if( file.isDirectory()) { String [] files = file.list(); for (int i=0; i files.length; i++) out.println( a href=\file:+path+files[i]+\ + files[i] + /abr); } else try{ FileReader fr = new FileReader (file); BufferedReader in = new BufferedReader( fr ); String line; while ((line = in.readLine()) != null) out.println( line ); } catch ( FileNotFoundException e ){ out.println( File(s) not found ); } % /td /tr /table /body /html _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring mod_jk - Again!
I not cringinggoing to put out a how to? I am looking for one designed for dummies. The docs on doing this on win2k machine, or anyone for that matter are confusing. Michele From: Denise Mangano [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Configuring mod_jk - Again! Date: Fri, 20 Dec 2002 14:04:29 -0500 On a side note - a page I created and placed in my webapps ROOT directory does in fact display correctly!!! Thanks!!! Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 2:03 PM To: 'Tomcat Users List' Subject: RE: Configuring mod_jk - Again! Well I tried it. And I added additional JkMount statements: LoadModule jk_module modules/mod_jk.so JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /usr/local/tomcat/logs/mod_jk.log JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkRequestLogFormat %w %r %s %T JkMount /*.jsp worker1 JkMount /tomcat-docs/*.jsp worker1 JkMount /admin/j_security_check worker1 JkMount /admin/*.do worker1 JkMount /admin/*.jsp worker1 JkMount /webdav/*.jsp worker1 JkMount /examples/jsp/security/protected/j_security_check worker1 JkMount /examples/snoop worker1 JkMount /examples/servlet/* worker1 JkMount /examples/CompressionTest worker1 JkMount /examples/*.jsp worker1 JkMount /examples/servletToJsp worker1 JkMount /examples/SendMailServlet worker1 JkMount /manager/html/* worker1 JkMount /manager/* worker1 JkMount /manager/*.jsp worker1 For workers.properties I first tried: worker.list=worker1 worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 Now when I go to http://localhost/index.jsp it displays the tomcat home page, but the images are missing (looks like the path is not right)... Also, I can't get to any other page. For example. I try going to http://localhost/examples/servlets/ and I get a HTTP 404 Page not found error. Any further suggestions? I tried changing workers.properties to: worker.list=worker1 worker.worker1.type=ajp13 worker.worker1.host=www.mydomainname.com worker.worker1.port=8009 But the same situation... Thanks though - this is definitely a start! Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Iran Marcius [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 1:18 PM To: 'Tomcat Users List' Subject: RES: Configuring mod_jk - Again! So lets go! In my case, I put this configurarions in server, I mean, outside any Apache directive. You can put it, for example, right bellow Listen apache directive (coincidentally where we find the first DSO directives, just a detail). That worker1 is na arbitrary name I picked for my worker (see workers.properties file). You can change it if you want, but the names must be concise in httpd.conf and workers.properties. About the ROOT directory, AFAIK, its just a mapping to tell apache what must be forwarded to tomcat, so, in the example I sent you (JkMount /test worker1, JkMount /test/* worker1), if you type http://host/test or http://host/test/anything, apache will forward the request to tomcat. Hope it helps. iran -Mensagem original- De: Denise Mangano [mailto:[EMAIL PROTECTED]] Enviada em: sexta-feira, 20 de dezembro de 2002 15:59 Para: 'Tomcat Users List' Assunto: RE: Configuring mod_jk - Again! At this point I am willing to try anything - I am getting desperate... Where in the httpd.conf file would that information go? Also what is worker1? Should the last two JkMount statements point to my ROOT directory? Thanks. Denise Mangano -Original Message- From: Iran Marcius [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 11:30 AM To: 'Tomcat Users List' Subject: RES: Configuring mod_jk - Again! Hi Denise. I successfully integrated apache 2.0.43 and tomcat 4.1.16 with a simplistic configuration. httpd.conf -- LoadModule jk_module modules/mod_jk-2.0.43.so JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkRequestLogFormat %w %r %s %T JkMount /test worker1 JkMount /test/* worker1 in workers.properties - worker.list=worker1 worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 ...and nothing more. It worked for me. About the static mappings you did, I read it from the manual: Caution: If Apache is configured to serve static pages for a web application it bypasses any security contraints you may have configured in your web application web.xml config file. That discouraged me to map static pages. Hope it help. iran -Mensagem original- De: Denise Mangano [mailto:[EMAIL PROTECTED]] Enviada em: sexta-feira, 20 de dezembro de 2002 14:10 Para: 'Tomcat Users List' Assunto: Configuring mod_jk - Again! Hi all :) I
Re: Over-aged Newbie needs some help
But if he is an over-aged newbie he might prefer book over reading off a computer screengod knows this cough over-aged newbie does! I am reading: Apache Jarkart-Tomcat by Goodwill Sun one programming by Mogha and Bhargava Michele From: Craig R. McClanahan [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Over-aged Newbie needs some help Date: Sat, 23 Nov 2002 16:20:05 -0800 (PST) On Sat, 23 Nov 2002, Steve R Burrus wrote: Hi, I need some degree of help/assistance from someone re. just how exactly you go about starting to build or create JSP's or Servlets in the Tomcat container!!! Do you first establish a context or something??! And, then if that's the case, where do you go from there anyway? Incidentally, I am still basking in the afterglow of just being able to install Tomcat!!! One useful starting point is packaged with Tomcat itself -- the Application Developer's Guide. If you've installed a default Tomcat, it will be available at: http://localhost:8080/tomcat-docs/appdev/ or online at: http://jakarta.apache.org:8080/tomcat/tomcat-4.1-doc/appdev/ For more background on servlet and JSP concepts and development, I recommend the Java Web Services Tutorial, which has many chapters on the web technologies that Tomcat implements: http://java.sun.com/webservices/docs/1.0/tutorial/index.html Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Manager--hangs during clean up
Hi, I was wondering if anyone else had run into the server hanging during cleanup and if there is a fix to this? I don't have direct access to the server to just restart it. I am looking for a permanent fix. Thanks _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Search engines and MVC--to clarify
Here is a simple explaination of what happens when you call one of the sites: apon entry a directory is called to set up the pages in frames, this directory contains the index page but has no content. The index page contains code that calls files in other directories to add menu items, those files call content pages. So, it take 3 directories in my webapps to make the site. I have authority to change only the content and individual menu items, not to change the code. I would very much like to make the sites searchable. And, I have no doubt that the individual pages can be crawled, my concern is how everything will be put back together. So, I was thinking that adding a robot directive could help solve my problem but, where do I put it? I am not supposed to change things in the directory containing the original index page. I was thinking that I could make a mock index page that would contain meta tags and a simple redirect to call the entire homepage and disallow indexing of the code directory. Michele I am new to this, please excuse my simplicity, I am not a programmer, just a webmaster muddling through. And the other guy was right, it is model-view-controller...I had searched Sun, they really don't explain how a spider would handle this kind of site. -Original Message- From: Michele Emmi [mailto:micheleemmi;hotmail.com] Sent: Thursday, October 31, 2002 12:13 AM To: [EMAIL PROTECTED] Subject: Re: Search engines and MVC--to clarify To clarify...I have 2 websites built on the mvc architecture, I would like to have them indexed...does anyone have any experience in this... -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org _ Surf the Web without missing calls! Get MSN Broadband. http://resourcecenter.msn.com/access/plans/freeactivation.asp -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: how do I index a framed site?
Normally I would have altered the index page to be search engine freindly, however, the index page is not a page that I have authority to change. The index page (and every file in that directory) is exactly the same for both sites, which are very different in content. It is a very frustrating situation because all of the normal things I would do to the index page doesn't apply. It is a very perplexing situation. Michele From: Ralph Einfeldt [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: how do I index a framed site? Was: Search engines and MVC--to clarify Date: Thu, 31 Oct 2002 14:10:52 +0100 First of all: your problem hasn't anything to do with MVC (That's for Model-View-Controller and is an architecture for the generation of the content, if this happens in frames or not is independend of MVC). So better change that topic for further posts. The best way is to define a inventory map that you put in the noframes section. This map has just basic anchors that link to your content. This way you would no only make your own searchengine happy but also external search engines and browsers that don't support frames. -Original Message- From: Michele Emmi [mailto:micheleemmi;hotmail.com] Sent: Thursday, October 31, 2002 1:26 PM To: [EMAIL PROTECTED] Subject: RE: Search engines and MVC--to clarify Here is a simple explaination of what happens when you call one of the sites: apon entry a directory is called to set up the pages in frames, this directory contains the index page but has no content. The index page contains code that calls files in other directories to add menu items, those files call content pages. So, it take 3 directories in my webapps to make the site. I have authority to change only the content and individual menu items, not to change the code. I would very much like to make the sites searchable. And, I have no doubt that the individual pages can be crawled, my concern is how everything will be put back together. So, I was thinking that adding a robot directive could help solve my problem but, where do I put it? I am not supposed to change things in the directory containing the original index page. I was thinking that I could make a mock index page that would contain meta tags and a simple redirect to call the entire homepage and disallow indexing of the code directory. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org _ Choose an Internet access plan right for you -- try MSN! http://resourcecenter.msn.com/access/plans/default.asp -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Search engines and MVC
I was wondering how search engines handle multi-view-controller architecture? Thanks, Michele _ Internet access plans that fit your lifestyle -- join MSN. http://resourcecenter.msn.com/access/plans/default.asp -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Search engines and MVC--to clarify
I know it is not an engine...how do search engines handle it. To clarify...I have 2 websites built on the mvc architecture, I would like to have them indexed...does anyone have any experience in this... Michele From: German Augusto Niebles Alvarez [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Search engines and MVC Date: Wed, 30 Oct 2002 18:01:24 -0500 MVC is a design pattern not an engine. If you want to learn about MVC you could visit www.java.sun.com and search for design patterns or MVC especifically. Regards. German == [EMAIL PROTECTED] 10/30 5:40 p.m. I was wondering how search engines handle multi-view-controller architecture? Thanks, Michele _ Internet access plans that fit your lifestyle -- join MSN. http://resourcecenter.msn.com/access/plans/default.asp -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org _ Surf the Web without missing calls! Get MSN Broadband. http://resourcecenter.msn.com/access/plans/freeactivation.asp -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Help: Jakarta as a service
I run Tomcat on Win2k and found that I can only start on the command line, not from the installed shortcuts. Michele From: Ing. Fernando Zapata [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Help: Jakarta as a service Date: Fri, 18 Oct 2002 15:30:53 -0300 I have installed Jakarta Tomcat as a Service on W2K, the configuration seems to be right, but when I start the service, it stops inmediatelly. I'm working under Java 2 SDK 1.4. Thanks in advanced. Ing. Fernando Zapata _ Broadband? Dial-up? Get reliable MSN Internet Access. http://resourcecenter.msn.com/access/plans/default.asp -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org