aspose file tools*
The moose likes Struts and the fly likes Change the html:submit button with an image button????????? 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 "Change the html:submit button with an image button?????????" Watch "Change the html:submit button with an image button?????????" New topic
Author

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

Kaustubh Sharma
Greenhorn

Joined: Mar 02, 2010
Posts: 28
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

Joined: Mar 02, 2010
Posts: 28
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
 
subject: Change the html:submit button with an image button?????????