Re: How to change(override) application path

2007-07-30 Thread Hassan Schroeder
On 7/30/07, Burak Yýlmaz <[EMAIL PROTECTED]> wrote: > i got the solution thank you. If you have free time come and override these > thousands of links:) UltraEdit Program will do this automatization i hope. Don't know anything about UltraEdit, but jEdit does a great job of global search/replace.

Re: How to change(override) application path

2007-07-30 Thread Burak Yýlmaz
ct: Re: How to change(override) application path On 7/30/07, Burak Yýlmaz <[EMAIL PROTECTED]> wrote: > I am also not sure i will ask about it on Sun Java Forums. If i get any > working valuable solution i will write here. The "solution" is to use absolute links a

Re: How to change(override) application path

2007-07-30 Thread Hassan Schroeder
On 7/30/07, Burak Yýlmaz <[EMAIL PROTECTED]> wrote: > I am also not sure i will ask about it on Sun Java Forums. If i get any > working valuable solution i will write here. The "solution" is to use absolute links and follow David's suggestion -- ${pageContext.request.contextPath}/path/to/resource

Re: How to change(override) application path

2007-07-30 Thread Burak Yýlmaz
I am also not sure i will ask about it on Sun Java Forums. If i get any working valuable solution i will write here. - Original Message From: Lyallex <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Monday, July 30, 2007 10:17:48 PM Subject: Re: How to change(override) applicatio

Re: How to change(override) application path

2007-07-30 Thread David Smith
nd solve this pathing problem. - Original Message From: Hassan Schroeder <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Monday, July 30, 2007 8:17:09 PM Subject: Re: How to change(override) application path On 7/30/07, Burak Yýlmaz <[EMAIL PROTECTED]> wrote: my links to ima

Re: How to change(override) application path

2007-07-30 Thread Lyallex
sers List > Sent: Monday, July 30, 2007 9:29:01 PM > Subject: Re: How to change(override) application path > > > Hi > > I've had all sorts of problems understanding how relative links are > resolved so I found this solution somewhere and it works well for me > > A

Re: How to change(override) application path

2007-07-30 Thread Burak Yýlmaz
Note:Previous email was wrongly sent without any text from me sorry. - Original Message From: Lyallex <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Monday, July 30, 2007 9:29:01 PM Subject: Re: How to change(override) application path Hi I've had all sorts of problems understanding h

Re: How to change(override) application path

2007-07-30 Thread Burak Yýlmaz
Its an amazing solution - Original Message From: Lyallex <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Monday, July 30, 2007 9:29:01 PM Subject: Re: How to change(override) application path Hi I've had all sorts of problems understanding how relative links are resolved

Re: How to change(override) application path

2007-07-30 Thread Lyallex
Hi I've had all sorts of problems understanding how relative links are resolved so I found this solution somewhere and it works well for me All my pages import a header file (header.jsp) in header.jsp I have this <% String basePath = request.getScheme()+"://"+request.getServerName()+"/"; %>

Re: How to change(override) application path

2007-07-30 Thread Hassan Schroeder
On 7/30/07, Burak Yýlmaz <[EMAIL PROTECTED]> wrote: > My links was not starting with "/" i misswrote it sorry. > > now when i wrote my links starting with "/" and links are like; > /images/xxx.jpg > and the images are displayed now. Anyway i now i have to put "/" on the start > of my every link...

Re: How to change(override) application path

2007-07-30 Thread Burak Yýlmaz
nk that if i can override any tomcat parameters and solve this pathing problem. - Original Message From: Hassan Schroeder <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Monday, July 30, 2007 8:17:09 PM Subject: Re: How to change(override) application path On 7/30/07, Burak Yýlmaz <

Re: How to change(override) application path

2007-07-30 Thread David Smith
ge(override) application path How is the jsp composing the relative urls to images and stylesheets? I typically have jsps reference urls by doing ${pageContext.request.contextPath}/path/to/resource.jpg for example. That fills in the context path and forms a site absolute path to the resource. The j

Re: How to change(override) application path

2007-07-30 Thread Hassan Schroeder
On 7/30/07, Burak Yýlmaz <[EMAIL PROTECTED]> wrote: > my links to images,css,js are like below in jsp files; > > /images/xxx.jpg > /js/xxx.js > /css/xxx.css > > solution is fully re rewriting the url's i know like; No, not at all. If your links are really absolute paths, it should just work. The

Re: How to change(override) application path

2007-07-30 Thread Burak Yýlmaz
ution at container level. - Original Message From: David Smith <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Monday, July 30, 2007 7:05:47 PM Subject: Re: How to change(override) application path How is the jsp composing the relative urls to images and stylesheets? I typicall

Re: How to change(override) application path

2007-07-30 Thread David Smith
How is the jsp composing the relative urls to images and stylesheets? I typically have jsps reference urls by doing ${pageContext.request.contextPath}/path/to/resource.jpg for example. That fills in the context path and forms a site absolute path to the resource. The jsp can move around and

How to change(override) application path

2007-07-30 Thread Burak Yýlmaz
My question is related with java but i think the solution is at the tomcat global variables so i need this groups help. I want my web links to be like www.mydomain.com/album/13 with the help of the front controller at java i will translate the url to www.mydomain.com/album.jsp?id=3 and dispatch

Re: Application Path

2006-11-13 Thread Vernon _
arious development phases in my box. I try to figure to > handle them together. > > > Vernon > __ > http://www.vicina.info > > > Original Message Follows > From: Harry <[EMAIL PROTECTED]> > Reply-To:

Re: Application Path

2006-11-09 Thread Harry
> http://www.vicina.info > > > Original Message Follows > From: Harry <[EMAIL PROTECTED]> > Reply-To: "Tomcat Users List" > To: Tomcat Users List > Subject: Re: Application Path > Date: Tue, 07 Nov 2006 09:31:27 + > MIME-Versi

Re: Application Path

2006-11-07 Thread Vernon _
ernon __ http://www.vicina.info Original Message Follows From: Harry <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" To: Tomcat Users List Subject: Re: Application Path Date: Tue, 07 Nov 2006 09:31:27 + MIME-Versio

Re: Application Path

2006-11-07 Thread Harry
Alternatively, you can set a BASE reference within the HEAD element of each page, and then use relative-paths in all your URLs: ... http://www.webadorable.com/your-app-context-name-here/"/> ... ... The BASE value can (should!) be set dynamically, of course - with a tag library,

Re: Application Path

2006-11-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vernon, > That can solve the problem. However, is it little silly to prefix > ${pageContext.request.contextPath} into every single URLs in the JSP files? It's not silly if that's what you want. Some frameworks provide either JSP taglibs or some othe

Re: Application Path

2006-11-06 Thread Vernon _
That can solve the problem. However, is it little silly to prefix ${pageContext.request.contextPath} into every single URLs in the JSP files? Vernon __ Your local community information service - news, blogs, classifieds

Re: Application Path

2006-11-06 Thread David Smith
Is there any reason you can't just have the paths composed dynamically?: For the ROOT webapp, the expression will return an empty path, so it's always correct. --David Vernon _ wrote: I have another new application deployed in a non-root directory. I need to have absolute paths for CSS a

Application Path

2006-11-06 Thread Vernon _
I have another new application deployed in a non-root directory. I need to have absolute paths for CSS and Javascript in order to import them properly with differenct level structure of JSP files. I can deploy it as the root application or add the application name in the absolute path. Neither