Re: Writing files accessible from a browser

2006-08-06 Thread Li
Hi, Here are few steps of achieving it (just tested, and it works): 1. use FileOutputStream or any output streaming object to write a image file into the directory in Windows, the path string should look like: "c:\apache_home\httpdocs\images\1.jpg" in unix/linux, the path should look like

Re: Writing files accessible from a browser

2006-08-06 Thread Romain Quilici
Thanks for the answer, this solution was part of my investigation, and was actually the first idea I had. The problem with this approach is I don't know how to access the /image_dir/ from within my web application. Maybe using something like String path = servletContext.getRealPath("/"); String

Re: Writing files accessible from a browser

2006-08-06 Thread Li
if you have apache server, you can write file to its home dir, and then use http:image_name.suffix to view. On 8/7/06, Romain Quilici <[EMAIL PROTECTED]> wrote: Hi all, I have been reading several messages about writing files inside a web application, but I found no answer regarding my probl

Writing files accessible from a browser

2006-08-06 Thread Romain Quilici
Hi all, I have been reading several messages about writing files inside a web application, but I found no answer regarding my problem. I need to write files on the file system that can be accessible with a browser(I write images). - The most reliable solution I found was to use the webapp's

Re: Pointing domain to your application - Source Code is appearing

2006-08-06 Thread Gamefaqs Philippines
Hmmm.. I didn't have any choice but to search for more docs... I followed the instructions from the following sites... http://johnturner.com/howto/mod_jk_conf.html http://www.devside.net/web/server/windows/tomcat http://www.ccl.net/cca/software/UNIX/apache/debian-tomcat/node10.html and now, edit

Re: Two Virtual Hosts

2006-08-06 Thread Li
hi thanks, Simply creating two context solved problem. I appreciated you guys' help On 8/7/06, Hassan Schroeder <[EMAIL PROTECTED]> wrote: On 8/6/06, Li <[EMAIL PROTECTED]> wrote: > The JDBCRealm I defined for deployed one is in server.xml, any idea? Yes -- read the Fine Manual:

Re: Two Virtual Hosts

2006-08-06 Thread Hassan Schroeder
On 8/6/06, Li <[EMAIL PROTECTED]> wrote: The JDBCRealm I defined for deployed one is in server.xml, any idea? Yes -- read the Fine Manual: :: which directly addresses your issue :-) -- Hassan Schroeder [EMA

RE: Two Virtual Hosts

2006-08-06 Thread Richard Mixon
Yes, Place the JDBCReal in your context.xml so it applies only to a single context/webapp. For example: -Original Message- From: Li [mailto:[EMAIL PROTECTED] Sent: Sunday, August 06, 2006 8:45 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Two

Re: Two Virtual Hosts

2006-08-06 Thread Li
Tomcat 5.5.15, OS (Fedora Core 4) The JDBCRealm I defined for deployed one is in server.xml, any idea? On 8/7/06, Richard Mixon <[EMAIL PROTECTED]> wrote: More information is needed to help. What version of Tomcat, what version of your OS. Also, where are you defining your JDBCReal - in serve

RE: Two Virtual Hosts

2006-08-06 Thread Richard Mixon
More information is needed to help. What version of Tomcat, what version of your OS. Also, where are you defining your JDBCReal - in server.xml or in context.xml? -Original Message- From: Li [mailto:[EMAIL PROTECTED] Sent: Sunday, August 06, 2006 8:01 PM To: Tomcat Users List Subject: T

Two Virtual Hosts

2006-08-06 Thread Li
Hi, I am having one webapp running on tomcat 5.5. There is a JDBCRealm configured for form authentication for the webapp. Now I have to deploy another webapp onto Tomcat but the db table used for auth is different from the deployed one. Is there a possible way of making two different JDBCRealm f

Re: Can't start new install of TOMCAT

2006-08-06 Thread Mark Thomas
Rob Tanner wrote: > Hi, > > I installed Tomcat 4.1.32 on my new development box, and copied the > 4.1.31 server.xml file over from my old development system. But I can't > get tomcat to start. The error is: LifecycleException: Coyote > connector has not been started. I'm using j2sdk1.4.2_12 is

Re: Classpath problem

2006-08-06 Thread Hassan Schroeder
On 8/6/06, Julien vander Straeten <[EMAIL PROTECTED]> wrote: Could someone tell me what command I have to type to make this thing work? :-) -- Hassan Schroeder [EMAIL PROTECTED] --

Classpath problem

2006-08-06 Thread Julien vander Straeten
Hi, My tomcat server is running, but i'm still struggling with this "classpath" thing ... Could someone tell me what command I have to type to make this thing work? I'm using mac os X.4 my tomcat server is located in : /Library/Tomcat/apache-tomcat-5.5.12/ Kind regards :-) Julien ---

Re: Tomcat 5.5 and IPv6 configuration

2006-08-06 Thread Martin Gainty
Markus/Zhang The only topic for IPv6 in J2SE 5 JavaDoc I found addresses correct formatting for v6 spec addresses Documentation for InetAddress is located at http://java.sun.com/j2se/1.5.0/docs/api/ which states For IPv4 address format, please refer to Inet4Address#format; For IPv6 address form

Re: Pointing domain to your application

2006-08-06 Thread Gamefaqs Philippines
Uhmm... Help...? Gamefaqs Philippines <[EMAIL PROTECTED]> wrote: >Do you need Apache httpd for some reason? Supporting PHP or >some other non-Java app? If not, forget it and mod_jk. >Each individual app (Context) is contained within the appropriate Host element. That's it. Ye

Re: Tomcat 5.5 and IPv6 configuration

2006-08-06 Thread Ipv6Tomcat
Markus Schönhaber wrote: > > Your first two questions are in no way Tomcat-specific. > Anyway... > > Ipv6Tomcat wrote: >> yes,I had installed tomcat 5.0.28 simply in my machine(xp sp2) >> ,because my computer has deployed ipv4 and ipv6 address, when i install >> tomcat successfully, I just

Re: logging url of page

2006-08-06 Thread Almir Kazazic
Hi Filip, problem with error page is that in most cases it (if headers have been sent to the client and that happens for me very very often ) simply throws invalidStateException and user sees only half of the rendered page. Can this be changed by any means regards almir On 8/6/06, Filip Hanik