• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Stale Value

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I ve one jsp . And in this I have two submit buttons. If I code in a manner like this-
<input type = "submit" name = "method"
value ="<bean:message key ="button.name"/>"> <!-- [ button.name = name]-->
</input>
<input type = "submit" name = "method"
value ="<bean:message key ="button.address"/>"><!--[button.address=address ]-->
</input>. Then the two button labels are "name" nad "address". But if I code
<html:submit property ="method"> <bean:message key="button.name">.. . Then I get the button labels as "name" and "name adress". Why this is happening.How this can be prevented?
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Struts tags have a hard time dealing with two elements with the same property name. In this example, both buttons have a property name of "method".

Since it seems to work fine using regular HTML tags, I'd suggest just using the regular HTML tags.
 
The moth suit and wings road is much more exciting than taxes. Or this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic