Hi, I am using the following image tag in my JSP page (map.jsp) inside a form.
<html:input type="image" src="mapSource" property="" /> When I invoke the JSP page in a browser, the src should be populated with an URL for map image (http://../map1.jpg). But it does not. Please help. The form bean and action class and their mapping are shown below. MapForm Class ============= import org.apache.struts.action.ActionForm ; import com.esri.aims.mtier.io.ConnectionProxy; import com.esri.aims.mtier.model.map.Map; /** * @author adas * * To change the template for this generated type comment go to * Window>Preferences>Java>Code Generation>Code and Comments */ public class MapForm extends ActionForm { /* Map Source*/ private String mapSource; private Map map; public MapForm(){ try { ConnectionProxy mcp = new ConnectionProxy(); mcp.setConnectionType(ConnectionProxy.HTTP); mcp.setService("nmfs"); mcp.setHost("geo"); map = new Map(); map.initMap( mcp, 0, false,false, false, false); map.setBackground("220,165,63"); } catch (Exception e){ } } public String getMapSource() { return (this.mapSource); } public void setMapSource() { this.mapSource = map.getMapOutput().getURL(); } } MapAction Class ============== import org.apache.struts.action.Action; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionForm; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * @author adas * * To change the template for this generated type comment go to * Window>Preferences>Java>Code Generation>Code and Comments */ public class MapAction extends Action { public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { MapForm f = (MapForm) form; // get the form bean // and take the last name value String mapSource = f.getMapSource(); // Forward control to the specified success target return (mapping.findForward("success")); } } struts-config ============= <struts-config> <!-- ========== Form Bean Definitions =================================== --> <form-beans> <form-bean name="mapForm" type="com.PSGS.MapForm"/> </form-beans> <!-- ========== Action Mapping Definitions ============================== --> <action-mappings> <action path="/map" type="com.PSGS.MapAction" name="mapForm" input="/map.jsp" scope="request"> <forward name="success" path="/map.jsp"/> <forward name="failure" path="/map.jsp"/> </action> </action-mappings> </struts-config> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]