This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Struts and the fly likes Stale Value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Stale Value" Watch "Stale Value" New topic

Stale Value

AnirbanAgartala Bhattacharjee

Joined: Mar 10, 2006
Posts: 4
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 =""/>"> <!-- [ = name]-->
<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="">.. . Then I get the button labels as "name" and "name adress". Why this is happening.How this can be prevented?
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
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.

Consultant, Sima Solutions
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Stale Value
jQuery in Action, 3rd edition