Re: How to depoy.
wrapper.tomcat_home=c:\jakarta-tomcat-3.2.4 wrapper.java_home=c:\jdk1.3.1 from the above try removing the wrapper.tomcat_home=c:\jakarta-tomcat-3.2.4 wrapper.java_home=c:\jdk1.3.1 - Original Message - From: MARSHALL,John [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 21, 2002 5:07 AM Subject: Re: How to depoy. Guys Any ideas on this? Or where I should really place it? Installed Jakarta-Tomcat-3.2.4 and all works fine with the standard Tomcat startup, and shutdown.BAT files. But, i am having problems starting tomcat as an NT Service. I use:- Microwoft WIndows NT Version 4.0 (Build 1381) Service Pack 6) Jakarta_Tomcat-3.2.3 jk_nt_service.exe (binary download - from 3.2.4 Then using document Working with the Jakarta NT Service 1. cmd prompt: jk_nt_service -R Jakarta wrapper.properties 2. performed a net start Jakarta, and received the following three lines The Jakarta service is starting The Jakarta service could not be started The service did not report an error. I then tried... From Windows NT Control PanelServices 1. (start) Jakarta and received the following message Could not start the Jakarta Service on \\blah Error 2140: An Internal Windows NT Error Occured FYI my wrapper.properties contains:- # # $Header: /home/cvs/jakarta-tomcat/src/etc/Attic/wrapper.properties,v 1.2.2.1 2000/10/16 01:59:22 larryi Exp $ # $Revision: 1.2.2.1 $ # $Date: 2000/10/16 01:59:22 $ # # # jk_service.properties - a bootstrup file for the Tomcat NT service. # # This file provides jk_nt_service with the needed information to # start tomcat at a different process. # # As a general note, the characters $( and ) are used internally to define # macros. Do not use them!!! # # Whenever you see a set of lines such as: # x=value # y=$(x)\something # # the final value for y will be value\something # # Normaly all you will need to modify is the first two properties, i.e. # wrapper.tomcat_home and wrapper.java_home. Most of the configuration # is derived from these two. # # # wrapper.tomcat_home should point to the location where you # installed tomcat. This is where you have your conf, webapps and lib # directories. # wrapper.tomcat_home=c:\jakarta-tomcat-3.2.4 # # wrapper.java_home should point to your Java installation. Normally # you should have a bin and lib directories beneath it. # wrapper.java_home=c:\jdk1.3.1 # #-- ADVANCED MODE # Make sure that you read the how-to before making too many changes. #- # # # Defining where the service is going to put the standard # output of Tomcat. This is where System.out.println and # System.err.println goes to. # wrapper.stdout=$(wrapper.tomcat_home)\logs\jvm.stdout wrapper.stderr=$(wrapper.tomcat_home)\logs\jvm.stderr # # Additions to the path. put here directories where you store DLLs for # native methods etc. # wrapper.ld_path=d:\ wrapper.ld_path=c:\ # # Defining the classpath. All the rows that belongs to the class_path # property are concatenated to create the classpath for Tomcat. # # If you have additional locations that you would like to add to the # claspath you should add a new wrapper.class_path=location line. # wrapper.class_path=$(wrapper.tomcat_home)\classes wrapper.class_path=$(wrapper.tomcat_home)\lib\jaxp.jar # wrapper.class_path=$(wrapper.tomcat_home)\lib\parser.jar wrapper.class_path=$(wrapper.tomcat_home)\lib\webserver.jar wrapper.class_path=$(wrapper.tomcat_home)\lib\servlet.jar wrapper.class_path=$(wrapper.tomcat_home)\lib\jasper.jar # # This is where Javac is located in JDK1.2.x # # wrapper.class_path=$(wrapper.java_home)\lib\tools.jar # # and a tribute to JDK1.1.x # # wrapper.class_path=$(wrapper.java_home)\lib\classes.zip # # This is the Java interpreter used for running Tomcat # wrapper.javabin=$(wrapper.java_home)\bin\java.exe # # This is Tomcat's startup class (the class that contains Tomcat's # starting point. # wrapper.startup_class=org.apache.tomcat.startup.Tomcat # # This is the location where tomcat's server.xml configuration file # is located. # wrapper.server_xml=$(wrapper.tomcat_home)\conf\server.xml # # The NT service uses AJP12/AJP13 to shutdown Tomcat. The # wrapper.shutdown_port tells the service the identity of the port that # is used by AJP12/AJP13. # wrapper.shutdown_port=8007 # # Can either be ajp12 or ajp13 depending on your configuration. # # Default value is ajp12 # wrapper.shutdown_protocol=ajp12 # # This is the command line that is used to start Tomcat. You can *add* extra # parameters to it but you can not remove anything. # wrapper.cmd_line=$(wrapper.javabin) -classpath $(wrapper.class_path) $(wrapper.startup_class) -config $(wrapper.server_xml) -home
Re: Urgent Help needed !
Hi joshy, U can use the Pager Tag Library available at http://jsptags.com/tags/navigation/pager/. it helps to generate Google style dispaly. regards kishor - Original Message - From: JOSHY MON M C [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 14, 2002 2:04 PM Subject: Urgent Help needed ! Hi All, Can Anybody help ? I have a Oracle 9i table named Contacts which contain about 1 records. I need to show them in a JSP page ordered by last name or first name or in any other order (as per user request). But only 100 records should be shown at a time. User can click Previous or Next links to see more records ( as in Google/Yahoo search ) I have done this by creating a temporary table. Records are sorted and kept in the temporary table . But this seems to be a very slow and inefficient method. ( Each request involves a select from the original table, creation of tempory table, insertion into temp table and finally select from temp table. ) Can anybody suggest a better approach ? Thanks Joshy === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Compilation error - cannot resolve symbol
hi, copy ChildrenBook.java to mySite\WEB-INF\classes\ and compile. hope this helps kishor - Original Message - From: Philip Steel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 04, 2002 4:34 PM Subject: Re: Compilation error - cannot resolve symbol yes indeed, it's in the same directory as ChildrenBook.java the dir structure is as follows: mySite\WEB-INF\classes\com\wrox\library\ in this directory lie these files: Book.java Book.class ChildrenBook.java Both java files have the same first line - package com.wrox.library; To recap - Book compiles fine, but ChildrenBook.java won't Phil -Original Message- From: Hardeep Singh [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 11:08 AM To: [EMAIL PROTECTED] Subject: Re: Compilation error - cannot resolve symbol Have u put Book.class in a directory called com/worx/library? To do this, use javac Book.java -d . - Original Message - From: Philip Steel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 04, 2002 4:05 PM Subject: Compilation error - cannot resolve symbol Hi there I have made a package called com.wrox.library and compiled the following class successfully: package com.wrox.library; public class Book { private String title; public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public Book() { } public Book(String title) { this.title = title; } } When I try and compile the following class (part of the same package) which inherits Book, I get the following error: com\wrox\library\ChildrenBook.java:3: cannot resolve symbol symbol : class Book location: class com.wrox.library.ChildrenBook public class ChildrenBook extends Book { ^ 1 error Here's the code: package com.wrox.library; public class ChildrenBook extends Book { private int minimumAge; public int getMinimumAge() { return minimumAge; } public void setMinimumAge(int a) { minimumAge = a; } public String getType() { return CHILDREN; } public ChildrenBook() { super(); } public ChildrenBook(String title) { super(title); } } Phil Steel Tequila Digital 82 Charing Cross Road LONDON WC2H 0QB 020 7557 6228 === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Comparison of App. servers
Hi, Can any of u provide links to any articles with a comparsion of FREE App. servers supporting JSP such as JBOSS,Tomcat,JRun,Resin etc. kishor If it ain't broke, don't fix it _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
name of the jsp file
hi, is thr any method which can be used to get the name of the same jsp file. thanx in advance kishor _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: include and forward error
hi, in my question there is only one application. i have some common files in the ROOT directory and other files in different subdirctories. common files are files which check accessrights,error page etc. i would like to check the accessrights to the pages in the subdirectory by including a file in ROOT and if the user doesn't have access he should be forwarded to a page in the ROOT directory asking the user to log in. ROOT - MAIN ROOT has accessrights.jsp and login.jsp And there is a display.jsp in the MAIN directory. accessrights.jsp should be included in display.jsp so that users access rights can be checked (using username,password database) If someone tries to access display.jsp thru browser. if the user does not have access user should be forwared to login.jsp in the ROOT directory. hope my question is clear now. - Original Message - From: Hans Bergsten [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 10, 2001 5:15 PM Subject: Re: include and forward error Kishor K wrote: hi, I need clarification two errors I am getting. i am using apache 1.3.20 with tomcat 3.2.3. i have the following directory structure ROOT- example there is a file file1.jsp in example directory in this file i am trying to include a file incfile.jsp in the ROOT directory using %@ include file=../incfile.jsp% in this case i am getting the following error org.apache.jasper.compiler.CompileException: D:\jakarta-tomcat\webapps\ROOT\example\file1.jsp(43,0) Bad file argument to include [...] and there is another file file2.jsp in example directory in this file i am trying to forward to a file forwfile.jsp in the ROOT directory using jsp:forward page=../forwfile.jsp /jsp:forward in this case i am getting the following error. Original request: /example /../forwfile.jsp Not found request: /example /../forwfile.jsp Can anyone out thr help me with these ? You're not allowed to include or forward to pages that are part of another application (think security risks) using the JSP elements. If the container allows it, you may be able to get hold of the servlet context for the other application, and then get a RequestDispatcher for the page in that application. You can then use the RequestDispatcher to include/forward to the page. Something like this: % ServletContext ctx = application.getServletContext(/otherapp); RequestDispatcher rd = ctx.getRequestDispatcher(/foo.jsp); rd.forward(request, response); % But you may want to rethink the design. A web application is supposed to be self contained, so this type of coupling between apps may cause problems. Maybe all pages should actually be part of the same app instead. As an alternative to a forward, maybe a redirect to the other app is more appropriate. Hans -- Hans Bergsten [EMAIL PROTECTED] Gefion Software http://www.gefionsoftware.com Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
web stress tool
hi, can anyone suggest a good web stress tool for testing jsp applications in apache-tomcat server . regards kishor _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Bad file argument to include
is thr any files included in browse.jsp "which is not in the same directory" ? - Original Message - From: "vikas m pawar" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 19, 2001 10:48 AM Subject: Bad file argument to include Hi.. I am making a shopping cart where the initial flow is: login.html--authenticate.jsp--browse.jsp In authenticate.jsp , after username password are checked , the last line is: jsp:forward page="%= fwd %"/ where String fwd = "browse.jsp"; when I login i get the following error: Error: 500 Location: /MyCart/browse.jsp Internal Servlet Error: org.apache.jasper.JasperException: Bad file argument to include at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve ntListener.java:688) at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList ener.java:116) at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215) at org.apache.jasper.compiler.Parser.parse(Parser.java:1073) at org.apache.jasper.compiler.Parser.parse(Parser.java:1038) at org.apache.jasper.compiler.Parser.parse(Parser.java:1034) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:182) at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:149) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va:161) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.RequestDispatcherImpl.forward(RequestDispatcherImpl.j ava:163) at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:357) at _0002fauthenticate.jsp_0002ejspauthenticate.jsp_jsp_0._jspService(_0002fauth enticate.jsp_0002ejspauthenticate.jsp_jsp_0.java:162) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va:174) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338 ) at java.lang.Thread.run(Thread.java:484) Help Regards Vikas _ Chat with your friends as soon as they come online. Get Rediff Bol at http://bol.rediff.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: include problem
- Original Message - From: "Kishor K" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 28, 2001 9:58 AM Subject: include problem hi, i have the following directory structure root - level1 -level21 -level22 -level23 how can i include a file a.jsp in files b.jsp in level21,c.jsp level22,d.jsp in level 23 this is what i have done %@ include file="../a.jsp"% this was working properly with tomcat3.1 but it is not working with tomcat3.2.1 is something wrong in the syntax? thanx in advance kishor _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Connection Pooling
hello frds, iam trying to implement connection pooling.. but i have major prob:..my connection pooling is working but problem is that as iam not closing the connection a lock will be formed in my db(iam using Access now) so i want to remove that ..so what i want is to close all connections if nobody is using the server..or particular connection for some time..but iam confused about how to implement this ..in implementing conn pool iam making a application level bean.. TIA Kishor _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Tomcat 3.1 can't handle load - second post
second post hi, I have Tomcat 3.1 and jdk 1.2.2 on TWO Windows NT machines. Both the machines are loaded with the same code,same database. But on one machine it is causing Dr.Watson error 2-3 times a day whereas the other one is working properly. Could you help in anyway on this? thanks in advance kishor - Original Message - From: "Sunil Kumar Roy" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 19, 2000 12:54 AM Subject: Re: Tomcat 3.1 can't handle load Dear Sangeelee, Thanks for providing this vital info. Sunil K.Roy - Original Message - From: "Kevin Sangeelee" [EMAIL PROTECTED] To: "Sunil Kumar Roy" [EMAIL PROTECTED] Sent: Monday, February 19, 2001 2:39 AM Subject: Re: Tomcat 3.1 can't handle load On Mon, 16 Oct 2000, Sunil Kumar Roy wrote: We are developing a B2B website using Tomcat 3.1 for our company.(We are yet to buy a full-fledged webserver since ours is a startup firm). Lots of people have reported problems with the Jdbc-ODBC bridge (if that's what you're using) - however if it happens without DB access, then it could be your JDK. There is no legal way for Tomcat ever to cause an 'Illegal Operation' - pure java can't cause this. The problem lies elsewhere. However, if you're still choosing your server technologies, I always recommend Unix be considered over NT. I've *never* looked back - it's paid off on many, many occasions so far. K. Sangeelee === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
include problem
hi, i have the following directory structure root - level1 -level21 -level22 -level23 how can i include a file a.jsp in files b.jsp in level21,c.jsp level22,d.jsp in level 23 this is what i have done %@ include file="../a.jsp"% is something wrong in the syntax? thanx in advance kishor _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Tomcat 3.1 can't handle load
hi, I have Tomcat 3.1 and jdk 1.2.2 on TWO Windows NT machines. Both the machines are loaded with the same code,same database. But on one machine it is causing Dr.Watson error 2-3 times a day whereas the other one is working properly. Could you help in anyway on this? thanks in advance kishor - Original Message - From: "Sunil Kumar Roy" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 19, 2000 12:54 AM Subject: Re: Tomcat 3.1 can't handle load Dear Sangeelee, Thanks for providing this vital info. Sunil K.Roy - Original Message - From: "Kevin Sangeelee" [EMAIL PROTECTED] To: "Sunil Kumar Roy" [EMAIL PROTECTED] Sent: Monday, February 19, 2001 2:39 AM Subject: Re: Tomcat 3.1 can't handle load On Mon, 16 Oct 2000, Sunil Kumar Roy wrote: We are developing a B2B website using Tomcat 3.1 for our company.(We are yet to buy a full-fledged webserver since ours is a startup firm). Lots of people have reported problems with the Jdbc-ODBC bridge (if that's what you're using) - however if it happens without DB access, then it could be your JDK. There is no legal way for Tomcat ever to cause an 'Illegal Operation' - pure java can't cause this. The problem lies elsewhere. However, if you're still choosing your server technologies, I always recommend Unix be considered over NT. I've *never* looked back - it's paid off on many, many occasions so far. K. Sangeelee === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
adding three images to get a combined image
hi gurus! i have problem...i have 3 images,image1,image2,image3 what i want is to read all this image... arrange one over the other and make a single file out of it how can do it...i code i have written fine with text files but with images it reads all images that is file size is sum of three but displays only first image also can pls some body tell..how can i convert ..say i have ten string i have make a image out of the content of the strings my code is import java.io.*; import java.util.*; import java.awt.*; import java.awt.image.*; import java.awt.Toolkit.*; class InputEnum implements meration{ private Enumeration files; public InputEnum (Vector files) { this.files=files.elements(); } public boolean hasMoreElements() { return files.hasMoreElements(); } public Object nextElement() {try{ return new FileInputStream(files.nextElement().toString()); } catch (Exception e){ return null; } }} class readgif{ public static void main(String args[]) throws Exception{ byte c[]; int clength; byte[] buffer; int width=100; int height=100; int buff=256; int[] pixels=new int[width*height]; Vector files =new Vector(); files.addElement("c:/new.gif"); files.addElement("c:/efax1.gif"); ImageProducer source=new MemoryImageSource (width,height,pixels,0,width); Toolkit tool=Toolkit.getDefaultToolkit(); Image img1=tool.createImage(source); Image img2; System.out.println("start"); InputEnum enumFile = new InputEnum(files); SequenceInputStream gifFiles= new SequenceInputStream(enumFile); Image img3=Image(gifFiles); FileOutputStream gifNew1= new FileOutputStream("test.gif"); clength=gifFiles.available(); System.out.println(clength); byte[] b=new byte[clength]; int bytesread=0; int offset=0; System.out.println("b1"); while((bytesread=gifFiles.read(b))!=-1) { } gifNew1.write(b); /*while((a=gifFiles.read())!=-1){ gifNew1.write((byte)a); }*/ gifFiles.close(); new GifEncoder(img1,gifNew1,tru e).encode(); gifNew1.close(); System.out.println("finished"); }} thanx in advance, kishor _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
No Subject
r u brother of ashu varshney - Original Message - From: "Varshney, Arun" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 08, 2001 2:30 AM sign-off === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
No Subject
then answer this one i posted it yesterday and i am yet to get a reply ___ hi gurus! i have problem...i have 3 images,image1,image2,image3 what i want is to read all this image... arrange one over the other and make a single file out of it how can do it...i code i have written fine with text files but with images it reads all images that is file size is sum of three but displays only first image also can pls some body tell..how can i convert ..say i have ten string i have make a image out of the content of the strings my code is import java.io.*; import java.util.*; import java.awt.*; import java.awt.image.*; import java.awt.Toolkit.*; class InputEnum implements meration{ private Enumeration files; public InputEnum (Vector files) { this.files=files.elements(); } public boolean hasMoreElements() { return files.hasMoreElements(); } public Object nextElement() {try{ return new FileInputStream(files.nextElement().toString()); } catch (Exception e){ return null; } }} class readgif{ public static void main(String args[]) throws Exception{ byte c[]; int clength; byte[] buffer; int width=100; int height=100; int buff=256; int[] pixels=new int[width*height]; Vector files =new Vector(); files.addElement("c:/new.gif"); files.addElement("c:/efax1.gif"); ImageProducer source=new MemoryImageSource (width,height,pixels,0,width); Toolkit tool=Toolkit.getDefaultToolkit(); Image img1=tool.createImage(source); Image img2; System.out.println("start"); InputEnum enumFile = new InputEnum(files); SequenceInputStream gifFiles= new SequenceInputStream(enumFile); Image img3=Image(gifFiles); FileOutputStream gifNew1= new FileOutputStream("test.gif"); clength=gifFiles.available(); System.out.println(clength); byte[] b=new byte[clength]; int bytesread=0; int offset=0; System.out.println("b1"); while((bytesread=gifFiles.read(b))!=-1) { } gifNew1.write(b); /*while((a=gifFiles.read())!=-1){ gifNew1.write((byte)a); }*/ gifFiles.close(); new GifEncoder(img1,gifNew1,tru e).encode(); gifNew1.close(); System.out.println("finished"); }} thanx in advance, kishor - Original Message - From: "Srinivas, Santoshkumar (CORP, GEITC)" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 08, 2001 10:07 AM Could we discuss more important things on the list?? :) -Original Message- From: Kishor K [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 07, 2001 10:49 PM To: [EMAIL PROTECTED] Subject: r u brother of ashu varshney - Original Message - From: "Varshney, Arun" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 08, 2001 2:30 AM sign-off === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
sending fax
hi, how can i send a fax using jsp? kishor _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
how to distinguish between two browser windows on the same machine
hi, how to distinguish between two browser windows on the same machine? kishor _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
setNull function of the preparedstatement
hi, When i tried to use the setNull function of the preparedstatement class to set a Date/Time field in msaccess database as null i got the following error. can anyone help. so.setNull(++j, java.sql.Types.DATE); error- SQL data type out of range thanx in advance kishor --=_NextPart_000_0011 _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Help on %@ include file=...%
hi, i need help on %@ include file=...% 1) i have a file a.html in root directory. how can include this file in a jsp file in a subdirectory of root? 2) i have a file b.jsp in root/design directory. how can include this file in a jsp file in root/design/view = directory. thanx in advance kishor _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Execute aplication in other process
hi, This is the error i got hwen i tried to run a class from jsp page using % String path=System.getProperty("java.class.path"); Runtime r = Runtime.getRuntime(); r.exec("c:/jdk1.2.2/bin/java -classpath "+path+";d:/Progra~1/Apache~1/Apache/htdocs/images/weatherjavaf"); % can anyone help. thanx Kishor java.io.IOException: CreateProcess: c:/jdk1.2.2/bin/java -classpath ..\classes;..\lib\webserver.jar;..\lib\jasper.jar;..\lib\xml.jar;..\lib\serv let.jar;\lib\tools.jar;.;d:\JDK1.2.2\BIN;d:\JDK1.2.2\LIB;c:\JSDK2.0\BIN;C:\J SDK2.0\LIB;d:\jdk1.2.2\lib\tools.jar;D:\jakarta-tomcat\webapps\root;d:\progr a~1\apache~1\apache\htdocs\spanie~1;D:\jakarta-tomcat\webapps\root\jsp;d:/Pr ogra~1/Apache~1/Apache/htdocs/images/weatherjavaf error=3 at java.lang.Win32Process.create(Native Method) at java.lang.Win32Process.(Win32Process.java:64) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Runtime.java:272) at java.lang.Runtime.exec(Runtime.java:195) at java.lang.Runtime.exec(Runtime.java:152) at _0002fweatherindia_0002ejspweatherindia_jsp_14._jspService(_0002fweatherindi a_0002ejspweatherindia_jsp_14.java:74) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va, Compiled Code) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java, Compiled Code) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) __ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Execute aplication in other process
hi, This is the error i got hwen i tried to run a class from jsp page using % String path=System.getProperty("java.class.path"); Runtime r = Runtime.getRuntime(); r.exec("c:/jdk1.2.2/bin/java -classpath "+path+";d:/Progra~1/Apache~1/Apache/htdocs/images/weatherjavaf"); % can anyone help. thanx Kishor java.io.IOException: CreateProcess: c:/jdk1.2.2/bin/java -classpath ..\classes;..\lib\webserver.jar;..\lib\jasper.jar;..\lib\xml.jar;..\lib\serv let.jar;\lib\tools.jar;.;d:\JDK1.2.2\BIN;d:\JDK1.2.2\LIB;c:\JSDK2.0\BIN;C:\J SDK2.0\LIB;d:\jdk1.2.2\lib\tools.jar;D:\jakarta-tomcat\webapps\root;d:\progr a~1\apache~1\apache\htdocs\spanie~1;D:\jakarta-tomcat\webapps\root\jsp;d:/Pr ogra~1/Apache~1/Apache/htdocs/images/weatherjavaf error=3 at java.lang.Win32Process.create(Native Method) at java.lang.Win32Process.(Win32Process.java:64) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Runtime.java:272) at java.lang.Runtime.exec(Runtime.java:195) at java.lang.Runtime.exec(Runtime.java:152) at _0002fweatherindia_0002ejspweatherindia_jsp_14._jspService(_0002fweatherindi a_0002ejspweatherindia_jsp_14.java:74) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va, Compiled Code) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java, Compiled Code) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) - Original Message - From: "Santiago Benito Rebollo" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 02, 2000 11:04 PM Subject: Re: Execute aplication in other process Oh yeahh OK. I make that it works but the I found another problem. I need to run class form another directories, and I have to put in the call the classpath of the class that I want to run. I make that it works in this way: public static void main(String args[]) { Runtime runtime = Runtime.getRuntime(); Process process = null; String Str_argumentos = ""; Str_argumentos=System.getProperty("java.class.path"); try { process = runtime.exec("c:/jdk1.2.2/bin/java -classpath "+Str_argumentos+";C:/Temporal/ProcesosBatch Mensajeria"); DataInputStream in = new DataInputStream (process.getInputStream()); String line=null; while ((line=in.readLine()) != null) { System.out.println (line); } } catch (Exception e) { System.out.println ("No puedo ejecutar la tarea: "); System.out.println (e); } }// Thanks === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets