File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes put Submit as a Image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "put Submit as a Image" Watch "put Submit as a Image" New topic

put Submit as a Image

Shyam Hai
Ranch Hand

Joined: Feb 04, 2009
Posts: 68
I want to put an image as a submit button instead of using the button that is given.

Now i am try like this



But it came normal button only. not image.

Please give the solution.
Joe Ess

Joined: Oct 29, 2001
Posts: 8927

Is the image where you say it is? If I recall correctly, the path for the image is considered from where the style sheet is located, not the JSP.
Try it without the "transparent"

is an example from my code

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Shyam Hai
Ranch Hand

Joined: Feb 04, 2009
Posts: 68

Thanks for your reply.

But still i'm not get correct output.

i'm not getting image, i got only normal button.

please check this code also.
I agree. Here's the link:
subject: put Submit as a Image