aspose file tools*
The moose likes Struts and the fly likes <s submit> label does not change Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "<s submit> label does not change" Watch "<s submit> label does not change" New topic
Author

<s submit> label does not change

Murat Balkan
Ranch Hand

Joined: Sep 10, 2002
Posts: 127
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

Joined: Jul 29, 2001
Posts: 75
instead of label use value attribute


SCJP5
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: <s submit> label does not change