Jan, Thanks for your help.
I just tried this and the results are the same. Hovering the mouse over the link makes "http:/localhost:8080/ExpenSysWT/help.do" appear in the browser status field. That's the correct path to the action, but the 500 error still occurs. Adam -----Original Message----- From: Adam Lipscombe [mailto:[EMAIL PROTECTED] Sent: 30 June 2004 12:57 To: 'Struts Users Mailing List' Subject: RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request Yes, I understand (I think!). How do I define a global action? Is it a global forward with the path set an action? e.g. <global-forwards> <forward name="help" path="/help.do" /> ... </global-forwards> How would I call that from within a JSP? Use logic:redirect? Thanks - Adam -----Original Message----- From: Jan Behrens [mailto:[EMAIL PROTECTED] Sent: 30 June 2004 11:49 To: 'Struts Users Mailing List' Subject: RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request Hi Adam, I thought that it might be that - as you are not in any "action" before you actually login - you need to define a global forward for Struts to associate an action (e.g. a forward) with it. After you have logged in, you are sort of within the controll-flow and therefore your defined action will be found but before that, you need a global action to enter the controll-flow... Just out of curiosity, have you tried it? Jan -----Original Message----- From: Adam Lipscombe [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 30, 2004 12:31 PM To: 'Struts Users Mailing List' Subject: RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request Thanks Jan, You may be right but I am not sure how this would help.... The "login" global forward redirects the user to a Login.jsp page. From Login.jsp 2 actions can be called: "login.do" and "help.do". login.do validates the user and logs them in. help.do displays help. The weirdness is that login.do always works. help.do does not *until* the user has logged in once. I would have thought that if Tomcat was setup wrong then neither action would work, but I am grasping at straws :-) Adam -----Original Message----- From: Jan Behrens [mailto:[EMAIL PROTECTED] Sent: 30 June 2004 10:11 To: 'Struts Users Mailing List' Subject: RE: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request Hi Adam, I am new to Struts so this is more of a shot in the dark but anyway... Could it be that the problem is that you only have one global forward pointing to your login? So from a controll flow point of view wouldn't that mean that you can only access login.do as an entry to your system? Have you tried adding a global forward for your help.do as well? Cheers, Jan -----Original Message----- From: Adam Lipscombe [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 7:31 PM To: 'Struts Users Mailing List' Subject: NEWBIE: Wierd problem - Action sometimes produces Status 500 - No Context configured to process this request Folks, I have a strange problem that is confusing me: I have a simple login page with a Help button defined like this: <html:link href="javascript:displayHelp('loginPage')"%>"<img border="0" height="28" name="Image10" src="images/b_help_1.gif" width="32"></html:link> When pressed, the JavaScript displayHelp() method below is called: function displayHelp(context) { [snip] var url = "<html:rewrite page='/help.do' />" url += "?context=" + context; [snip] window.open(url, "HelpWindow", windowOptions); } This page is the first page that the user sees, having been redirected from index.jsp like this: <logic:redirect forward="login"/> The problem is that before a user logs in, pressing the "Help" button results in the error "HTTP Status 500 - No Context configured to process this request" being displayed. However after a user logs in (and presses the browser back button to return to the login page) the link works fine and the help is displayed OK. Its as if the act of logging in sets up a context within which the actions work.... The relevant bits of my struts-config looks like this: <global-forwards> <forward name="login" path="/pages/Login.jsp" /> </global-forwards> <action-mappings> <action input="/pages/Login.jsp" name="loginActionForm" path="/login" scope="request" type="com.expensys.expensyswt.struts.action.Login" validate="true"> <forward name="home" path="/pages/Home.jsp" /> </action> <action path="/help" scope="request" type="com.expensys.expensyswt.struts.action.DisplayHelp" validate="false" > <forward name="loginHelp" path="/pages/help/LoginHelp.jsp" /> <forward name="displayHelpTopics" path="/pages/help/HelpTopics.jsp" /> </action> </action-mappings> Does anyone know what is going on here? Why does the "/help.do" action URL work after the user has logged in but not before? Is it to do with the fact that no action has been called before the log in takes place? TIA - Adam --------------------------------------------------------------------- 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] --------------------------------------------------------------------- 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]