struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepika Malik" <deepika.ma...@patni.com>
Subject RE: how to submit a form using html:link
Date Mon, 27 May 2002 22:26:39 GMT
you can submit the form in html:link
by using sth like this
<html:link href="javascript:redirectUser('/meterTransfer.do');">
function redirectUser(strAction)
{

	document.formname.action=strAction;
	document.formname.submit();
}
where strAction is the action mapping in struts-config
and formname is the form bean name specified in struts-config
-----Original Message-----
From: Amit Badheka [mailto:amit@direct2s.com]
Sent: Wednesday, December 11, 2002 12:52 AM
To: Struts Users Mailing List
Subject: how to submit a form using html:link


Is it possioble to submit a form using html:link tag.
I want to call a servlet that resided on another war file. I am able to call
it by click on html link.
But, my requirement is to submit the form.




--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message