Another alternative would be to put those definitions into a resource bundle (properties file). As long as all references are indirected through some collection of definitions, it doesn't really matter where those definitions are stored / setup :=)

L.

Paul Benedict wrote:
If you want to link to absolute URLs, perform a JSP include at the top of
your pages. The included page should contain all the definitions you need.
Alternatively, you can write yourself a ContextListener to put attributes
into application scope.

If you want to link to other Struts actions, use the actionId attribute.

Paul

On 8/7/07, john lee <[EMAIL PROTECTED]> wrote:
inside jsp/struts 1.3, how can i set global constants that i can make
change one place, but can make all the corrspondent change cross all the
files.

  for example, if i have script file 1.jsp, 2.jsp ......n.jsp, all the
file contains
       <a href="www.test.com">

  any way i can set it as <a href="@website">, then i change one place,
could make change all the scripts?

  tks in advance

  john


---------------------------------
Moody friends. Drama queens. Your life? Nope! - their life, your story.
Play Sims Stories at Yahoo! Games.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to