Re: Relative Link Question

2006-04-19 Thread Hassan Schroeder
On 4/18/06, biai <[EMAIL PROTECTED]> wrote: > But I wanted to go one step forward and that is what I can not do, though > I've read it is possible and simple. > I want to omit the webapp name from the URL It's beyond me how this can be so confusing. Let's say you have two hosts named 'calvin' an

Re: Relative Link Question

2006-04-18 Thread biai
Thanks, But I with the rewrite I can solve the problem, as you can see on the othe other posts. But I wanted to go one step forward and that is what I can not do, though I've read it is possible and simple. I want to omit the webapp name from the URL so that instead of accessing: http://myserver/

Re: Relative Link Question

2006-04-18 Thread biai
Sorry, Did not work must be doing something else wrong -- View this message in context: http://www.nabble.com/Relative-Link-Question-t1452173.html#a3971693 Sent from the Tomcat - User forum at Nabble.com. - To unsubscribe, e-

Re: Relative Link Question

2006-04-18 Thread Marc Farrow
Have you tried to set your appBase to D:/Tomcat 5.5/webapps/netprof? sometimes back-slashes cause problems. On 4/18/06, biai <[EMAIL PROTECTED]> wrote: > > > Hi again, > Thank you for all the tips. Some resolved my problems, but the appBase > still > gives me an error. > I've read a lot about it b

Re: Relative Link Question

2006-04-18 Thread biai
Hi again, Thank you for all the tips. Some resolved my problems, but the appBase still gives me an error. I've read a lot about it but still does not work. In this latest version of testing I only have one Host and it looks like the following: www3novo.netprof.pt

Re: Relative Link Question

2006-04-17 Thread Hassan Schroeder
On 4/17/06, biai <[EMAIL PROTECTED]> wrote: > I'm a newbie in this, so where can I define appbase. First, it's appBase, *not* 'appbase' -- case sensitive. Second, it's well documented in the Tomcat configuration guide. :-) Third, I'd strong recommend putting all your appBases outside of $CATAL

Re: Relative Link Question

2006-04-17 Thread biai
I'm a newbie in this, so where can I define appbase. I've done the following in %Catalina_Home%\conf\server.xml Each of the applications Webapp1 and Webapp2 are inside the directory D:\Tomcat 5.5\webapps\. What am I doing wrong? Thank you for

Re: Relative Link Question

2006-04-17 Thread Michael Jouravlev
Unless you use special server-side tags, the path is resolved on client. The browser knows nothing about your context. It only knows the server name (myserver.com) and resource name (/images/pic.jpg). Leading slash means "starting from the root" and that how browser resolves the address. Not being

Re: Relative Link Question

2006-04-17 Thread Hassan Schroeder
On 4/17/06, biai <[EMAIL PROTECTED]> wrote: > I have 3 virtual hosts on the server, so I cannot atribute ROOT to all of > them. Of course you can; just use a different appBase for each host. HTH, -- Hassan Schroeder [EMAIL PROTECTED]

Re: Relative Link Question

2006-04-17 Thread biai
Hi, Thank you for your prompt response. The tips you gave me work just fine, but now I have another problem. I have 3 virtual hosts on the server, so I cannot atribute ROOT to all of them. So I guess I will have to do with mod_rewrite, or is there a better answer? Silvio -- View this message in c

Re: Relative Link Question

2006-04-17 Thread Hadraba Petr
Hi, you have two options: 1. move your application to the ROOT by renaming your war to ROOT.war (case sensitive) or 2. use mod_rewrite. PETR On 4/17/06, biai <[EMAIL PROTECTED]> wrote: > > Hi. > I have the same question as you do. > When you get the answer, please email me to [EMAIL PROTECTED] >

Re: Relative Link Question

2006-04-17 Thread biai
Hi. I have the same question as you do. When you get the answer, please email me to [EMAIL PROTECTED] Another question I have, is how can I access my website without stating MYAPP in the URL. e.g. instead of using http://myserver.com/myapp/servlet/index.jsp use only http://myserver.com/servlet/i

Re: Relative Link Question

2006-04-15 Thread Hadraba Petr
Hi, maybe the element will solve your problem... PETR On 4/15/06, Arshad Mahmood <[EMAIL PROTECTED]> wrote: > Hi, > > Hmm. What are you trying to do? Surely your images are not actually in a > directory called "/webapp/images/...". Your images are probably at the top > level of your docBase. T