RE: Multiple Struts Applications
If the apps are in different contexts, I'm relatively certain you can't do this (unless I'm wrong :) ). I think your option is to send a redirect, with the attributes from your request appended as a query string. If I remember correctly, a forward is only for inter-context, a redirect is for intra-context. If they are actually within the same context though, then this shouldn't be an issue at all, but based on you saying they are two distinct apps, I'm beting they are different contexts. Frank W. Zammetti Chief Software Architect Omnytex Technologies www.omnytex.com From: Scott Mulligan [EMAIL PROTECTED] Reply-To: Struts Developers List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Multiple Struts Applications Date: Thu, 29 Jul 2004 14:42:10 + (UTC) I have two distinct Struts applications running in Tomcat between which I would like to forward a request. I have not been able to create a forward to do this. I was able to do this with multiple modules within the same application, but I would like to be able to forward the request from one struts application to another and still have visibility to the request attributes. Is this possible? If so, how? Examples would be much appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple Struts Applications
I have two distinct Struts applications running in Tomcat between which I would like to forward a request. I have not been able to create a forward to do this. I was able to do this with multiple modules within the same application, but I would like to be able to forward the request from one struts application to another and still have visibility to the request attributes. Is this possible? If so, how? Examples would be much appreciated. Not that I've ever done it but the api. says it's possible, get a 'handle' on another context using the getContext(String) method of ServletContext, then use the ServletContext returned to get the associated RequestDispatcher. You'll need to set the Context's crossContext to true to make this work using Tomcat: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html James Williamson www.nameonthe.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 30390] New: - Wildcarded action mapping cannot create DynaValidatorForm
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=30390. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=30390 Wildcarded action mapping cannot create DynaValidatorForm Summary: Wildcarded action mapping cannot create DynaValidatorForm Product: Struts Version: Nightly Build Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: Controller AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] If you use a wildcarded action mapping where the form is a DynaValidatorForm the form cannot be created because it the wildcard value is not being substituted in the form name. The substitution works correctly if a hand-rolled ActionForm is used. To duplicate, create the action mapping: action path=/Edit* type=com.foo.Edit{1}Action name={1}Form scope=request validate=false forward name=failure path=/index.jsp/ forward name=success path=/edit_{1}.jsp/ /action Now, assuming that the form called EmployeeForm is defined as a DynaValidatorForm -- when you access http://localhost:8080/foo/EditEmployee.do the following error is raised: javax.servlet.ServletException: Exception creating bean of class org.apache.struts.validator.DynaValdiatorForm: {1} org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758) org.apache.jsp.edit_005fEmployee_jsp._jspService(edit_005fEmployee_jsp.java:85) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056) org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1158) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397) javax.servlet.http.HttpServlet.service(HttpServlet.java:697) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) root cause javax.servlet.jsp.JspException: Exception creating bean of class org.apache.struts.validator.DynaValdiatorForm: {1} org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:463) org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:433) org.apache.jsp.edit_005fEmployee_jsp._jspx_meth_html_form_0(edit_005fEmployee_jsp.java:116) org.apache.jsp.edit_005fEmployee_jsp._jspService(edit_005fEmployee_jsp.java:75) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056) org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1158) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397) javax.servlet.http.HttpServlet.service(HttpServlet.java:697) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 30390] - Wildcarded action mapping cannot create DynaValidatorForm
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=30390. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=30390 Wildcarded action mapping cannot create DynaValidatorForm [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||INVALID --- Additional Comments From [EMAIL PROTECTED] 2004-07-29 16:53 --- This is not a bug -- the problem was a typo in your struts-config.xml file. You were using the misspelled DynaValdiatorForm instead of DynaValidatorForm -- next time be more careful you ignorant twit. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DO NOT REPLY [Bug 30390] - Wildcarded action mapping cannot create DynaValidatorForm
;) -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 29, 2004 12:54 PM Subject: DO NOT REPLY [Bug 30390] - Wildcarded action mapping cannot create DynaValidatorForm DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=30390. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=30390 Wildcarded action mapping cannot create DynaValidatorForm [EMAIL PROTECTED] changed: What|Removed |Added -- -- Status|NEW |RESOLVED Resolution||INVALID --- Additional Comments From [EMAIL PROTECTED] 2004-07-29 16:53 --- This is not a bug -- the problem was a typo in your struts-config.xml file. You were using the misspelled DynaValdiatorForm instead of DynaValidatorForm -- next time be more careful you ignorant twit. - 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]
[Apache Struts Wiki] Updated: StrutsConsultants
Date: 2004-07-29T11:55:44 Editor: PhilipMarkDonaghy [EMAIL PROTECTED] Wiki: Apache Struts Wiki Page: StrutsConsultants URL: http://wiki.apache.org/struts/StrutsConsultants Changed my link Change Log: -- @@ -43,7 +43,7 @@ * Christophe Thiébaud, Struts Consultant -- http://openmozart.net -- mailto:[EMAIL PROTECTED] * Improve -- http://www.improve.fr * Inexware Services -- http://www.inexware.fr - * Philip Mark Donaghy -- http://www.mapimage.com + * Philip Mark Donaghy -- http://donaghy.blogspot.com * PRC -- http://formation.roumanoff.com/ * Valtech Technology Consulting -- http://www.valtech.fr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 1.2.2
I don't think we're picky at this point. Either what Ant does or what Maven does would be fine, robert. -Ted. On Thu, 29 Jul 2004 22:35:15 +0100, robert burrell donkin wrote: On 28 Jul 2004, at 11:02, Ted Husted wrote: snip One thing I'd like to do first is to link our Acquiring page to the Apache mirroring system, so that the distribution hooks up to the preferred place. I haven't looked into how that is done yet. If anyone else has a clue, please feel free to jump in. hi ted i know a little about this. what kind of thing had you in mind? would you want the Acquiring page to handle finding an appropriate mirror and giving an url to it? or would you be happy with a link to a generic page? - robert - 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]
DO NOT REPLY [Bug 30401] New: - ActionMessage should include option for bundle
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=30401. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=30401 ActionMessage should include option for bundle Summary: ActionMessage should include option for bundle Product: Struts Version: 1.1 Final Platform: Other OS/Version: Other Status: NEW Severity: Enhancement Priority: Other Component: Custom Tags AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] In an Action it is not possible to declare what resource bundle an ActionMessage should come from. The ActionMessage class should include an optional property to declare the name of the property file/ResourceBundle to get the value from. In your struts-config.xml if you have defined a message resource like the following. message-resources key=error_resources parameter=org.apache.resource.error null=false/ You should be to create an ActionMessage as follows ActionMessage am = new ActionMessage(error_resources, login.failed); This would use the error_resources bundle to lookup the key login.failed instead of the default global resource bundle. Additionally, the MessagesTag.java would have to change in the doAfterBody method (~line 308 revision 1.16) in order to support the new functionality. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Getting all the mails twice
Me too. - regards Raj (+91-11-31261821) -Original Message- From: Abhishek Khandelwal [mailto:[EMAIL PROTECTED] Sent: Monday, July 26, 2004 10:50 PM To: Struts Developers List Subject: Getting all the mails twice Why am I getting all the mails twice? On Mon, 2004-07-26 at 08:06, [EMAIL PROTECTED] wrote: I logged a bug on the html:link tag that prevented href (and other attributes) from being generated if the linkName was specified. I could not get the contrib (struts-el) to compile using either ant or maven. I did submit a patch to fix this 30300. Can someone incorporate this patch into the nightly build for Struts 1.2.1. Thanks. - Brian - 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] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]