This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes html:file taglib ... please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:file taglib ... please help" Watch "html:file taglib ... please help" New topic
Author

html:file taglib ... please help

jack enloe
Greenhorn

Joined: Jan 11, 2006
Posts: 1
does anyone know how to change the button style on the html:file taglib.. i tried using stylesheet with the style="my style" but that's not working...
Amit Kumar Kaushik
Greenhorn

Joined: Jan 12, 2006
Posts: 11
try the following code

<html:file property="imageFile1" styleClass="filebutton" />

and code for style is given below. You can put it in .css file and link in jsp

.filebutton
{
BORDER-RIGHT: #999999 1px solid;
BORDER-TOP: #999999 1px solid;
FONT-WEIGHT: normal;
FONT-SIZE: 10pt;
COLOR: #000000;
BORDER-LEFT: #999999 1px solid;
BORDER-BOTTOM: #999999 1px solid;
FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
}
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: html:file taglib ... please help
 
Similar Threads
Cannot find bean: "org.apache.struts.taglib.html.BEAN" in any scope for File Handling
customized button for html:file
Error adding taglib in web.xml
Exception is unable to resolve: validation
Struts 1.3 with html:file tag