Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts 2 reset button using immage

 
Pallav Bora
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I am using struts 2.1.6. I am trying to use an image in a struts reset button. The code is given below:

<s: reset
type="image"
src="/image/ok.gif"
/>


The problem is the image does not get displayed . A regular HTML button gets displayed. Im my RAD editor I get the message that 'src' attribute is not recognized.

Is it a bug or a limitation? As per Struts 2 documentation the 'type' attribute can have a value of 'image'.

Any inputs willbe greatly appreciated..

Thanks

 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!