File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

<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" />

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?

Shilpa Tendulkar
Ranch Hand

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

I agree. Here's the link:
subject: <s submit> label does not change
It's not a secret anymore!