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:13:18 -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.

Oh, sorry, you said WITHOUT using scriptlet code.  Well, since you’re using Struts (by the looks of your URL), you can use the html tags to print out your hrefs.  It will take care of that for you.  If you want to do it without Struts, the “official” or “standard” way to do it is to use JSTL.

 

-----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>