Re: [Tomcat Documentation Redactors To Hire] - WAS: TOMCAT SUCKS
Carlos Ferreira wrote: > > i could help with translations: french, german, portuguese And I with the Dutch version. I'd also be willing to write, but I'm quite new with Tomcat and since I started with JServ a year and a half ago, Tomcat isn't very transparant for me, I'm afraid...
Re: Problem with Postgresql JDBC driver
Ryszard Lach wrote: > > and I still receive an error (included at bottom of the message) while calling > Class.forName("postgresql.Driver") in a .jsp file located in .../webapp/my_app > directory. Try not using the DriverManager, like so: Driver drv = org.postgresql.Driver; Connection conn = drv.connect("jdbc:postgresql:localhost", "username", "password"); Worked for me (although you should look for the exact connect-method, I'm not very sure about this one). Kind regards, Tim Stoop
Re: accessing servlets directly
Jim Cheesman wrote: > To be honest, no idea ;) I haven't used JServ so I've no idea how its > repositories worked... I don't suppose that building a redirecting servlet > would be that difficult - add a parameter to a cgi style call, and build > the servlet URL from that. Then call > getServletContext().getRequestDispatcher(myURL).forward(request, response); That would be an idea :) But I found something that could help me, although I can't find documentation on it anywhere... When I look at tomcat-apache.conf, I find this line: ApJServMount /servlet /ROOT ROOT is a directory with a normal structure (WEB-INF and the like). Now, when I want to access a servlet that's located in $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes, I can just enter http://www.myserver.com/servlet/. That works great. No need for /servlet/servlet/. But other Contexts do need that extra "/servlet"-directory, even though I tell them (i.e.) ApJServMount /servlets /servlets Still I need to access the servlets in this Context at http://www.myserver.com/servlets/servlet/. The context is made like this: Now, why can't I access the servlets direct from /servlets, when I *can* do that with the /ROOT context? Does that clarify my question a bit more? Seeing ROOT, I'd say it must be possible, but what's the correct config? Kind regards, Tim Stoop
Re: accessing servlets directly
Jim Cheesman wrote: > And a servlet-mapping entry in the webapp web.xml file: > (For example) <...> > Change the url-pattern if you want - that's what you'll be typing > in/linking to. Ok, but that should be done for every single Servlet? I want JServ-style "repositories", where I can dump my work and try it directly... Or will this solution also work with a wilcard? Kind regards, Tim Stoop
accessing servlets directly
Hi people, Now, when I want to access a servlet, I have to point to http://www.myserver.com/servlets/servlet/. Is it possible to mount the servlets directly to http://www.myserver.com/servlets/? How can I do this? Kind regards, Tim Stoop
Servlet -> PHP
Hi there, We are experimenting with our server a little and I was wondering how I could send output from a Servlet to a PHP-handler? Is that even possible? Can someone show me some sample code? Thanks in advance, Kind regards, Tim Stoop
JServ - Tomcat migration
Hi people, I'm migrating from JServ to Tomcat. I've been using JServ for a year and a half now and like the way it's configurable. Now when I open the server.xml or web.xml files, I don't understand them. Is there somewhere some documentation about how I can exactly migrate? I used to have repositories like /servlet and /admin-servlet (the latter locked up with a in Apache), the first found all it's servlets in /var/servlet and the latter in /var/admin-servlet. How can I achieve the same with Tomcat? The documentation on the site is very obscure in this :( Kind regards, Tim Stoop