Claire,
If you like, send the code to my personal email, [EMAIL PROTECTED], and let me have a looksee. Please send your struts-config.xml and web.xml as well as the pages and associated code.
Michael
At 09:12 AM 7/27/2004, you wrote:
Hi Craig,
> > The only thng I can think of that would cause the symptoms you > describe is if the URLs with which the forms are being submitted are > either incorrect (not mapping to the Struts servlet at all), or are > somehow not mapping to the correct action. Have you double checked > the HTML source (use View Source in your browser) to make sure that > the "action" attribute of the <form> element is correctly formed, > based on what you have your servlet mapping set to? >
That's exactly what happens - the URL displayed in the action of the pages that don't work is incorrect. I have a couple of pages where the form command expands as
and then in the rest it expands as I've now managed to track this down to the org.apache.struts.util.RequestUtils class, and the getActionMappingURL method. The second line of this method reads: StringBuffer value = new StringBuffer(request.getContextPath()); on the pages that work, this line returns an empty string buffer. On the pages that don't work, the string buffer is returned containing a single character - '/' Then, what I would expect to be filled in is filled in several lines down - value.append(actionMapping); value.append(servletMapping.substring(1)); these two lines always evaluate to /actionname.do So I now know where the extra '/' is coming from...but I really have no idea why Thanks, Claire --------------------------------------------------------------------- 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]