There is no support for this. I originally had a problem with this fact, but
when you think about it in terms of the fact that the action servlet is
using reflection to set properties automatically on your form beans, the
need to define your parameters names in a constants interface sorta goes
away. In reality it would be more problematic in this case to have to keep
your constants interface in sync with the properties of your form beans...if
that makes sense. The javadoc of your form beans give the person writing the
html the names of the properties automatically...

Troy


-----Original Message-----
From: Nanduri, Amarnath [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 05, 2001 2:08 PM
To: '[EMAIL PROTECTED]'
Subject: html:submit tag question




Hi all,

      Is it possible to convert the below HTML into a struts tag ? Thanks
for your information.

<input type="submit" name="<%= Constants.SEARCH %>" value="<bean:message
key="searchResource.search"/>" >        


  p.s All names are declared in a Constants file so that they can be
accessed in a uniform way across the application.


cheers,
Amar..

Reply via email to