Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

<s submit> label does not change

 
Murat Balkan
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have a very simple form like this:

<s:form action="login" method="post">
<s:textfield name="username" label="Username" size="20" />
<s:password name="password" label="Password" size="20" />
<s:submit label="Enter Site" align="center" method="execute" />
</s:form>

My problem is I cannot change the label of the submit button. It always displays the string "Submit"?

Do you have any idea why this is happening?

Regards,
Murat
 
Shilpa Tendulkar
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
instead of label use value attribute
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic