Since the html:radio tag automatically checks or unchecks the radio button based on the value of the "type" property in your ActionForm, the solution is to set the value of the "type" property prior to forwarding to the JSP.
So, in the Action that forwards to this jsp you will code:
and in your JSP you will code:
<html:radio property="type" value="I"/>
If you do this, Struts will automatically cause this button to display as checked.
can you be more clear with what you exactly expect your code to do.. as in while displaying the response which specific radio button do you want to be selected for e.g: you want every time the first radio button to be selected and so on..
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com