This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: <s submit> label does not change
 
Similar Threads
NullPointerException at the SessionFactory create line.
How to change the default label style in Struts2?
"No configuration found for the specified action"
<s:fielderror/> is not display error mybrowser
How to send a information to a form?