• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Change the html:submit button with an image button?????????

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to change the submit button with an image but don't want to change the html:submit tag ........ can seee the code for submit button below....

Thanks
kaustubh
<html:submit styleClass="button" value="Search" property="search"></html:submit> // want to replace this default button from an image button

<html:submit styleClass="button" value="Export" property="export"></html:submit>
<img src="Images\Clear.gif" alt="" styleClass="button" name="abc" onclick="clearAll();"/>
</td>
 
Kaustubh Sharma
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Finally I got the answer for my own question.............

<html:image src="Images/Export.gif" styleClass="button" value="Export"property="export" />
<html:image src="Images/Search.gif" styleClass="button" value="Search" property="search" />

I am using above tags and if you want to check the values of this property you can check it by below code

if(request.getParameter("export.y") != null)
{
System.out.println(request.getParameter("export"));
objRptCaseDetailsExportBean.setStrBtnStatus("export");
strAction="export";

}else if(request.getParameter("search.x") != null){
objRptCaseDetailsExportBean.setStrBtnStatus("search");

strAction="search";

}

!!!Google Rock Man!!!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic