Re: Book recommendation
There's one coming out soon - hopefully. Developer's Guide to Tomcat 4 by Alex Garrett Jeff Kean and published by Manning It's due out in October. (It was due out in June when I ordered it about a month ago). Cindy Ballreich wrote: I can't speak to the others, but I really didn't like JSP, Servlets, and Mysql. It reads nicely, but the examples are full of really basic errors. Be sure to check out the reader reviews on Amazon for any book you're interested in. They can be very helpful. At 10:26 AM 6/21/02 -0700, [EMAIL PROTECTED] wrote: Any recommendation for a good book that covers Tomcat and other related open source technologies? More from an application developers point of view as to how various components fit together rather than sysadmin details or exhaustive details about any one particular thing (say JBoss, Servlet etc). Some books that came up on Internet search were... 1) MySQL and JSP Web Applications: Data-Driven Programming Using Tomcat and MySQL By James Turner 2) Apache Jakarta-Tomcat by James Goodwill 3) JSP, Servlets, and Mysql by Dave Harms 4) Professional Java Server Programming (many authors) Any other ones out there and which one would you recommend? das -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Precompiled jsp's
You should be putting your uncompiled jsp's in your context's root directory (webapps/your-context/your.jsp). Tomcat will do the compiling for you. When you access it via http://host:port/your-context/your.jsp, Tomcat will compile it for you and put the class file (and source file) in the 'work' directory, probably tomcat/work/your-context. If it's already been compiled and the timestamp on the compiled version is more recent than the timestamp on your.jsp file, it will use the compiled version it already has. Carl Thys De Wet (ZA) wrote: Ok so I got my JSP's compiled into class files.. Placed them in /WEB-INF/classes.. Now how do I tell Tomcat 3.2.3 to use these class files ... ANy help PLEASE .. *begs on knees* ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **
webapps/lib jar load order
Is there a way to specify the order that jars get loaded/searched in the webapps/my-context/WEB-INF/lib directory? For example, if I place two jar files ( first.jar second.jar ) in the webapp's lib directory, can I configure tomcat so that my webapp's classloader loads/searches second.jar before first.jar, or vice versa? Thanks, Carl
Re: servlets path in tomcat 3.3
Add a servlet-mapping to your web.xml file. servlet-mapping servlet-name SnoopServlet /servlet-name url-pattern /SnoopServlet /url-pattern /servlet-mapping mperreno wrote: Is it possible to use non-standard paths for servlet i.e. use map anything after the context name to servlets: www.foobar.com/foo/SnoopServlet instead of www.foobar.com/foo/servlet/SnoopServlet I managed to do it with tomcat 3.2 but I can't do it with tomcat 3.3 thanks -- mathieu perrenoud [iis]
WAR auto-deploy context permissions
I'm trying to create contexts for the developers at my site by simply posting the war file, eg. mycontext.war, in the webapps directory and restarting tomcat, which creates and automatically extracts it to a context directory named mycontext. It works fine, but the permissions on the directories and files are all only writeable / executable to the owner, which is root (presumably because tomcat was started as root). They are also all in the root group. Is there a way to configure tomcat such that, when the war file is extracted, the expanded context directory hierarchy has the permissions it was either jarred up with, or uses an owner/group other than root so that the permissions can be updated by someone in that group? I'm currently just specifying the context in the server.xml file, creating the directory in webapps and extracting the war file manually, which works just fine. Thanks, Carl
How to setProperty with checkbox group
I'm trying to call setProperty on a group of checkboxes, i.e., multiple values for one parameter. The jsp is as follows: jsp:useBean id="myBean" class="com.company.TheBean" / jsp:setProperty name="myBean" property="selectedItems" param="selectedItems" / The bean's setter is as follows: public void setSelectedItems(String[] selectedItems) { this.selectedItems = selectedItems; } When I access the jsp page on WinNT, Tomcat-3.2.1, it works correctly and the bean's instance variable is correctly populated. When I moved it to Linux, Tomcat-3.2.1, I get the following exception: org.apache.jasper.JasperException: Can't find a method to write property 'selectedItems' in a bean of type 'com.company.TheBean' Any idea what might be causing this? Is there a standard way to setProperty on multi-value form elements, such as checkbox groups? Thanks, Carl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: How to setProperty with checkbox group
Actually, on NT I'm using jdk1.3 and on Linux I'm using 1.2.2. Maybe that's the difference. I did manage to get it to work by using the Request object and setting it explicitly % String[] selectedItems = request.getParameterValues("selectedItems"); myBean.setSelectedItems(selectedItems); % Thanks, Carl Stefan Langer wrote: I really have no idea why it doesn't work in Linux. Btw which SDK are you using on NT and which on Linux?? BUt here a suggestion: Try putting the setProperty tag inside the useBean tag. Something like this jsp:useBean ... jsp:setProperty .../ jsp:useBean/ Might work. hope that helps Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]