struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Struts Newsgroup (@Basebeans.com) <str...@basebeans.com>
Subject Re: Dealing with many JSP files with one Action
Date Thu, 13 Jun 2002 14:25:02 GMT
Subject: Re: Dealing with many JSP files with one Action
From: Eric Rizzo <eric.rizzo@jibeinc.com>
 ===
Niall Pemberton wrote:
> I'm sure you can do something more intelligent than duplicating the whole
> set of jsps for each different language. If the problem is that you need
> different images for different languages then write your own tag to generate
> the path for the image based on the localle.

I suggest using the pageKey or srcKey attribute of the <html:img> tag to 
specify an ApplicationResources key that holds the real image file name. 
  Then your images can be i18ned just like your text.

HTH,
	Eric
-- 
Eric Rizzo
Software Developer
http://www.jibeinc.com
---------------------------------------------------------------
"A man talking sense to himself is no more insane than
  a man talking nonsense not to himself...or just as insane."
                          -Rosencrantz and Guildenstern Are Dead


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message