Re: Dynamic Value (Scriptlet) in ApplicationResources.properties

2001-06-26 Thread Matt Raible

Please respond to me at [EMAIL PROTECTED] as I am not subscribed to this
list.  Thanks.

Is it possible to get the alt value of an html:img element from the
message bean?  For instance:

html:img src=%=staticPathCommon%/images/required.gif width=10
height=12 align=absmiddle alt=bean:message
key=required.image.alt/ /


- Original Message -
From: Matt Raible [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 26, 2001 7:08 AM
Subject: Dynamic Value (Scriptlet) in ApplicationResources.properties


 Please respond to me at [EMAIL PROTECTED] as I am not subscribed to
this
 list.  Thanks.


 Is it possible to place a dynamic element in my
 ApplicationResources.properties?

 For instance,

 required.image = img src=%=staticPathCommon%/images/required.gif
 width=10 height=12 align=absmiddle

 In my jsp page, I try to get this value using bean:message
 key=required.image/, but the value comes back as

 img src=%=staticPathCommon%/images/required.gif width=10
height=12
 align=absmiddle

 If this is not possible, how do I make the tag below work with a scriplet
 value?  Right now, I get an error trying to parse it.

 html:img src=%=staticPathCommon%/images/required.gif width=10
height=12 align=absmiddle alt=Required Field Image /





_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Re: Dynamic Value (Scriptlet) in ApplicationResources.properties

2001-06-26 Thread Peter Alfors

try:

html:img src='%=staticPathCommon + /images/required.gif + %' width=10
   height=12 align=absmiddle alt=Required Field Image /

As for the alt attribute, it looks at though the html:img taglib will only
accept either a string or a resource bundle key.
Since you cannot nest taglibs (use  a taglib as an attribute for another) you
would need to retrieve the alt message from your bean, place it in a scriptlet
variable, and then use the variable in the taglib...


HTH,
   Pete


Matt Raible wrote:

 Please respond to me at [EMAIL PROTECTED] as I am not subscribed to this
 list.  Thanks.

 Is it possible to get the alt value of an html:img element from the
 message bean?  For instance:

 html:img src=%=staticPathCommon%/images/required.gif width=10
 height=12 align=absmiddle alt=bean:message
 key=required.image.alt/ /

 - Original Message -
 From: Matt Raible [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, June 26, 2001 7:08 AM
 Subject: Dynamic Value (Scriptlet) in ApplicationResources.properties

  Please respond to me at [EMAIL PROTECTED] as I am not subscribed to
 this
  list.  Thanks.
 
 
  Is it possible to place a dynamic element in my
  ApplicationResources.properties?
 
  For instance,
 
  required.image = img src=%=staticPathCommon%/images/required.gif
  width=10 height=12 align=absmiddle
 
  In my jsp page, I try to get this value using bean:message
  key=required.image/, but the value comes back as
 
  img src=%=staticPathCommon%/images/required.gif width=10
 height=12
  align=absmiddle
 
  If this is not possible, how do I make the tag below work with a scriplet
  value?  Right now, I get an error trying to parse it.
 
  html:img src=%=staticPathCommon%/images/required.gif width=10
 height=12 align=absmiddle alt=Required Field Image /
 
 
 

 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com


begin:vcard 
n:;
x-mozilla-html:FALSE
org:BRIMG SRC=http://www.irista.com/images/common/logo_top_right.gif;
adr:;;
version:2.1
end:vcard