aspose file tools
The moose likes Struts and the fly likes html:submit button size Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply 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: 564
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: html:submit button size
 
Similar Threads
I want to submit the button but not refresh the page
How to resize an image dynamically in an html
Alignment of button
size of JButton
How to resize an image over button in an html depending upon the text over it.