File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes html:submit button size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:submit button size" Watch "html:submit button size" New topic
Author

html:submit button size

xiaoma wang
Ranch Hand

Joined: Mar 04, 2002
Posts: 74
Hell all,
I am using struts and one thing confused me is the html:submit button size. In the jsp page, i can not control the html:submit button size and it is determined by the character number showing on the button. How to control the button size? Could people give me some idea?
Appreciate very much!
Xiaoma Wang
Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 566
Actually it is purely a HTML issue, not struts. You can give the html:submit tag all the normal HTML attributes you wish, such as style or css-class.
Try using assigning the button a style and using the width: and height: properties with px values.


I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.
xiaoma wang
Ranch Hand

Joined: Mar 04, 2002
Posts: 74
Hi, adam:
I solved this problem using javascript. Thanks your reply. Actually, I can not find a way to change the html:submit button size, either css or style.
Xiaoma Wang
 
 
subject: html:submit button size