Re: Question
RTFAQ: http://www.jguru.com/faq/view.jsp?EID=160 Have fun! - Alex On Wed, Sep 11, 2002 at 09:31:58AM -0700, Ralph Merrick wrote: Hello all, thanks a lot. Just one question would be, I have a jsp page that would be a form that would take input from the user, and the user has a choice to upload a file. So on submission of the form, if they specify the file name, then it would be uploaded to the server, and the full path name would be saved as a String in the databases. So how can that be done in Java in JSP format. This is on a Tomcat web server, using MYSQL datatbase, so I am sure I would have to specify the full path name and the IP server. Thanks so much . - Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost -- Alex Chaffee mailto:[EMAIL PROTECTED] jGuru - Java News and FAQs http://www.jguru.com/alex/ Creator of Gamelan http://www.gamelan.com/ Founder of Purple Technology http://www.purpletech.com/ Curator of Stinky Art Collective http://www.stinky.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex JGURU PREMIUM SERVICE! jGuru has invested over 1 million dollars in our 6500+ carefully edited FAQ entries. Become a premium member now and help us to continue providing high quality content. Get the World's BEST JAVA SEARCH ENGINE, JAVADOC QUICK LINKS, FASTER PAGE RENDERING, and NO ADS. Just 9.95 a month or subscribe for a year at 99.95 and get 12 months for the price of 10 and a FREE XL JGURU T-SHIRT! Sign up now and try out the premium service for two weeks at no charge! http://www.jguru.com/misc/page.jsp?fsm=premiumregnode=blurbsrc=email Hi. You asked to be notified weekly when certain jGuru.com items get new entries. ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP i have placed the class file in the WEB-INF/classes in the project directory and the whne i run my aplication this is what comes... pre org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. br An error occurred at line: 2 in the jsp file: /techSupport.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\JSPTechSupport\techSupport$jsp.java:60: Class org.apache.jsp.TechSupportBean not found. TechSupportBean techSupportBean = null; ^ br An error occurred at line: 2 in the jsp file: /techSupport.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\JSPTechSupport\techSupport$jsp.java:63: Class org.apache.jsp.TechSupportBean not found. techSupportBean= (TechSupportBean) ^ An error occurred at line: 2 in the jsp file: /techSupport.jsp br Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\JSPTechSupport\techSupport$jsp.java:68: Class org.apache.jsp.TechSupportBean not found. techSupportBean = (TechSupportBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), TechSupportBean); ^ br /pre http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=939638 Does anybody know of any available classes that can create word documents on the fly? (or RTF format) http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=939635 I'm running into a problem when I encounter a coding error in my jsp file, go and fix the error, save it, and try to access the page with my changes. The server (Tomcat 4.0) persists in giving me the old version of the file. brbr I tried 1) shutting down and restarting Catalina, then 2) shutting down, deleting the .java file for the page from work\myWebApp, and restarting. I'm still getting errors related to code that no longer exists in the page. brbr http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=939634 You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex JGURU PREMIUM SERVICE! How often has jGuru helped you solve a problem? Contribute to the Java community and keep jGuru the best place to get answers by becoming a premium member. Get the World's BEST JAVA SEARCH ENGINE, FASTER PAGE RENDERING, and NO ADS. Just 4.95 a month or subscribe for a year at 49.95 and get 12 months for the price of 10 and a FREE XL JGURU T-SHIRT! Sign up now and try out the premium service for two weeks at no charge! http://www.jguru.com/misc/page.jsp?fsm=premiumregnode=blurbsrc=email Hi. You asked to be notified weekly when certain jGuru.com items get new entries. ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP Is the HTTP Session maintained even when the network connection goes down? Can the same browser instance resume a previous session after re-establishing the network connection? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=906310 Is the HTTP Session maintained even when the network connection goes down? Can the same browser instance resume a previous session after re-establishing the network connection? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=906309 I am using Resin2.0. In our Intranet, all the user requests are directed to a servlet which does the authentication and redirects to the respective jsp files. Users are not supposed to access the jsp files directly. How to prevent, if a user access the jsp file directly by typing the url...This is possible after establishing the session...Is there any way to check this in the resin configuration, so that automatically redirecting to the servletIn resin.conf some mappings can be done for servlets..Is it possible for jsp..? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=906307 You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex JGURU PREMIUM SERVICE! How often has jGuru helped you solve a problem? Contribute to the Java community and keep jGuru the best place to get answers by becoming a premium member. Get the World's BEST JAVA SEARCH ENGINE, FASTER PAGE RENDERING, and NO ADS. Just 4.95 a month or subscribe for a year at 49.95 and get 12 months for the price of 10 and a FREE XL JGURU T-SHIRT! Sign up now and try out the premium service for two weeks at no charge! http://www.jguru.com/misc/page.jsp?fsm=premiumregnode=blurbsrc=email Hi. You asked to be notified weekly when certain jGuru.com items get new entries. ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP What are the different ways of declaring a tag library to use from a JSP? Which methods are compatible from any JSP container? What are the different ways of declaring a tag library to use from a JSP? brWhich methods are compatible from any JSP container? pAssume the following directory structure of a WAR deployed under Tomcat 4.0: br Files in / directory:br test.jsp brbr Files in /WEB-INF directory:br web.xmlbr ha.tldbrbr Files in /WEB-INF/lib directory:br ha.jarbrbr Files in ha.jar:br /meta-inf/taglib.jarbr class files for tag handler(s)br http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=889470 You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex JGURU PREMIUM SERVICE! How often has jGuru helped you solve a problem? Contribute to the Java community and keep jGuru the best place to get answers by becoming a premium member. Get the World's BEST JAVA SEARCH ENGINE, FASTER PAGE RENDERING, and NO ADS. Just 4.95 a month or subscribe for a year at 49.95 and get 12 months for the price of 10 and a FREE XL JGURU T-SHIRT! Sign up now and try out the premium service for two weeks at no charge! http://www.jguru.com/misc/page.jsp?fsm=premiumregnode=blurbsrc=email Hi. You asked to be notified weekly when certain jGuru.com items get new entries. ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat Problem with Tomcat (4 and 3.3.x) with Cocoon 1.8.2: Logicsheet util.xsl not found http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=875317 Tomcat4 and AJP12 Connector http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=875216 Configuring cgi-bin virtual path in a stand alone Tomcat 4 installation http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=875215 You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex JGURU LAUNCHES PREMIUM SERVICES! For as little as 0.14 a day, you can look at naughty pictures on the net...just not at jGuru. You can, however, help keep jGuru the best place to get Java answers by becoming a premium member! Help support jGuru: http://www.jguru.com/misc/page.jsp?fsm=premiumregnode=blurbsrc=email Hi. You asked to be notified weekly when certain jGuru.com items get new entries. ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat Tomcat 4.0.1 startup memory fault on SUSe 7.1 http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=863276 Does Tomcat 4 (Catalina) run with JDK 1.4? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=862243 You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex JGURU LAUNCHES PREMIUM SERVICES! For as little as 0.14 a day, you can look at naughty pictures on the net...just not at jGuru. You can, however, help keep jGuru the best place to get Java answers by becoming a premium member! Help support jGuru: http://www.jguru.com/misc/page.jsp?fsm=premiumregnode=blurbsrc=email Hi. You asked to be notified weekly when certain jGuru.com items get new entries. ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat How do I configure Tomcat 4.0 with the Apache 2.0 web server on a Windows 2000 server? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=853905 You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex JGURU LAUNCHES PREMIUM SERVICES! For as little as 0.14 a day, you can look at naughty pictures on the net...just not at jGuru. You can, however, help keep jGuru the best place to get Java answers by becoming a premium member! Help support jGuru: http://www.jguru.com/misc/page.jsp?fsm=premiumregnode=blurbsrc=email Hi. You asked to be notified weekly when certain jGuru.com items get new entries. ++ Servlets FAQ: http://www.jguru.com/faq/Servlets Why request.getRemoteUser() returns NULL ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=842151 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat Can I update the web.xml (of my context) using my servlet? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=845609 Why request.getRemoteUser() returns NULL ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=842151 You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex JGURU LAUNCHES PREMIUM SERVICES! For as little as 0.14 a day, you can look at naughty pictures on the net...just not at jGuru. You can, however, help keep jGuru the best place to get Java answers by becoming a premium member! Help support jGuru: http://www.jguru.com/misc/page.jsp?fsm=premiumregnode=blurbsrc=email Hi. You asked to be notified weekly when certain jGuru.com items get new entries. ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP I have a Jsp page that accepts some parameters from the user. Now if the user clicks on the Submit button in rapid succession, multiple entries are inserted in DB, though I am checking for duplicate entries. This works fine if the user enters the same data after some time. It gives appropriate message saying Duplicate record. p Please use html tags to format code blocks. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=820070 I'm a bit confused with the term bean in JSP eg. the tag lt;jsp:useBean ... gt; From what I understand, the term bean used here is referring to a simple java object. p When I look through the JavaBean resources, their definition of bean seemed a bit different. p Any comment ? brbrbr Thank u ... http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=820069 Need some assistance on this one. I am very new to managing a java environment and a production application appears to be having a major memory leak. Am currently using JDK 1.3 on a Sun box running Sol 2.6, with 2GB of RAm, and using Orion 1.5.1. I have -Xmx set to 756MB. When Orion is started the heap immediately grabs 512MB, then over the next 6 - 8 hours the heap slowly consumes all but 30 or so MB of RAM on the box, totally disregarding the -Xmx setting. Additionally, if we run a bootstrap of our a client during this time memory consumption is accelerated drastically. Any insights would be greatly appreciated. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=820066 Can any one post a - code snippet - which can create a .txt file on the application server - using the text from a textArea on a JSP page. (Basically the user types some text on the JSP on a client and the text should be saved to a txt-file on ap-server.) http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=820007 What is the easiest way to convert the output of a JSP to PDF? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=820005 You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP Can my JSP page access initalization parameters from the servlet context? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=817005 I am calling my font color=#FFEJB/font method quot;font color=#FFtransfer(request,destination)/fontquot; from inside JSP page.brbr quot;font color=#FFrequest/fontquot;is a HttpServletRequest objectbr quot;font color=#FFdestiation/fontquot; is a stringbrbr it is throwing following exceptions.brbr font color=#FFjava.rmi.MarshalException/font: failed to marshal public abstract void project.upload.Copy.transf er(javax.servlet.http.HttpServletRequest,java.lang.String) throws java.rmi.RemoteException,j ava.io.IOException; nested exception is: java.io.NotSerializableException: weblogic.servlet.internal.ServletRequestImpl java.io.NotSerializableException: weblogic.servlet.internal.ServletRequestImplbrbrbr actually i am trying to uplaod files and in JSP i use lt;input type=filegt; tag to select a file inside a form.the logic is this that request object also have the file stream and using font color=#FF ServletInputStream in = request.getInputStream();/font brbr i can get the file stream and then save this stream in a new filebrbr bWhy it is giving exception and any other way to upload files?/bbrbr http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=816605 If a directory does not have one of the welcome-file I want to redirect to a page, not show the subdirectories and files. How could I do it? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=816600 Using JSP with Tomcat 4, I've noticed that using the response.sendRedirect() method, or jsp:forward tag to another directory on the same server is loosing all the session variables. Does anyone know the reason for this and a work around? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=816599 I'm using jboss(2.4.1) +tomcat(3.2.3).BR I need to share the same directory structure of jsp's for different applications (I have deployed the jsp's as they are not in a war). Also I need to use the same libraries for all the applications. So my questions are:BR Does a declaration in server.xml like this:IBBR lt;Context path=/app1 docBase=/path/WebSites/gt; BR lt;Context path=/app2 docBase=/path/WebSites/gt; BR/B/I means really different applications?BRBR 2. Is there a way, if the above is true, to have different Iweb.xml/I for each of them, I mean to make Tomcat to look for Iweb.xml/I elsewhere IWEB-INF/I for any of the app's?BRBR 3. Another issue is how to share the same libraries, (without affecting the .bat files of jboss/tomcat) between different applications that don't have the same docbase? Is there a way to instruct Tomcat to search for application libraries elsewhere IWEB-INF/lib/I?BRBR http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=816583 Is there a way to run a JSP that will give me the current classpath used by Tomcat? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=816577 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat Tomcat does quot;iunescape/iquot; the underscore (_) char when it is part of a war file. Why? Is there any way to disable this? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=815865 How can I ensure that Tomcat compiles servlets with debugging info included (-g option of the javac compiler)? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=809402 You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP I have two webapps which I would like to pass information between. p I would also like to pass all the session information between the webapps. p An example would be helpful. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=800059 font pre I have to deploy a war file. the structure is /contextroot jsp test.jsp web-inf classes util Connect.class connect.properties The Connect class has to load the properties file. howeever i get error reading the file using getClass().getResourceAsStream(connect.properties); I am deploying it in tomcat. It reads the file if i put it in /bin folder .. how do i avoid this ?? Can u please post a code example /pre /font http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=800058 font pre I have to deploy a war file. the structure is /contextroot jsp test.jsp web-inf classes util Connect.class connect.properties The Connect class has to load the properties file. howeever i get error reading the file using getClass().getResourceAsStream(connect.properties); I am deploying it in tomcat. It reads the file if i put it in /bin folder .. how do i avoid this ?? Can u please post a code example /pre /font http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=800057 I have taken parameters of a form from a jsp. I need to pass that parameters to another jsp. How can I do it without writing that manually using string like another.jsp?name=value. Since there are many paramters, passing through URL is inconvenient. Is there a way to do it ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=800056 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat iOut of environment space/i when running Tomcat on Windows 98. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=803991 You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP In one of my applications i am using jsp for all reporting. But the problem here is that the window.print() command will print everything on screen. br Is it possible to print only a part of the scrren, say the data displayed in a table? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=789539 You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex ++ Servlets FAQ: http://www.jguru.com/faq/Servlets Is possible to subdir webapps directory? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=779619 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat Tomcat 4.0.x with AOLserver 3.4.2br Does anyone have any information on how to integrate Tomcat 4.0.x with AOLserver 3.4.2? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=780567 Is possible to subdir webapps directory? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=779619 You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP Does anyone know the pro's or con's between developing a site for 2k users in either JSP or ColdFusion? What is faster development done in? How well does JSP scale when compared to coldfusion? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=777501 Are Page scoped variables available across multiple requests to the same page? If this is not the case, what is the difference between request scope and page scope for JSP? Also, is this data available even when something like a query string is changed?/p http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=777497 How can I retrieve an expired session? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=777496 pI have a JSP that uses frames inside frames. How can say to the browser to open the Error Page in the main frame (the topmost frame)?/p http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=777478 Is it possible to call a custom tag from another custom tag? If so how? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=777473 I have downloaded the Tomcat 3.3a. After I start up the server.. it puts out this strange message: embeded Tomcat: exception initializing ContextManager. What do I have to do to start my Server without any error messages? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=775521 We have multiple RquestDspacter.forward() in a single JSP file. This JSP runs OK with JRun 3.0 but gives Error 500 (response has already been commited) with Web Sphere 3.4. Is there any restriction in WebSphere that we can have only 1 RequestDispatcher.forward() call in a single JSP? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=775349 Does Buffer size affects the performance in any way? I am using buffer size as 100kb.will it in anyway affect the performance? If yes what is the optimum size that can be used? If no why? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=775339 Is it possible to press a button in one frame and caused a form in another frame to be submitted? pI have a scrollable jsp in one frame and another frame with just buttons. I want to be able to press a button and sumbit a form from the jsp page. Thanks for any replies. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=775280 I am aware of the technical differences between response.sendRedirect() and lt;jsp:forward...gt; i.e. that the first one sends an instruction to the browser to request the specified page, and the second simply sends the specified page.pHowever, can anyone tell me why one should be used instead of the other? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=775275 nbsp;nbsp;nbsp;How to pass parameters to a bean constructor. I can create a bean constructor with parameters. but bow do I pass values to the bean from a JSP page on creation..Is there any way to do this.. br nbsp;nbsp;nbsp;Also, is there any way to access bean properties which are set using jsp:setProperty, from another bean. I am able to access properties which are initialized in the bean itself. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=775216 How can I find out the name of the machine on which the JSP is executing? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=775213 pI'm kind of new to JSP, and am working on putting together a framework wherein I include common elements of a page (title bar, menu, etc.) in a single WAR file and then attach those elements to my content pages that belong to another WAR file./p pThe problem I'm running into is that my include statements in my content pages don't work when I try to include items from the different WAR. I can bring the included pages up, but can't get a JSP to include them./p lt;h4gt;Example:lt;/h4gt; pIn shared.war, I have the file /htmlcommon/header.jsp. In search.war, I have the document /search.jsp/p pIn search.jsp, I have the following include statement:/p codelt;jsp:include page=/shared/htmlcommon/header.jsp/gt;/code pHowever, when I load the page, the header doesn't come in and I get an error 404 - not found./p pI'd appreciate any thoughts on this. Thanks much/p pMichael Lundinbr/ [EMAIL PROTECTED]/p http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=773526 Using Jigsaw, W3C's Server, I have to find out how many sessions are there at a given time. Any help will be greatly appreciated http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=773521 In my jsp page I have 2 combo boxes--data of 2nd comboBox is dependent on the 1st. The data for both is previously obtained from a
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex ++ Servlets FAQ: http://www.jguru.com/faq/Servlets How can a servlet refresh automatically if some new data has entered the database? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=759758 How can I send user authentication information while making URLConnection? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=759689 Can I have some simple code for my own connection pooling class? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=759672 Using WebLogic 6.1, why can't I load a servlet from a JAR file in my /WEB-INF/lib directory? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=759427 What's the initial user name and password for Jakarta Tomcat 4's admin tool? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=757542 Why can't I upload image files using com.oreilly.servlet.multipart.FilePart? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=757536 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat What's the initial user name and password for Jakarta Tomcat 4's admin tool? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=757542 Why can't I upload image files using com.oreilly.servlet.multipart.FilePart? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=757536 Tomcat 4.0.x Class org.apache.jsp.{Class} not found. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=753900 Fatal error: The encoding Cp1252 is not supported. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=753194 You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP How to close database connection explicitly when session is ended? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=744074 ++ Servlets FAQ: http://www.jguru.com/faq/Servlets How can I unit test my servlets? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=744086 How to get url of current request from HttpServletRequest? for example http://site/index.jsp?id=1; http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=744079 How to close database connection explicitly when session is ended? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=744074 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat Automatically redirect on SSL port? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=748030 How can I unit test my servlets? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=744086 You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP I have several jsp pages that are referenced in an SSL server, and non-SSL server. To avoid the this document contains some unencrypted data error, I want to have it look at the HTTPS variable apache sets and see if its in secure mode. p So, if $HTTPS == on, I want to write:br img src=https://content.domain/images/foo.jpg; br else I want to write:br img src=http://content.domain/images/foo.jpg How do I do this? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=741813 How can I make a JSP page implement the SingleThreadedModel interface? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=741113 Using JSP I can use implicit object ttexception/tt when my JSP page is declared with lt;%@ page isErrorPage=true %gt; directive. But how to get this reference programmatically, for example with a servlet ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=740991 pI have a framed JSP application and would like to make it so pages meant to be viewed as a frame can only be viewed as a frame. pSo, if they type the direct URL to that frame, I would like that page to check to see what frame it is in, and if it is in, say, _top, then redirect to the main (framed) page. pIs this possible? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=740988 I want to ship my JSP-based application to my customers by bundling it with Tomcat. Is Jakarta Tomcat 4.0 freeware? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=740986 If we declare a variable, say int i=3 in jsp file, then in what method does this variable reside? Is it within service() or the init() method? If this resides in service(), how can I make to be in init() and vice versa? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=739377 I want to create a Error Page and save the StackTrace within a String type variable.br p My code is:p lt;!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//ENgt;br lt;%@ page import=java.lang.Exception,java.io.*%gt;br lt;%@ page isErrorPage=true %gt;br lt;htmlgt;br lt;headgt;br lt;titlegt;Untitledlt;/titlegt;br lt;/headgt;br lt;bodygt;br Fehlerp pFehler: lt;%=exception.getMessage()%gt; plt;% PrintWriter writer = new PrintWriter(out);%gt; Stack: lt;% exception.printStackTrace(writer);%gt; pgetLocalizedMessage = lt;%=exception.getLocalizedMessage()%gt; ptoString = lt;%=exception.toString()%gt;br lt;/bodygt;br lt;/htmlgt;p But here, the StackTrace is printed directly within the Page. How do I save it in a String variable? I want to send myself an automatic report if there is any error.p http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=739375 pHello! I am trying to include a JSP page that contains commonly used html/java code, into another JSP page multiple times using the jsp include directive./p pThis causes the parser in Websphere Appl. Server 3.5.3 to display an error page that saysbr ttorg.apache.jasper.compiler.ParseException: Seen file include.jsp already, maybe this is a recursive include?!/tt/p pHowever, when developing and testing the JSP page in Visual Age's 4.0 Websphere Test Environment, everything works fineWhy?/p pIf Websphere Application Server is right about not allowing me to include the same JSP page several times, is there some other way perform this task?/p http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=739372 I need to allow users to upload files and pictures. br When they upload pictures, I need to create thumbnail for them on the fly. br Is there any taglibs or java source to do this from JSP or servlets? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=735673 I need to allow users to upload files and pictures. br When they upload pictures, I need to create thumbnail for them on the fly. br Is there any taglibs or java source to do this from JSP or servlets? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=735672 My Jsp file need to forward a request to another servlet which is located in another Web Application on another machine. How can I do that? If I also want to add more parameters to the original request from the jsp file, what should I do? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=735653 ++ Servlets FAQ: http://www.jguru.com/faq/Servlets Using JSP I can use implicit object ttexception/tt when my JSP page is declared with lt;%@ page isErrorPage=true %gt; directive. But how to get this reference programmatically, for example with a servlet ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=740991 Why do I get the error borg.xml.sax.SAXParseException :
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP How can I get the complete URL address (like www.jguru.com (with or without http://;)) from a HttpServletRequest? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=734942 Is there any justification in creating a cache that maintains values pulled from a given property file so that your app does not have to continually getProperty() on the same property over and over again? p I suppose the key question is: How much of a performance hit is it to access a property file as opposed to maintaining a cache (HashMap) of key / value pairs? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=733887 Can someone explain to me what this code does and what situations it needs to used? lt;headgt; lt;meta http-equiv=refresh content=0; url=/targetpage.jsp /gt; lt;/headgt; http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=731186 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat Reverse Proxying and Redirection issue. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=734227 You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP If I have a URL (GET) param and hidden (POST) field in a form with the same name, how can I get and differenciate them? I have the following code:p tt lt;form name=someForm method=post action=somePage.jsp?id=100gt;br nbsp;nbsp;lt;input type=hidden name=id value=200gt;br lt;/formgt;br /tt p I need to differenciate between the id in the URL parameter and the id in the form. I know you can use getParameterValues() to get multiple values but I need to know which one belongs to the URL or form because sometimes I will get only one of them. Is it possible? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=724996 p I understand that a JSP session cookie is not persistent. Once all browser instances are closed, the session cookie is gone. pIs there a way to make the session cookie persistent like a regular cookie? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=724993 ++ Servlets FAQ: http://www.jguru.com/faq/Servlets Since session.getValue(name) has been deprecated, what method do I call instead? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=724725 What is the difference between irequest.getAttribute()/i and irequest.getParameter()/i? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=724724 How can I store international / Unicode characters into a cookie? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=722908 How can I access one servlet method from some other servlet in same context? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=722714 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat Unable to load class message under Tomcat 3. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=726062 Is there a way to save files to a directory which will survive upgrades to the web application? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=726038 Tomcat 4 and XML Parsers. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=720733 You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex ++ Servlets FAQ: http://www.jguru.com/faq/Servlets How do I pass some servlet variable to javascript? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=715231 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat Cannot run Tomcat 4.0.1 under Linux (Suse 7.2)... getting Segmentation Fault. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=715375 You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP Can I have Perl syntax regular expressions within my JSP pages? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=705125 Can I make use of scripting languages like Tcl, Perl, Python, Rexx, etc. within my JSP pages? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=705120 Is it true that servlet containers service each request by creating a new thread? If that is true, how does a container handle a sudden dramatic surge in incoming requests without significant performance degradation? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=705119 Where can I find a JSP tag library for sending mail from JSP pages via the JavaMail API? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=705110 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat Where should I copy the class file of applet in Tomcat? Where should I copy respective HTML file? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=705530 You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP What is JSP Standard Tag Library (JSTL)? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=704343 How can I protect my JSP resources using security realms under Tomcat 4? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=704339 Can Tag Libraries be used to internationalize an application? If yes, then what are the advantages and disadvantages? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=704229 I have included some audio files in a jsp page. The audio files are in .rm extension. When I click on the hyperlink for the audio file in the browser, instead of playing the audio, it shows some junk data in the web page. How do I remedy this? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=702573 How can I distinguish b/w 2 buttons which are submitting the same form from within my JSP page? I'd like to solve this problem without using JavaScript. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=702133 ++ Servlets FAQ: http://www.jguru.com/faq/Servlets Is it possible to make calls to C or C++ methods from a servlet? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=594580 How to check for the validation of a Unix login username and password from Java? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=594578 Our servlet program needs to read an image file (*.jpg or gif) and create thumnail files. Is there any program available I can use ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=594565 I read the section on Filters and the spec seems to be silent on some issues... Can you clarify? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=594562 How do I set a System Property and access it from a Servlet? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=594561 Is it better to have lots of methods to my servlet, or to keep the code inside the doGet or doPost method? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=594560 When two or more people are using my servlet, why does everyone see the data for the person who has logged in latest? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=594540 How do i find out whether a request to a particular servlet is coming from another servlet or, if it is coming from a user request? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=594117 You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP Can I make a jsp custom tag to return a value in to a jsp variable.p I want a jsp custom tag to evaluate some condition based on the parameters I pass and return a boolean to the jsp page in a java variable (type boolean).p Can anybody give some sample of the code using similar functionality. brCan we some how use the get methods in the tagHandler in our jsp to retrieve the values? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=593533 Is it possible to invoke customtags onEvents like onClick? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=592466 Here is what I have: P 1. My application is under /opt/tomcat/webapps/myApp br 2. My jsp file is : /opt/tomcat/webapps/myApp/web/test.jsp br It contains; br . . . br lt;% br String configFile=getInitParameter(configFile); br System.out.println(configFIle=+configFile); br %gt; P 3. My web.xml is: /opt/tomcat/webapps/myApp/WEB-INF/web.xml br It contains: lt;web-appgt; br lt;servletgt; br lt;servlet-namegt;testlt;/servlet-namegt; br lt;jsp-filegt;/web/test.jsplt;/jsp-filegt; br lt;init-parametergt; br lt;param-namegt;configFilelt;/param-namegt; br lt;param-valuegt;TOTOlt;/param-valuegt; br lt;/init-parametergt; br lt;/servletgt; br lt;servlet-mappinggt; br lt;servlet-namegt;testlt;/servlet-namegt; br lt;url-patterngt;/web/test.jsplt;/url-patterngt; br lt;/servlet-mappinggt; br lt;/web-appgt; P What am I doing wrong? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=592461 I'm working on the JSP - Tomcat model, I'm using JSPC to pre-compile my JSPs, Is there a way to prevent any new (non pre-compiled) JSPs from being executed (compiled) in tomcat? ie. I do not want any new JSPs , which have not being pre-compiled to be executed via tomcat on the browser, Is there any property/configuration file which I need to change in Tomcat?? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=592460 Why use JSP? All that we can do with scriptlets we can do with JavaScript as well, I think. Can somebody explain? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=590882 We are building a series of JSP pages, each of which is responsible for producing a different area of the screen. Any given screen that the end user sees, therefore, is made up of a number of blocks, each of which has been generated by a single JSP. The top level JSP calls in the blocks using a jsp:include. We are trying to use the JSP errorPage directive on every JSP to display an error to the user if something goes wrong with any of the blocks, but are finding that we end up with the error page only taking up part of the screen (for the block which had an error), whereas we would like the whole screen to be filled up by the errorPage. In other words - if something goes wrong with any of the blocks that comprise a screen - we would like to display nothing but the error page. What is the best way to do this ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=590880 ++ Servlets FAQ: http://www.jguru.com/faq/Servlets HttpUtils.parseQueryString is deprecated. What should we use instead ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=587251 In some web.xml I find DOCTYPE reference of web-app_2_2.dtd,(in Weblogic 5.1 example) in others, of web-app_2.2.dtd (in java pet store). What is the difference between the two DTDs? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=586710 What are the steps that I need to follow to deploy my servlet in WebLogic 6.1? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=586701 How can I suppress the parameters from displaying in the URL? For instance, if I pass in a password, I don't want it to show up in the address bar. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=586493 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat Why is Tomcat 4.0 so slow when connecting via a URLConnection? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=588390 You can
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP Why is it strongly recommended that any JavaBean used within a JSP page belong to a named package? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=585610 You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP My JSP application runs fine sometimes, but on other instances, when i try to refresh the page, the server outputs only a part of the page. In the Tomcat Console, I see IOException, Connection reset by peer. If I keep refreshing the page, it loads the complete page at some point. Otherwise I have to restart the server and try again. Any suggestions on how I can overcome this? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=568124 I'm working on the chinese version of our project. I already set the charset to GB2312 for all jsp pages to display simplified chinese correctly. Now I need to pass data within forms between jsp pages. In the english version, we used request.getParameter to receive these data, but after changing the charset setting, it causes the get data to be unreadable. Any solutions on how I can overcome this problem? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=568118 I am getting an Out of Memory error running my JSP applications under Tomcat. How do I increase the default JVM heap size settings that Tomcat uses upon startup? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=568115 I have developed a site in JSP. Whenever I type www.name.com in address bar the url changes to www.name.com/index.jsp. How do I prevent the index.jsp from showing up in the address bar? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=568108 I have got this error when I tried to access the Tomcat welcome page at http://localhost:8080 using Tomcat 4.0. p font size=3pre Starting service Tomcat-Standalone Apache Tomcat/4.0.1 Starting service Tomcat-Apache Apache Tomcat/4.0.1 java.lang.NoSuchMethodError at org.apache.catalina.connector.ResponseStream.flush(ResponseStream.java:244) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:245) at java.io.PrintWriter.flush(PrintWriter.java:120) at org.apache.catalina.connector.ResponseWriter.flush(ResponseWriter.java:125) at org.apache.catalina.connector.ResponseBase.finishResponse(ResponseBase.java:481) at org.apache.catalina.connector.HttpResponseBase.finishResponse(HttpResponseBase.java:229) at org.apache.catalina.connector.http.HttpResponseImpl.finishResponse(HttpResponseImpl.java:288) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1038) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106) at java.lang.Thread.run(Thread.java:484) /pre/font/p pThe server starts up fine. The error comes up when I access the welcome page. All my other JSP codes residing in Tomcat cannot be access as a result of this problem./pbr pI have tried to reinstall the entire Tomcat Server and JDK 1.3 to ensure that everything is the default setting but the problem still persists. This problem came all of a sudden. There was no problem at all in the first place./p http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=568095 How can I read a text file from JSP page? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=566162 How do i specify Application-level variables in JSP? p I want to do something similar to the global.asa in ASP, where I can specify application and session variables. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=566160 How can I read a text file from a JSP page? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=566159 Are global variables in the included file (using lt;jsp:include/gt;) available in the file that includes it? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=566158 I have a problem and I'm hoping you can help me. I have a jsp that's displaying data, which length depends on the user. It takes up to 10 minutes sometimes to display a page. I don't want to break my page into multiple pages, but what I want to do is to display line by line on the screen as the data is being read. What happens now, is the browser waits until all the data is processed and then displays a page. Any ideas how to do this? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=565046 I want to download files within a client browser from a web server using JSP. How can I do this? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=563827 ++ Servlets FAQ: http://www.jguru.com/faq/Servlets I have got this error when I tried to access the Tomcat welcome page at http://localhost:8080 using Tomcat 4.0. p font size=3pre Starting service Tomcat-Standalone Apache Tomcat/4.0.1 Starting service Tomcat-Apache Apache Tomcat/4.0.1
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP Someone just told me that when you close your browser, your JSP session (login in this case) is not ended, so that if you start up another browser and go to your site, the JSP engine still thinks your logged on. Is this true? If so, how to end that session before shutting down the browser? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=550560 I'm quite new to XML and JSP so here goes. I want to pass an XML message to a jsp via the URL (i.e. GET method). My questions: 1) What will the actual URL end up looking like? 2) How can my jsp retrieve the XML? (I know how to retrieve XML from a file in the jsp, but don't know how to retrieve the XML from the URL). A quick example would be greatly appreciated. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=550558 What are the differences between JSP 1.1 and JSP 1.2? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=550555 Can my JSP application validate users against an LDAP server which contains the userid's and passwords for all the employees? If so, how can I connect with the LDAP server and perform this authentication? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=550549 ++ Servlets FAQ: http://www.jguru.com/faq/Servlets How to get the values of the variables in a different session? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=559280 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat How to run Tomcat as a background service from a telnet session? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=556838 Tomcat + Apache + Cocoon Performance bottleneckp How to find out the bottleneck is on Apache or tomcat or Cocoon? What can we do to improve the performance? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=552095 DTD for Tomcat 4.0.1 Does anyone know where I can obtain the DTD for Tomcat 4.0.1's server.xml ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=552077 Different webapps using different log4j.properties file. p http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=550391 You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex SPONSORED BY developerWorks need it? get it. tools, code and tutorials for open-standards based development. Stay informed with dW's weekly email newsletter http://www.jguru.com/misc/register_devworks.jsp?src=notify - Hi. You asked to be notified weekly when certain jGuru.com items get new entries. You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp ++ Servlets FAQ: http://www.jguru.com/faq/Servlets Is there any way to change/set owner of a file that is uploaded, before it's saved to the filesystem? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=543979 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat Is commercial support available for Tomcat? My company is interested in purchasing technical support (24x7) for Tomcat (on Solaris). Does anybody know of any organisation able to offer a support service? (please post reply here and also email to me [EMAIL PROTECTED]) http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=544502 Tomcat and WebDav Security p I am attempting to configure Tomcat's WebDav application (http://localhost:8080/webdav) to allow everyone to view the directory. However I need authorized users to be able to edit the content of the directory. p http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=544213 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex SPONSORED BY developerWorks need it? get it. tools, code and tutorials for open-standards based development. Stay informed with dW's weekly email newsletter http://www.jguru.com/misc/register_devworks.jsp?src=notify - Hi. You asked to be notified weekly when certain jGuru.com items get new entries. You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP In my JSP file i am trying to use getRemoteHost() method to retrieve the computer name. It works in all the systems. but in one machine instead of displaying that computer name it is displaying the IP address of that computer. I dont know why it is displaying like that. do i need to change any settings in that particular machine ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=532449 How can I send email from a JSP page with HTML format? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=532445 Can I instantiate the same JavaBean multiple times within a JSP page by associating each instance with a different scope? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=532444 Is there a way how the output of a JSP page could be compressed by removing all bCR/b, bTABs/b, bSPACEs/b from the HTML? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=532208 I'm specifying the error page as a page directive in a page. When there is an exception in the JSP page, the error page is called. I want to pass a parameter from the current page to the error page when there is an exception . Is this possible? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=532207 I need to do a lot of background work in my jsp and i do not want to keep my client waiting. Hence i want to redirect my client to main menu page and continue with my processing. Is it possible to implement this using multi-threading in a JSP? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=532203 Can I use either the include directive or include tag to bring in a static HTML file that is residing on either a different server or on the same machine but outside the directory structure of the web server?/p http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=532199 I have a JSP which does some intensive I/O and consequently takes approximately 20 seconds or so to load. How can I create a loading message/HTML page which is invoked while the page is processing and then gives way to the JSP? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=532196 Does anybody could explain me the use of bpageContext.include(String relativeUrlPath);/b? What is the difference with lt;@ include file=...gt; tag? /p http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=532194 Is it bad form to put most of your code in a try catch block? I am using an error page to catch my exceptions but some of them are slipping through. brbrI am tempted to wrap everything in the try catch so my users never see an ugly null pointer exception again. brbrAny suggestions? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=532190 How can I prevent data to be added into my database twice when using a form on a JSP page? On Browser refresh, the same data is added to my database table. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=532188 I have trouble displaying a string like lt;some datagt; via JSP, since they interfere with HTML tags. For example, when displaying lt;[EMAIL PROTECTED]gt;, the lt;[EMAIL PROTECTED]gt; disappears. Is there any workaround for this? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=532180 ++ Servlets FAQ: http://www.jguru.com/faq/Servlets Can I place my classes somewhere other than inside WEB-INF? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=536258 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat Can I place my classes somewhere other than inside WEB-INF? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=536258 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex SPONSORED BY developerWorks need it? get it. tools, code and tutorials for open-standards based development. Stay informed with dW's weekly email newsletter http://www.jguru.com/misc/register_devworks.jsp?src=notify - Hi. You asked to be notified weekly when certain jGuru.com items get new entries. You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP How can I interrupt a request already sent to a JSP servlet engine, and thus stopping or altering the thread the server is executing for that request? For example I want to use a cancel button on my form's page to interrupt an already submitted request which may take a while to finish. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=525737 I want to pass an array of values that I have built within a JavaBean to a JSP, and for JavaScript within the page to process it and display it. The Bean sets the array, and the JavaScript has an identical array defined. I have tried font size=2preijavascriptArray/i = lt;%= myJavaBean.getArray() %gt;;/pre/font but this doesn't work. Any ideas, anyone? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=525736 From within my JSP page, how do I know whether the user performed a GET or POST request? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=525734 I want to use the logger taglib from Jakarta which uses log4j. Does anyone have a sample log4j properties/initialization file that they would post so that I could take a look? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=525565 How can I get the JSP container to realize when I've modified a file that was included using lt;%@ include file=XXX %gt;, and to recompile files that include it? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=525557 ++ Servlets FAQ: http://www.jguru.com/faq/Servlets Do I have to synchronize read-only access to a text file? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=531243 What is a session? What is the difference between session and cookie? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=528741 How can I modify a Request object before passing it to another servlet? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=528234 How do I set session timeouts of greater than 30 minutes? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=525564 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat Does tomcat support Web Services? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=531241 How do I have to configure Tomcat 4.0 for using JDBC 2.0 DataSource objects? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=531070 Can I use *.ear files in Tomcat? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=528164 Why can't Tomcat find my Oracle JDBC drivers in classes111.zip? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=528159 I want to use the logger taglib from Jakarta which uses log4j. Does anyone have a sample log4j properties/initialization file that they would post so that I could take a look? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=525565 How do I set session timeouts of greater than 30 minutes? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=525564 Why do I get the message FAIL - Unknown command when trying to run the Tomcat 4 Manager application? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=525563 How to make Tomcat use the Xerces XML parser instead of the Sun JAXP XML parser? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=525561 How can I get the JSP container to realize when I've modified a file that was included using lt;%@ include file=XXX %gt;, and to recompile files that include it? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=525557 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex SPONSORED BY developerWorks need it? get it. tools, code and tutorials for open-standards based development. Stay informed with dW's weekly email newsletter http://www.jguru.com/misc/register_devworks.jsp?src=notify - Hi. You asked to be notified weekly when certain jGuru.com items get new entries. You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP How to return a value from a servlet to a JSP? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=524336 ++ Servlets FAQ: http://www.jguru.com/faq/Servlets Can we capture clickstreams using servlets? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=524483 How can I call a servlet from a regular Java application? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=524479 How do I play a sound on the bserver/b from inside a servlet? The Java Sound API doesn't seem to work. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=524475 When downloading a PDF document that is less than 8000 bytes long, the document is downloaded but is not displayed. How can I fix this? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=524472 After HttpSession.invalidate() is called I expect the next getSession call should return a new session with a different session id. However, it returns the same sessionid ??? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=524347 When using URLConnection to upload an object from applet to servlet, the servlet's doGet method is never executed. Why? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=524345 How to return a value from a servlet to a JSP? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=524336 Can i setup Tomcat to run inside the web server process itself (on Netscape/IIS?), instead of running it as a separate process. Do there something available i can use or do i have to write my own JNI code for this? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=520057 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat How do I configure Tomcat so that my error messages come up in a file, not in the console? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=525459 Why do I get an IllegalStateException when using lt;jsp:includegt; on a css or js file? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=525430 Does Tomcat 4 have a GUI? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=524503 My Tomcat 3.x server is routinely being attacked by nimda. Of course it has no effect, but I'm getting a little tired of it and want to track down where the attacks are coming from. Is there a way to configure Tomcat to display IP addresses when it logs errors in tomcat.log? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=524501 How do I integrate Tomcat 4.0 with Apache? The documentation is sparse. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=524500 How do I determine a class's file location at runtime? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=524494 Can i setup Tomcat to run inside the web server process itself (on Netscape/IIS?), instead of running it as a separate process. Do there something available i can use or do i have to write my own JNI code for this? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=520057
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex SPONSORED BY developerWorks need it? get it. tools, code and tutorials for open-standards based development. Stay informed with dW's weekly email newsletter http://www.jguru.com/misc/register_devworks.jsp?src=notify - Hi. You asked to be notified weekly when certain jGuru.com items get new entries. You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP Why do I get the error IllegalStateException when using the RequestDispatcher? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=501393 Using jsp:forward on Tomcat, why do I get the error ttjava.lang.IllegalArgumentException at javax.servlet.http.HttpUtils.parseName(HttpUtils.java:285)/tt ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=500043 How do I load an applet from a servlet or JSP? Where do I place my applet class files? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=499425 I am using a JSP page to submit data for insert into a database.brIf the refresh button (in the browser IE5) is clicked, the data is resent and inserted into the database again.pHow can this be prevented? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=497628 How can I prevent user from viewing a page that he already passed. i.e I have a form that contains some textboxes to fill some info..after submited the form it will redirect to another page. I need to prevent user to view the page again by pressing back botton. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=497557 ++ Servlets FAQ: http://www.jguru.com/faq/Servlets Why do I get the error IllegalStateException when using the RequestDispatcher? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=501393 How do I get a session object to perform a task before it is invalidated? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=500657 How do I use servlets to return dynamically generated PDF documents? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=500656 How do I pass params like -D to the JServ JVM? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=500047 How do I load an applet from a servlet or JSP? Where do I place my applet class files? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=499425 Can anyone tell me the advantages and disadvantages between Tomcat, JRun, and JServ for Apache Web Server? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=497500 How can I implement returning part of a large (1000+ rows) result set to the client? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=497499 What is the best way to store a large object, such as a result set, across requests, but only for a short term, say for using the result set for printing for instance? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=497495 How do I load a file from inside a WAR file? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=497268 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat Why do I get the error IllegalStateException when using the RequestDispatcher? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=501393 Using jsp:forward on Tomcat, why do I get the error ttjava.lang.IllegalArgumentException at javax.servlet.http.HttpUtils.parseName(HttpUtils.java:285)/tt ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=500043 Why can't my webapp find classes in the WEB-INF/classes directory? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=57 How can I authenticate the user from a database? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=52 Is it possible in Tomcat to allow running all servlets from a directory without configuring each one in web.xml ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=499441 How do I load an applet from a servlet or JSP? Where do I place my applet class files? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=499425 Does Tomcat support JMS (Java Messaging Service)? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=499412 Can anyone tell me the advantages and disadvantages between Tomcat, JRun, and JServ for Apache Web Server? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=497500 How can I redirect JSP requests from an IIS server on one machine to the Tomcat server on another machine?
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex SPONSORED BY developerWorks need it? get it. tools, code and tutorials for open-standards based development. Stay informed with dW's weekly email newsletter http://www.jguru.com/misc/register_devworks.jsp?src=notify - Hi. You asked to be notified weekly when certain jGuru.com items get new entries. You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP Can I submit multiple forms, say form1 and form2, to a JSP page by clicking a single submit button? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=493400 I am creating my dynamic content by invoking multiple ttlt;jsp:includesgt;/tt. Do I need to call ttlt;jsp:useBeangt;/tt; in all the JSP's or will a one time initialization within the holder JSP suffice? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=493247 ++ Servlets FAQ: http://www.jguru.com/faq/Servlets Should I use one servlet supporting GET to show pages and POST to process forms, or two separate servlets? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=497265
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex SPONSORED BY developerWorks need it? get it. tools, code and tutorials for open-standards based development. Stay informed with dW's weekly email newsletter http://www.jguru.com/misc/register_devworks.jsp?src=notify - Hi. You asked to be notified weekly when certain jGuru.com items get new entries. You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP Why do I get Note: sun.tools.javac.Main has been deprecated when compiling my JSP? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=492838 ++ Servlets FAQ: http://www.jguru.com/faq/Servlets How do I use Visual Cafe to debug my servlets running inside the WebLogic Web server? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=492844 How do I parse hex integer Color codes passed as parameters to my servlet? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=492831 Why do I get the error b Http Method POST is not Supported by this URL/b? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=492829 How do I use a RequestDispatcher to call one servlet from another servlet? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=492819 Is it possible to set the user name and password on an HTAccess certificate directly from my code rather than have the user do it from the HTAccess prompt? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=492801 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat How do I install Tomcat on Linux without getting permission denied errors? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=492863 Is TOMCAT_HOME/conf/web.xml ever actually used? If so, what for? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=492857 Is there any way that we can stop logging of request parameters in jasper.log? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=492851 Why do I get Note: sun.tools.javac.Main has been deprecated when compiling my JSP? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=492838 Using Tomcat+Apache, my web.xml's lt;welcome-file-listgt; is being ignored, and only Apache's DirectoryIndex is being used. Why? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=492782 How do I use Tomcat's error-page and Apache's ErrorDocument directives together? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=492774 I have installed Tomcat as an NT service. How can I prevent it from terminating when the user logs off? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=492772 Can the web application reside on a machine other than where Tomcat is running? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=492632 When I run startup.sh under Linux, why do I get a Permission Denied error? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=492620
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex SPONSORED BY developerWorks need it? get it. tools, code and tutorials for open-standards based development. Stay informed with dW's weekly email newsletter http://www.jguru.com/misc/register_devworks.jsp?src=notify - Hi. You asked to be notified weekly when certain jGuru.com items get new entries. You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP I need to trap all kinds 500 error on my jsp page. I have tried the lt;%@ page errorPage=myerror.jspgt; but it only works on selected errors. How can I trap all errors, including syntax errors? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=484004 Does anyone know how I could display an rtf string from JSP? I have resumes stored in a database and want to display them in a browser. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=484003 Does anyone know how I could display an rtf string from JSP? I have resumes stored in a database and want to display them in a browser. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=484002 How can I create complex, pretty reports which can be printed at the client from JSP? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=484001 I know I can get JP tag attributes with setXXX() method but I want to know if it is possible to modify attribute values within a tag handler. p For example:br I want to do iterator tag that iterates over a list and at each iteation it can assign the current iterated value to one of its attributes and cause the JSP page to display different values at each iteration. Is there any way to do this? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=484000 Is it possible to view which web server or servlet engine is used: IIS, iPlanet etc. on a JSP page? Just like System.getProperty(os.name) for the operating system? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=483999 How do I stop a JSP based download adding a newline to the first character of a file? I am using JSP to set a Content-Disposition in order to keep IE from automatically opening Excel/Word/Acrobat/etc when it sees a file type it recognizes. However, when I use ServletOutputStream to do this, for some reason I end up with a newline (ASCII hex 0A) character at the beginning of my file (I discovered this with a hex editor). This causes Word and Excel to blow up when I try to open the files because they can't cope with the extra character. (I am using the ATG Dynamo Application Server and am hoping this is not an artifact of the implementation.) p This is what my JSP looks like: pre lt;% // fname is the file name File f = new File(fname); InputStream in = new FileInputStream(f); ServletOutputStream outs = response.getOutputStream(); int bufferSize = 4096; byte[] ioBuffer = new byte[bufferSize]; byte[] lastBuffer; // last buffer long counter = 0; // how many bytes we have gotten through long fileSize = f.length(); response.setHeader(Content-Disposition, attachment;filename= + shortname); response.setContentType(application/download); // in a big file, use big buffer chunks while (fileSize gt; (counter + bufferSize)) { in.read(ioBuffer); outs.write(ioBuffer); counter += bufferSize; } // add final chunk if the fileSize does not happen to be divisible by the bufferSize if (fileSize gt; counter) { lastBuffer = new byte[ (int) (fileSize - counter) ]; in.read(lastBuffer); outs.write(lastBuffer); } outs.flush(); outs.close(); in.close(); %gt; /pre I also tried to do this: pre String headers = Content-Disposition:attachment;filename= + shortname + \r\n + Content-Type: application/download\r\n\r\n; outs.write(headers.getBytes()); /pre in place of the setHeader() and setContentType() but I end up just opening a webpage with that string followed by the bytes from the file I want downloaded. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=483996 ++ Servlets FAQ: http://www.jguru.com/faq/Servlets Are there any restrictions placed on applets loaded from HTML pages generated from servlets / JSP pages? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=485955
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex SPONSORED BY developerWorks need it? get it. tools, code and tutorials for open-standards based development. Stay informed with dW's weekly email newsletter http://www.jguru.com/misc/register_devworks.jsp?src=notify - Hi. You asked to be notified weekly when certain jGuru.com items get new entries. You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP How can I model a JSP page in UML? What stereotype should I use for JSP within a class diagram? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=481436 I have a .jsp page with an included file (myPage.jsp, with lt;%@ include file = 'includedFile.jsp'gt;). When I delete or modify the included file on the server, the old one still shows in my browser, even if I manually refresh/reload the whole page (i.e. refresh 'myPage.jsp'). The only solution I have found is to delete the whole page ('myPage.jsp'), and upload it again - then it includes the more recent included file.br The server is running Apache/Tomcat under Linux.br http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=481051 ++ Servlets FAQ: http://www.jguru.com/faq/Servlets Why do I get the error java.lang.IllegalStateException: Header already sent ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=480147 Is there a simple example of how to use web application security in WebLogic? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=479768
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex SPONSORED BY developerWorks need it? get it. tools, code and tutorials for open-standards based development. Stay informed with dW's weekly email newsletter http://www.jguru.com/misc/register_devworks.jsp?src=notify - Hi. You asked to be notified weekly when certain jGuru.com items get new entries. You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP My app is in Japanese, and I'm running Tomcat 3.2 and JDK 1.3.1. I am including a header on a main page using the ttfont size=3lt;%@ include file %gt/font/tt directive. At the top of the main page, I first specify the JSP page directive (to set this JSP translation's content type and character set), then include the header file. ttfont size=3pre lt;%@ page contentType=text/html; charset=shift_jis%gt; lt;%@ include file=header.jsp %gt; /pre/font/tt The content from the main file renders correctly in the browser as shift-jis characters, but the content in the header is the kind of ?z?[???R??? junk that anyone who has wrestled with non-Latin1 is most likely familiar with. (Cultural sidenote- the Japanese call that moji-bake or letter ghost).p Anyway, since you can only specify the contentType property once per page translation (Tomcat throws an error if you try), how can I tell Tomcat that my included page is in shift_jis too?p I found a Sun document in which the following was written:p iThe page directive applies to an entire JSP file and any static files it includes with the Include Directive or ttfont size=3lt;jsp:includegt;/font/tt, which together are called a translation unit./ip So, is this a Tomcat bug? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=468049 From what I know, I should put the path of properties file in the Classpath. While I am developing a web application, I want to host multiple sites in one machine. So how can I use two different properties file? If I specify them in the Classpath, then the first one will be used according to order of the Classpath since both properties files have the same filename. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=466998 I have an application which use a shared library libjchli.so, I have LD_LIBRARY_PATH set to the right dirctory and it works fine. When I tried to convert it to JSP, I got an error message: brjava.lang.UnsatisfiedLinkError: no jchli in java.library.pathbr Apparently libjchli.so is not loaded. Where should the library file be located? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=465753 We have a large JSP from which users are taken to diffent screens and based on the values entered there , the fields in this main jsp are updated. Now, we are reloading the entire jsp each time whenever the control comes back. Instead of this is it possible to reload just that part of the jsp which has changed and read other parts from the cache? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=463941 What procedure must be followed to read and write encrypted cookies to the browser. What's the role of encoding in this ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=463936
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex SPONSORED BY developerWorks need it? get it. tools, code and tutorials for open-standards based development. Stay informed with dW's weekly email newsletter http://www.jguru.com/misc/register_devworks.jsp?src=notify - Hi. You asked to be notified weekly when certain jGuru.com items get new entries. You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP I am trying to implement a RMI server that has a static variable. Is there anyway the clients can access this static variable on the server side and modiy it. After modification, is the change visible in other clients. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=463463 Is there a way to access the HttpSession object of a different web application which is running on the same server? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=463461 Why do Frames suck? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=460110 I am writting an application in javabeans and jsp. When I run the application I have some output and the internal servlet error: attempt to clear a buffer that is already been flushed. My application is running under Tomcat 3.2.2. http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=459355 How do I process gb2312-encoded characters within JSP? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=459354 ++ Servlets FAQ: http://www.jguru.com/faq/Servlets How can I display bar codes in my Java program? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=462245 Why do Frames suck? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=460110 When downloading a file to a client, how can I inform the client of the file size, so it can predict how long it will take? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=460092 How do I download several files at the same time? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=460087
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex SPONSORED BY developerWorks need it? get it. tools, code and tutorials for open-standards based development. Stay informed with dW's weekly email newsletter http://www.jguru.com/misc/register_devworks.jsp?src=notify - Hi. You asked to be notified weekly when certain jGuru.com items get new entries. You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP How can I use a JSP as an Apache ErrorDocument -- so Apache will display bits/b errors using my JSP? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=458488 How do I implement a hit counter in Servlets or JSP? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=456418 Why do I get java.lang.NoClassDefFoundError: sun/tools/javac/Main ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455768 While forwarding from one page to another by using RequestDispatcher, how do I avoid the error quot; OutputStream is already being used for this requestquot; ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455248 What is Ant? Do I need it to run Tomcat? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455192 ++ Servlets FAQ: http://www.jguru.com/faq/Servlets How can I automatically invoke a servlet at regular time intervals using Resin? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=458416 How do I trap a 404 error inside my servlet if my servlet does a ttRequestDispatcher/tt to a non-existent page ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=457102 How do I implement a hit counter in Servlets or JSP? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=456418 Why do I get java.lang.NoClassDefFoundError: sun/tools/javac/Main ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455768 Is there a way in Tomcat to set up zones for servlets like in jserv? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455766 What is the difference between ServletContext.getInitParameter() and HttpServlet.getInitParameter() ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455711 How do I prevent users from viewing the contents of my WEB-INF directory? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455249 While forwarding from one page to another by using RequestDispatcher, how do I avoid the error quot; OutputStream is already being used for this requestquot; ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455248 How to allow the client to download and execute a .bat file? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455219 Can I spawn a background thread from my servlet? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455215 How can I generate an output in CSV format from a database query? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455207 What is a session and why is it required? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455205 How to allow the client to download and execute a .bat or .exe file? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455202 Why do I sometimes get the error ODBC Driver Manager ...function Sequence Error? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455201 How do I process FDF files created by the Acrobat Forms plug-in? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455199 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat How can I use a JSP as an Apache ErrorDocument -- so Apache will display bits/b errors using my JSP? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=458488 Why do I get java.lang.NoClassDefFoundError: sun/tools/javac/Main ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455768 Is there a way in Tomcat to set up zones for servlets like in jserv? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455766 How do I upgrade from Tomcat 3 to Tomcat 4? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455735 Do I need to create my own web.xml file? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455725 What is the right way to set the JAVA_HOME environment variable on Windows NT? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455718 How do you pass options such as -Xrs to the JVM when your Tomcat container is running in-process within a Web
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex SPONSORED BY developerWorks need it? get it. tools, code and tutorials for open-standards based development. Stay informed with dW's weekly email newsletter http://www.jguru.com/misc/register_devworks.jsp?src=notify - Hi. You asked to be notified daily when certain jGuru.com items get new entries. You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp ++ Servlets FAQ: http://www.jguru.com/faq/Servlets How do I trap a 404 error inside my servlet if my servlet does a ttRequestDispatcher/tt to a non-existent page ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=457102
Re: regarding tomcat run in background on win nt
Dhaval Patel wrote: respected sir, my self is dhaval working in java from last 2 years now i want to know that what should i to run the tomcat server in background processes even if I log off my NT session is this possible and if yes then please give me some clue about it bcoz right now I am in great hurry in my project reply asap thanking with anticipation regards - dhaval Read the FAQ: http://www.jguru.com/faq/view.jsp?EID=13457 Also the Tomcat documentation is very helpful. Read the docs, they are your friend.
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . - Alex SPONSORED BY developerWorks need it? get it. tools, code and tutorials for open-standards based development. Stay informed with dW's weekly email newsletter http://www.jguru.com/misc/register_devworks.jsp?src=notify - Hi. You asked to be notified daily when certain jGuru.com items get new entries. You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP How do I implement a hit counter in Servlets or JSP? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=456418 Why do I get java.lang.NoClassDefFoundError: sun/tools/javac/Main ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455768 ++ Servlets FAQ: http://www.jguru.com/faq/Servlets How do I implement a hit counter in Servlets or JSP? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=456418 Why do I get java.lang.NoClassDefFoundError: sun/tools/javac/Main ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455768 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat Why do I get java.lang.NoClassDefFoundError: sun/tools/javac/Main ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455768
[FAQ] jGuru FAQ Update
jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as many other Java topics). Here is an automated update on recent postings to Tomcat-related FAQs. Please direct flames and feedback to [EMAIL PROTECTED] . SPONSORED BY developerWorks need it? get it. tools, code and tutorials for open-standards based development. Stay informed with dW's weekly email newsletter http://www.jguru.com/misc/register_devworks.jsp?src=notify - Hi. You asked to be notified daily when certain jGuru.com items get new entries. You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp ++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP While forwarding from one page to another by using RequestDispatcher, how do I avoid the error quot; OutputStream is already being used for this requestquot; ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455248 What is Ant? Do I need it to run Tomcat? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455192 ++ Servlets FAQ: http://www.jguru.com/faq/Servlets Is there a way in Tomcat to set up zones for servlets like in jserv? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455766 What is the difference between ServletContext.getInitParameter() and HttpServlet.getInitParameter() ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455711 How do I prevent users from viewing the contents of my WEB-INF directory? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455249 While forwarding from one page to another by using RequestDispatcher, how do I avoid the error quot; OutputStream is already being used for this requestquot; ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455248 How to allow the client to download and execute a .bat file? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455219 Can I spawn a background thread from my servlet? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455215 How can I generate an output in CSV format from a database query? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455207 What is a session and why is it required? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455205 How to allow the client to download and execute a .bat or .exe file? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455202 Why do I sometimes get the error ODBC Driver Manager ...function Sequence Error? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455201 How do I process FDF files created by the Acrobat Forms plug-in? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455199 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat Is there a way in Tomcat to set up zones for servlets like in jserv? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455766 How do I upgrade from Tomcat 3 to Tomcat 4? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455735 Do I need to create my own web.xml file? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455725 What is the right way to set the JAVA_HOME environment variable on Windows NT? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455718 How do you pass options such as -Xrs to the JVM when your Tomcat container is running in-process within a Web server? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455716 If I deploy a WAR file while Tomcat is running, is there a way to load (or reload) it without restarting Tomcat? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455587 Using Struts 1.0, why do I get the error cant remove Attributes from request scope? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455577 Can Tomcat be started as a user other than root under Unix? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455567 Is there any way to avoid servlet.log being deleted on restart of tomcat? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455369 When reloading a servlet that uses JNI, why do I get java.lang.UnsatisfiedLinkError: Native Library D:\WINNT\mynamesearch.dll already loaded in another classloader ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455360 What is the password for the Tomcat admin webapp? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455354 How do I prevent users from viewing the contents of my WEB-INF directory? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455249 What is Ant? Do I need it to run Tomcat? http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=455192 How do I stop all running instances of Tomcat?