This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: <s submit> label does not change
 
It's not a secret anymore!