struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "MARK NICHOLS" <DHSV...@dhs.state.il.us>
Subject <html:link> Tag and Actions
Date Tue, 26 Feb 2002 20:37:03 GMT
I have searched the archive, and read through the documentation but I can't seem to find how
to set my <html:link> tag to point to an Action class.

Here are some code examples...

Using the <html:form/> block I can get the proper action when the submit button is pressed.

<...snip...>
<html:form action="/testFinishReason" >
<table border="0" width="100%">

 <tr>
    <td align="right">
      <html:submit property="submit" value="Submit"/>
    </td>
    <td align="left">
      <html:reset/>
    </td>
  </tr>

</table>

</html:form>
<...snip...>

However, when I try coding it with the <html:link/> block like this:

<html:link page="/testFinishReason"><bean:message key="finishReasonTest.testLink"/></html:link>

it doesn't work. I've tried page= and forward= with equally bad results.  I'm guessing that
I need to change my global forward in some way to point at the proper action class so that
the forward= would work. But I haven't been successful in figuring out how to code that forward.

If anyone could point me in the right direction I would appreciate it very much.

best regards,
/\/\ark


___________________________________
- mark h. nichols
- dhsv022 at dhs dot state dot il dot us 

"Ooo. They've got the Internet on computers now." - Homer Simpson 


--
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