users
[Top] [All Lists]

RE: [cinjug-users] value for href in webapps

To: "'Sling Shot'" <slingshaut@xxxxxxxxx>, <users@xxxxxxxxxx>
Subject: RE: [cinjug-users] value for href in webapps
From: "James Carman" <james@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 22 Jul 2004 13:08:35 -0400
Delivered-to: mailing list users@cinjug.org
Importance: Normal
In-reply-to: <20040722170612.99663.qmail@web50006.mail.yahoo.com>
Mailing-list: contact users-help@cinjug.org; run by ezmlm
Organization: Carman Consulting, Inc.

On the request object, there’s a property called “contextPath”.  Use that.

 

-----Original Message-----
From: Sling Shot [mailto:slingshaut@xxxxxxxxx]
Sent: Thursday, July 22, 2004 1:06 PM
To: users@xxxxxxxxxx
Subject: [cinjug-users] value for href in webapps

 

Hi,

 

What is the recommended way to write values for the href attribute in jsps?

 

We're currently using something like"

                              href="">

but I'd like the href value to be independent of the webapp name ("mywebapp"

in above example).

 

e.g. Like the way we specify the values in the <jsp:forward ..> action,

where the webapp context root is automatically chosen for you.

So in the above example I would like to write the href as:

href="">

 

where MACRO is some code that automatically chooses the webapp

context root for me at runtime.

 

Is there some way this can be done (prefereably w/o using scriptlet code)

 

Thanx,

/sling


Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!

<Prev in Thread] Current Thread [Next in Thread>