Ajay, Yes, you can definitely have multiple action mappings defined for a particular action class. The snippet of struts-config.xml you give below appears correct, as do the html:link tags on the page.
I would try a few things: A) Make sure the URL that is getting written to the browser is reasonable. It should be, but double-check. That will remove any doubts about the html:link tags. B) Find out what happens if you change the action path for /tour. If it fixes your problem there is something else mapped to xxx/tour.do, either in your web.xml or in your server configuration (are you in the default context and there is another web application defined at /tour?). C) Finally, if the logic is different inside MenuAction for "/menu" vs. "/tour", make sure the logic isn't causing the problem, (e.g. is it forwarding to somewhere else that has a potential duplicate context issue as described above?) Also, check out your app server or web server logs and find out what resource is actually giving the 300 server error. It would help to know what application server you're running, as well as the version of Struts. -- Michael D. Norman ProbuSoft - Custom Software Development http://www.probusoft.com/ 913-390-6951 [EMAIL PROTECTED] ----- Original Message ----- From: "ajay brar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 08, 2003 11:33 PM Subject: action class for more than one mapping > hi! > can i have an Action class for more than one action mapping. > that is can i do > <action-mappings> > > <action path="/menu" > type="MenuAction" > scope="request"> > <forward name="success" path="/tour.htm" /> > </action> > <action path="/tour" > type="MenuAction" > scope="request"> > <forward name="success" path="/tour.htm" /> > </action> > > </action-mappings> > if i can have that, then why isn't it working. i have in my index.jsp > <html:link page="/menu.do"> menu </html:link><br> > <html:link page="/tour.do"> tour </html:link><br> > the first link 'menu' works fine, however for the second link, 'tour' i get > a HTTP 300 multiple choices error. > > thanks > ajay > > _________________________________________________________________ > E-mail just got a whole lot better. New ninemsn Premium. Click here > http://ninemsn.com.au/premium/landing.asp > > > --------------------------------------------------------------------- > 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]