Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding a browse button in struts2

 
manikanta annavarapu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI All,

This is manikanta . I am working on Struts2+Hibernate project. In our project we are having a requirement like to upload a file . For that requriment while developing an JSP page we are using a <S:file> tag.
Below is the format of that tag.
<s:file id="fileUpload" name="fileUpload" label="Select a File to upload" size="40"></s:file>
by using this tab internally it will create a choose button .For that choose button internally it will take a CSSProperty like default color.
Our requirement is to change the color of that button to blue.

Please let me know any solutions fot that requirement.

Regards
A.Manikanta
 
jatan bhavsar
Ranch Hand
Posts: 299
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Maniknata,

there is a attribute called cssclass and cssstyle in file tag which you can use to apply css to apply css on Button you need to refer to the struts theme.
For more information refer struts documentation here

Regards
Jatan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic