struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jiao <str...@landranger.com>
Subject Use html:link and LookupDispatchAction together
Date Thu, 24 Jul 2003 21:39:04 GMT
Hello,

I have used the LookupDispatchAction with some buttons and it works
quite well. Now I want to submit the form by clicking on a link instead
of a button. I've tried something like this in my jsp file but it
returns me the error

<bean:define id="message">
  <bean:message key="button.search"/>
</bean:define>

<html:link action="/result"
           paramId="method"
           paramName="message">
</html:link>

type Status report

message Request[/result] does not contain handler parameter named method

description The request sent by the client was syntactically incorrect
(Request[/result] does not contain handler parameter named method).

I also tried to use javascript in the onclick attribute of html:link but 
it returns the same error.

So my question is, is it possible to use LookupDispatchAction to dispatsh 
actions from links at all?
If not, what would be proper way to implement similar functionality?
Should I discard whole LookupDispatchAction and use something else instead
of that, or just handle links differently?

Thank you very much!

David







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


Mime
View raw message