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=notify&EID=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=notify&EID=777497 How can I retrieve an expired session? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=777496 <p>I 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=notify&EID=777478 Is it possible to call a custom tag from another custom tag? If so how? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=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=notify&EID=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=notify&EID=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=notify&EID=775339 Is it possible to press a button in one frame and caused a form in another frame to be submitted? <p>I 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=notify&EID=775280 I am aware of the technical differences between response.sendRedirect() and <jsp:forward...> 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.<p>However, can anyone tell me why one should be used instead of the other? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=775275 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> 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=notify&EID=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=notify&EID=775213 <p>I'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> <p>The 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> <h4>Example:</h4> <p>In shared.war, I have the file /htmlcommon/header.jsp. In search.war, I have the document /search.jsp</p> <p>In search.jsp, I have the following include statement:</p> <code><jsp:include page="/shared/htmlcommon/header.jsp"/></code> <p>However, when I load the page, the header doesn't come in and I get an error 404 - not found.</p> <p>I'd appreciate any thoughts on this. Thanks much</p> <p>Michael Lundin<br/> [EMAIL PROTECTED]</p> http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=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=notify&EID=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 database. http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=773520 ++ Servlets FAQ: http://www.jguru.com/faq/Servlets Why is my servlet called twice from a JavaScript button? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=777595 How do I run a servlet from command-line mode? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=777592 Does Jserv support the following methods from Servlet spec 2.2? <ol> <li> javax.servlet.http.HttpServletRequest: method getSession </li> <li> javax.servlet.http.HttpSession: method setAttribute </li> <li> javax.servlet.ServletContext: method getRequestDispatcher </li> </ol> http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=777589 Can we use the constructor, instead of init(), to initialize servlet? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=776892 I have been trying to find a way not only to get the user certificate info - i.e. Authentication via DigitalID, but also to have a digest of the request, signed by the client (Web Browser Only - not the Applet/Application case) or something like that, so I can proove to a 3rd party that the user with the specific certificate has issued the specific request. Is it at all possible? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=776825 I put my JAR file inside WEB-INF/lib, but my classes are not getting found. However, when i unzipped classes into WEB-INF/classes/, it works. What's up? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=771307 How do i get the name of the file from a file upload form? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=771302 Request parameter How to find whether a parameter exists in the request object? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=771300 In order to run Struts, do I need to install a servlet container such as Tomcat? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=771298 When I describe the servlet mapping in the web.xml file the url-pattern "/*" means "match all requests". Can I specify the url-pattern like "match all except *.jsp" ? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=768872 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat How to setup Tomcat 4.0.x on Windows 2000 with IIS as an NT Service? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=776546 I put my JAR file inside WEB-INF/lib, but my classes are not getting found. However, when i unzipped classes into WEB-INF/classes/, it works. What's up? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=771307 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]>