File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Kaustubh Sharma
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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!!!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic