Thank you, that solved the problem

Phil Rice

-----Original Message-----
From: Kanoza, Douglas (NCI) [mailto:[EMAIL PROTECTED]]
Sent: 07 March 2002 21:23
To: 'Struts Users Mailing List'
Subject: RE: Newbie question. Can action mappings intercept requests
that are not part of forms?


If you've done your *.do extension mapping in web.xml, you just need to
append '.do' to the page parameter:

<html:link page="/logout.do">
  <bean:message key="mainMenu.logout" />
</html:link>

-----Original Message-----
From: Phil Rice [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 07, 2002 4:21 PM
To: [EMAIL PROTECTED]
Subject: Newbie question. Can action mappings intercept requests that are
not part of forms?

The problem:
I am trying to make a "logout" button work by proving a link:

<html:link page="/logout">
  <bean:message key="mainMenu.logout" />
</html:link>

Things I have tried
I have tried a number of variations of the following part of
struts-config.xml:

    <action    path="/logout"
               type="com.conformNow.calibrate.actions.LogoutAction"
               name="logoutForm"
              scope="request">
      <forward name="success"              path="/Welcome.jsp"/>
    </action>

When I try and use the link above, the address browser of the browser shows
"/logout" as the last part of the url and LogoutAction is not executed.
I have managed to get LogoutAction to execute by creating a form, and
submitting the form.
I have fairly sure this is not a simple capitalisation problem
I have looked in the FAQ and the mailing archives.

Summary
Is there a way to intercept a hypertext link, rather than a post?

Thanks

Phil Rice

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to