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.
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
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
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
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
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
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
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
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()+"/";
%>
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...
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 <
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
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
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
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
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
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:
> 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
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
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,
-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
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
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
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
24 matches
Mail list logo