Struts automatically append the 'CONTEXT' for you in preparing the link url. So use it with care. I had this problem before. For example, when the tile (I'm not sure if you're using tile, but it's my case) belongs to the root context (""), and you want to link to a page in another context, say 'dcsi', then you need the '/dcsi/logoff.do', But in the body tile, I suppose it's already in the dcsi context, you only need to link to '/logoff.do'.
Patrick -----Original Message----- From: Mike Deegan [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 06, 2004 8:13 AM To: Struts Users Mailing List Subject: Re: Link Tag if the link you are looking for is ... http://10.48.142.7:8988/dcsi/logoff.do try dropping off the dcsi prefix in the path="dcsi/logoff.do" ----- Original Message ----- From: "Duggal, Sanjay" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, January 05, 2004 8:49 AM Subject: Link Tag > Hi, > > I am using a custom link tag that extenjds the struts LinkTag. > > I am using the custom tag in my jsp in the following way: <dtag:dlink > href="dcsi/logoff.do" showAlways="true">Logout</dtag:dlink> > > I have the following entry in my struts-config.xml file: > <action path="dcsi/logoff.do" type="com.dcsi.LogoffAction" > roles="role1"> > <forward name="logout" path="/login.jsp"/> > </action> > > > However, the link that gets formed is: > http://10.48.142.7:8988/dcsi/dcsi/logoff.do > > which is an invalid link. > > Can you please point out what I'm doing incorrectly here? What is the > entry required in the struts-config.xml file? > > Thanks, > Sanjay > > > > ____________________________________________________ > This message contains information that may be privileged or > confidential and > is the property of the Cap Gemini Ernst & Young Group. It is intended > only for the person to whom it is addressed. If you are not the > intended recipient, you are not authorised to read, print, retain, > copy, disseminate, > distribute, or use this message or any part thereof. If you receive > this message in error, please notify the sender immediately and delete > all copies > of this message. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]