problem with adding ActionMessage to ActionErrors
I noticed in the documentation that ActionError is deprecated, so I was trying to be a good doobie and use ActionMessage like the docs say to. So in my code, when I go from this: errors.add( ActionErrors.GLOBAL_ERROR, new ActionMessage( error.password.mismatch )); to this: errors.add( ActionErrors.GLOBAL_ERROR, new ActionError( error.password.mismatch )); when my page tries to resolve html:errors/ I get: java.lang.ClassCastException at org.apache.struts.taglib.html.ErrorsTag.doStartTag(ErrorsTag.java:215)... Has anyone seen this? I'm using JBoss 3.2.2 (which uses Tomcat 4.1). Brad Ayers Senior Programmer Analyst Granite State Management and Resources [EMAIL PROTECTED] 603-225-5867 ext. 308 603-224-2581 Fax number CONFIDENTIALITY NOTICE This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
url changing to localhost
I'm new to Struts, so excuse me if this seems like an obvious one. What is the trick to prevent the URL from changing? If I hit my machine (isunit81 which has a web server and the web app) from a remote machine by using this URL, http://isunit81/tablemaintenance and I login (by submitting a user/password form), the next page it takes me to has the URL with localhost:8080 instead of isunit81 (http://localhost:8080/tablemaintenance/login.do;jsessionid=874ED1411066677F92DD8686A61FD0AB) On a remote machine, I get a 404 error because of localhost, it's trying to find the page on itself. What am I doing wrong? Brad Ayers Senior Programmer Analyst Granite State Management and Resources [EMAIL PROTECTED] 603-225-5867 ext. 308 603-224-2581 Fax number CONFIDENTIALITY NOTICE This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: url changing to localhost
It was in fact the web server. I'm running Apache and I had to change the proxypass and proxypassreverse lines from: ProxyPass /tablemaintenance http://localhost:8080/tablemaintenance ProxyPassReverse /tablemaintenance http://localhost:8080/tablemaintenance to: ProxyPass /tablemaintenance http://isunit81:8080/tablemaintenance ProxyPassReverse /tablemaintenance http://isunit81:8080/tablemaintenance It works fine now but how would I set it up so that the URL never displays the hostname and port number it forwards to. After I login it shows http://isunit81:8080/tablemaintenance/login.do on the URL line. I want it to either show http://isunit/tablemaintenance (login page) or http://isunit81/tablemaintenance/login.do That way if the web server is on a different machine than the app server, they attach to the web server and have no idea where Apache is forwarding their request. Brad -Original Message- From: Barett McGavock [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 16, 2003 1:31 PM To: 'Struts Users Mailing List' Cc: Bradford M. Ayers Subject: RE: url changing to localhost This is a web server configuration problem. Are you using Tomcat? Try examining the web server configuration file for the local host name. A simple search for localhost should find some candidiates for change to isunit81. Send more information about your web server and perhaps I or someone else can be more specific. B -Original Message- From: Bradford M. Ayers [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 16, 2003 9:36 AM To: [EMAIL PROTECTED] Subject: url changing to localhost I'm new to Struts, so excuse me if this seems like an obvious one. What is the trick to prevent the URL from changing? If I hit my machine (isunit81 which has a web server and the web app) from a remote machine by using this URL, http://isunit81/tablemaintenance and I login (by submitting a user/password form), the next page it takes me to has the URL with localhost:8080 instead of isunit81 (http://localhost:8080/tablemaintenance/login.do;jsessionid=874ED1411066677F 92DD8686A61FD0AB) On a remote machine, I get a 404 error because of localhost, it's trying to find the page on itself. What am I doing wrong? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]