Problem using css float inside a s:tabbedPanel
Hi, I'm currently using Struts 2.0.11.1 where I'm having problem using CSS style attribute 'float' together with Struts' s:tabbedPanel /. The content of the tabbedpanel is not displayed correctly when for example a div inside the tabbedPanel is using the 'float' attribute. Like this: s:tabbedPanel id=tabmenu s:div id=test1 label=Test theme=ajax labelposition=top div style=float: right; Hello float! /div /s:div s:div id=test2 label=Test2 theme=ajax labelposition=top divHello/div /s:div /s:tabbedPanel The div block inside tab test1 is displayed on the outside of the tabbedPanel, but the div inside test2 is displayed correctly. Also a div outside the tabbedPanel also disrupts the layout of tabbedpanel, but I think it's possible to fix with CSS 'clear: both' on the s:tabbedPanel / itself. I have tested this on both FF 2.0.0.14 and IE7.0. Any ideas on how this could be solved? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 2.0.11.1 problem
Which version of WebSphere Portal are you using? Also check for error messages on startup of the server, and make sure you post all the relevant stack traces. Nils-H On Wed, Apr 23, 2008 at 5:45 PM, Raghavendra [EMAIL PROTECTED] wrote: Hello, I just installed the struts 2.0.11.1 sample portlet on WebSphere Portal Server and added the test portlets to a page, but when I try to view the portlet, the page displays with This portlet is temporarirly disabled message. I see the error show below in the logs. I do have listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener in the web.xml, not sure why its complaining. Does any one have a similar experience on another portal? Or know how to fix this..or if its a common problem with 2.0.11.1? I tried 2.0.9 and it works fine. [4/16/08 15:11:13:093 EDT] 0038 SystemOut O 15:11:13,093 FATAL [org.apache.struts2.spring.StrutsSpringObjectFactory] ** FATAL ERROR STARTING UP STRUTS-SPRING INTEGRATION ** Looks like the Spring listener was not configured for your web app! Nothing will work until WebApplicationContextUtils returns a valid ApplicationContext. You might need to add the following to web.xml: listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener [4/16/08 15:11:13:109 EDT] 0038 ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: StrutsPortlet2. Exception thrown : java.lang.NullPointerException at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory.java:188) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyResultType(XmlConfigurationProvider.java:479) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addResultTypes(XmlConfigurationProvider.java:450) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:407) -- View this message in context: http://www.nabble.com/Struts-2.0.11.1-problem-tp16834672p16834672.html Sent from the Struts - User mailing list archive at Nabble.com. - 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]
Re: insert multiple objects in same form
HI, i found solution to my problem. + this is the jsp --- c:forEach var=i items=1,2,3,4,5,6 tr tdfmt:message key=label.date/:/td tdhtml:text property=date size=10//td tdjj/mm//td tdfmt:message key=label.heure/:/td tdhtml:text property=heure size=10//td tdhh:mm/td /tr /c:forEach + in the ActionForm i declared -- private String date[]; private String heure[]; + in the DispatchAction i use the date[]; and heure[]; getters to recover all values do you think that this solution is correct thanks -- View this message in context: http://www.nabble.com/insert-multiple-objects-in-same-form-tp16806476p16846048.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Submitting to a div on a tabbedPanel
cree wrote: I have been laboring over this pretty much all day and have not come up with any sort of solution heres my situation. I have two JSPs. One contains the main tabbed panel with any number of divs as tabs. One tab references an href like: s:div id=tabTwo theme=ajax label=Tab Two href=someAction.action/ The someAction.action will point to another JSP. This one contains an s:form that submits an action with its form data. So this next jsp looks like s:form action=processAction theme=ajax ...form data... s:submit theme=ajax targets=tabTwo value=Submit/ /s:form When I try to submit however nothing actually happens. No asynch call, or reload of the tabTwo div. I am sure that the s:div is accessible by this jsp though because I am able to use an s:a with that target pointing to tabTwo and it works exactly how I want it to just without the form data. If there is something I am missing I would very much like to know. Thanks in advance. If you're using IE or allow your users to, ensure the showLoadingText attribute is false. In IE, if the target div contains the source it overwrites itself before posting. As you described, nothing happens. In addition, if you need to use ajax tags inside an ajax result, ensure the executeScripts attribute is true (and separateScripts, and parseContent if they exist in your version). Also, I always found targeting a tab did not work well. Instead put a div inside the tab and target that inner div. ie. remove the href from the tab an insert an additional ajax div with an href inside the tab instead. make that inner div your target for updates. Updates will be inserted into the body of the tab without affecting the tab itself. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts 2.0.9 velocity problem
Raghavendra wrote: Hello, I am trying the struts 2.0.9 sample portlet and am seeing this problem when I use the velocity sample. Does anyone know how to fix this or if this is a known problem? ERROR [org.apache.commons.digester.Digester] Parse Fatal Error at line 1 column 1: Content is not allowed in prolog. org.xml.sax.SAXParseException: Content is not allowed in prolog. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) This is a common error that means you have invalid content in the prolog (beginning) of an XML document. There is something invalid (commonly whitespace) before the root element or in the region of the ?xml version=1.0? tag. As the error originates from Digester it's probably an XML configuration file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem using css float inside a s:tabbedPanel
Herman Svensen wrote: Hi, I'm currently using Struts 2.0.11.1 where I'm having problem using CSS style attribute 'float' together with Struts' s:tabbedPanel /. The content of the tabbedpanel is not displayed correctly when for example a div inside the tabbedPanel is using the 'float' attribute. Like this: s:tabbedPanel id=tabmenu s:div id=test1 label=Test theme=ajax labelposition=top div style=float: right; Hello float! /div /s:div s:div id=test2 label=Test2 theme=ajax labelposition=top divHello/div /s:div /s:tabbedPanel The div block inside tab test1 is displayed on the outside of the tabbedPanel, but the div inside test2 is displayed correctly. Also a div outside the tabbedPanel also disrupts the layout of tabbedpanel, but I think it's possible to fix with CSS 'clear: both' on the s:tabbedPanel / itself. I have tested this on both FF 2.0.0.14 and IE7.0. Any ideas on how this could be solved? Two ideas: - use the Web Developer Toolbar or FireBug with FF to view the generated source/DOM. This will give you an appreciation of the nesting of divs and css used by the tabbed panel. Tweak your CSS or override the panel's CSS accordingly - the autoLayout attribute (or something like that) may help you, or may be a hindering you, depending on its default value. Again use the generated source to see its effect. (sorry, that's the best I can offer) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Two problems: Struts2 + https + file load and Struts2 + file load + java.lang.IllegalStateException: getOutputStream()
Thanx a lot. After I insert return null the exception about 16:52:20,832 ERROR [UIBean] error when rendering java.lang.IllegalStateException: getOutputStream() has already been called for this response stopped. But I've still got the problem with IE6 - instead of file name I have the name of my action - as I understand IE6 takes the last part of my url because it looks like filename (dot) extension (FileContent.action?fileId=5067). And it is strange because it happens only when I use https and IE6. When it is http and IE6 it seems to be fine. Could anyone help with this stuff? Thank you very much! Sincerely yours. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Tuesday, April 22, 2008 9:23 PM To: user@struts.apache.org Subject: Re: Two problems: Struts2 + https + file load and Struts2 + file load + java.lang.IllegalStateException: getOutputStream() Filippov, Andrey wrote: Hello everybody! I am trying to load file from DB. I use https. In Mozilla I get only one exception but everything finally works. Here is my code and stack trace: public String execute() throws Exception { super.execute(); byte[] file = null; PolicyFileVO policyFile = polInfoInstance.getPolicyFileById(fileId); file = policyFile.getFile(); String fileType = polInfoInstance.getFileTypeById(policyFile.getType()) .getContentType(); if (file != null) { this.response.setCharacterEncoding(utf-8); String fileName = policyFile.getFile_name(); if (!fileType.startsWith(image)) { this.response.addHeader(Content-Disposition, attachment; filename= + fileName); } //final ServletContext sc = ServletActionContext.getServletContext(); this.response.setContentType(fileType); this.response.setContentLength(file.length); OutputStream o = null; try { o = response.getOutputStream(); o.write(file); o.flush(); } catch (java.lang.IllegalStateException ex) { log.error(IllegalStateException in FileContent.execute() method + ex); }catch (java.io.IOException ex) { log.error(IOException in FileContent.execute() method + ex); }catch (java.lang.Exception ex) { log.error(Exception in FileContent.execute() method + ex); }finally{ if (o != null){ response.flushBuffer(); o.close(); } } } There's no return statement in there, which shouldn't even compile... 16:52:20,832 ERROR [UIBean] error when rendering java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter(Response.java:604) 16:52:21,004 ERROR [[default]] Servlet.service() for servlet default threw exception java.io.IOException: Error including path '/layouts/four_rows_layout.jsp'. java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.tiles.servlet.context.ServletTilesRequestContext.include(ServletTilesRequestContext.java:214) at org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:183) at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:417) at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:368) This suggests Struts is trying to forward to a JSP after your action completes, which won't work since you've already sent a file back to the browser. You execute() method should be returning 'null' to tell Struts not to do this. And the second part of my problem happens only in IE6 - when dialog of opening/saving file instead of normal file name like myTest.pdf reflect the action name - something like this: FileContent_action?fileId=5046 (only when I use https - in http it looks fine - myTest.pdf). The file name to save to is specified by the Content-Disposition header, which you are not setting consistently. Sending a correct header every time should fix this problem. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For
Re: Problem with Validation framework
action name=LookupUser class=com.intuit.sbfw.action.mc.UserLookupAction UserLookupAction-validation.xml is in the same path as class above? 2) I see this message when I invoke my very first action: INFO [ActionValidatorManagerFactory] Detected AnnotationActionValidatorManager, initializing it... Does this mean that I have to use Annotation only to configure the validation rules and I cannot use the xml approach? No, you can, but you can also use in the same time xml base validation 3) What could be wrong with my setup so that my validation classes are not working? Check if xml file is in the same path when you deploy your application. Do you use maven2? Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart
RE: Two problems: Struts2 + https + file load and Struts2 + file load + java.lang.IllegalStateException: getOutputStream()
And it is strange because it happens only when I use https and IE6. When it is http and IE6 it seems to be fine. these links may help: http://eirikhoem.wordpress.com/2007/06/15/generated-pdfs-over-https-with -internet-explorer/ http://forum.java.sun.com/thread.jspa?threadID=233446forumID=45 Brad Cupit Louisiana State University - UIS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
About OGNL multi-threading contention
Hello, We've been testing an application in a production environment and found a serious contention problem when the number of simultaneous requests grows. The problem seems to be related with the use of static synchronized blocks in OGNL code. I've found a related issue in OGNL (http://jira.opensymphony.com/browse/OGNL-141) that is already fixed in version 2.7.2. But, another related issue (http://jira.opensymphony.com/browse/OGNL-10) is still open, although it already has a patch. Does anyone know when Struts2 team is upgrading the OGNL version? Currently struts2 uses OGNL version 2.6.10. This is a very important issue for my project, as it receives millions of requests per day. Greetings, Telmo Costa cid:image001.jpg@01C7FEB5.16BC8DE0 EF - Tecnologias de Software, S.A. Portugal
execAndWait and session access
I am trying to implement the execAndWait interceptor along with a custom authentication interceptor in an interceptor stack that most of my actions will call. I understand that the action being called needs to implement sessionAware if it wants to access the session. My question is: what about other interceptors on the stack...do they also need to implement sessionAware? In my example, my authIntercept is accessing the session from the invocation object. Is this a problem? Should my authIntercept be implementing sessionAware and getting the session object from there? Thanks john package name=userMgmt namespace=/userMgmt extends=struts-default interceptors interceptor-stack name=waitStack interceptor-ref name=authenticationIntercept/ interceptor-ref name=paramsPrepareParamsStack/ interceptor-ref name=execAndWait / /interceptor-stack /interceptors default-interceptor-ref name=waitStack/ global-results result name=wait/WEB-INF/pages/wait.jsp/result /global-results action name=userMaint_* method={1} class=pages.userManagement.userMaintenance result name=deleteUser/WEB-INF/pages/userMgmt/index.jsp/result result name=findUsers/WEB-INF/pages/userMgmt/index.jsp/result result name=success/WEB-INF/pages/userMgmt/index.jsp/result result name=input/WEB-INF/pages/userMgmt/index.jsp/result /action public class authIntercept implements Interceptor, AVConstants, Serializable { public void destroy(){ } public void init(){ } public String intercept (ActionInvocation invocation) throws Exception { Map attributes = invocation.getInvocationContext().getSession(); Object user = attributes.get(USER_OBJ); if (user == null) { return login; } else { return invocation.invoke (); } } } -- View this message in context: http://www.nabble.com/execAndWait-and-session-access-tp16850755p16850755.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 2.0.11.1 problem
[4/24/08 12:04:40:250 EDT] 0037 ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: StrutsPortlet. Exception thrown : java.lang.NullPointerException at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory.java:188) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyResultType(XmlConfigurationProvider.java:479) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addResultTypes(XmlConfigurationProvider.java:450) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:407) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:239) at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:152) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452) -- View this message in context: http://www.nabble.com/Struts-2.0.11.1-problem-tp16834672p16851020.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 2.0.11.1 problem
I am using WebSphere Portal 6.1 This is the cause of the problem..Has anyone encountered this or know a way to fix this? Any help would be appreciated. [4/24/08 12:04:40:250 EDT] 0037 ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: StrutsPortlet. Exception thrown : java.lang.NullPointerException at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory.java:188) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyResultType(XmlConfigurationProvider.java:479) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addResultTypes(XmlConfigurationProvider.java:450) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:407) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:239) at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:152) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452) -- View this message in context: http://www.nabble.com/Struts-2.0.11.1-problem-tp16834672p16851021.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: About OGNL multi-threading contention
There is a ticket open for the next version of Struts 2, 2.1.2, that will upgrade OGNL. The new version requires Struts 2 and XWork code changes, so it will take some time. Please vote or add any additional information to the Struts issue: http://issues.apache.org/struts/browse/WW-2527 Don On Fri, Apr 25, 2008 at 12:00 AM, Telmo Costa [EMAIL PROTECTED] wrote: Hello, We've been testing an application in a production environment and found a serious contention problem when the number of simultaneous requests grows. The problem seems to be related with the use of static synchronized blocks in OGNL code. I've found a related issue in OGNL (http://jira.opensymphony.com/browse/OGNL-141) that is already fixed in version 2.7.2. But, another related issue (http://jira.opensymphony.com/browse/OGNL-10) is still open, although it already has a patch. Does anyone know when Struts2 team is upgrading the OGNL version? Currently struts2 uses OGNL version 2.6.10. This is a very important issue for my project, as it receives millions of requests per day. Greetings, Telmo Costa EF - Tecnologias de Software, S.A. Portugal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts1/Tiles and Struts2/tiles in same app
Hello, I have to integrate struts 2 actions in my existing struts 1.2 web application. My login page is using struts 1.2 action. Upon login, I come to home page. there is a link on home page. when I click on that link, I need to go to another jsp page. The later action has to be in struts 2. I have added filter, filter mapping for struts 2 in web.xml. I have included struts.xml in the root of the project (under java source folder). This included struts-config.xml (using struts 1.2.8) and struts-config-two.xml (using struts 2). -- struts-config.xml is in web-inf -- struts-config-two.xml is in the root of the project (under java source folder) my struts-config-two.xml is : - ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.0.dtd; struts package name=xxx namespace=/xxx extends=xxx-default action name=testAction2 class=x.y.z.presentation.test.TestAction2 result name=home /TestLink.jsp /result /action /package /struts -- In my TestLink.jsp, I am specifying : s:url id=viewURL namespace=/xxx action=testAction2 / s:a href=%{viewURL} Test Link Home /s:a Test Link - I am able to login to the app. but When I click on the link I get an error message : ERROR action.RequestProcessor - Invalid path was requested /xxx/TestAction. Can you please help me to resolve this issue. I would have to use struts2 action in the flow of struts1 action. Please let me know the step by step procedure. I have read the migration tutorial. but it didn't help me to resolve this issue. Thanks, eusdart wrote: Hello, I have production application written using Struts1.2 and Tiles 1, and I need to implement the new Struts2/Tiles 2 features within the same web app. I have not found any good documentation that explains how to do this. I have created a simple Struts1/Tiles1 app that also has Struts2/Tiles2 in it. I am able to access the Struts1/Tiles1 components and I can even get to the Struts2 actions but the Struts2 app cannot get to the Tiles2 definitions. Can any provide a sample app or config info on how its done? Many thanks Darryl -- View this message in context: http://www.nabble.com/Struts1-Tiles-and-Struts2-tiles-in-same-app-tp12331130p16851024.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts1 and Struts2 in the same app
I have to integrate struts 2 actions in my existing struts 1.2 web application. My login page is using struts 1.2 action. Upon login, I come to home page. there is a link on home page. when I click on that link, I need to go to another jsp page. The later action has to be in struts 2. I have added filter, filter mapping for struts 2 in web.xml. I have included struts.xml in the root of the project (under java source folder). This included struts-config.xml (using struts 1.2.8) and struts-config-two.xml (using struts 2). -- struts-config.xml is in web-inf -- struts-config-two.xml is in the root of the project (under java source folder) my struts-config-two.xml is : - ?xml version=1.0 encoding=UTF-8 ? /TestLink.jsp -- In my TestLink.jsp, I am specifying : Test Link Home Test Link - I am able to login to the app. but When I click on the link I get an error message : ERROR action.RequestProcessor - Invalid path was requested /xxx/TestAction. Can you please help me to resolve this issue. I would have to use struts2 action in the flow of struts1 action. Please let me know the step by step procedure. I have read the migration tutorial. but it didn't help me to resolve this issue. -- View this message in context: http://www.nabble.com/Struts1-and-Struts2-in-the-same-app-tp16851031p16851031.html Sent from the Struts - User mailing list archive at Nabble.com.
Re: Struts 2.0.11.1 problem
Is this the _only_ error message in your logs? Check all the logs of your server, and make sure that you also check for errors at the startup of your server. If you can't find any more errors, then look one more time, just to make sure. From the very limited information you have provided, it seems like it's a problem loading the configuration. Also, did you change anything in the example application? Repackaged it? Modified some configuration files? Also make sure that you are using PARENT_LAST as classloader mode, if that's still an option in 6.1. Otherwise some classes may conflict with the ones in WebSphere's own libraries. Nils-H On Thu, Apr 24, 2008 at 6:10 PM, Raghavendra [EMAIL PROTECTED] wrote: [4/24/08 12:04:40:250 EDT] 0037 ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: StrutsPortlet. Exception thrown : java.lang.NullPointerException at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory.java:188) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyResultType(XmlConfigurationProvider.java:479) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addResultTypes(XmlConfigurationProvider.java:450) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:407) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:239) at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:152) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452) -- View this message in context: http://www.nabble.com/Struts-2.0.11.1-problem-tp16834672p16851020.html Sent from the Struts - User mailing list archive at Nabble.com. - 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]
Re: Re-use a form
Hi again and thaks for you interest in my problem! I've already resolt the problem, I just had to change the scope of the action that generates the form into session, instead of request, that was ok. But the real problem I had was that the link in the jsp was not well done. -- View this message in context: http://www.nabble.com/Re-use-a-form-tp16816559p16851296.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven Struts 2 archetype not working
I'm trying to run the following command : mvn archetype:create -DgroupId=tutorial -DartifactId=tutorial -DarchetypeGroupId=org.apache.struts -DarchetypeArtifactId=struts2-archetype-blank -DarchetypeVersion=2.0.9-SNAPSHOT -DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository It returns the following error : org.apache.maven.reactor.MavenExecutionException: Could not find the model file '/home/myhome/ejb/pom.xml'. for project unknown ... Caused by: org.apache.maven.project.ProjectBuildingException: Could not find the model file '/home/myhome/ejb/pom.xml'. for project unknown ... I'm running it with my user in gnome terminal in a debian etch maven version in my computer : # mvn -version Maven version: 2.0.7 Java version: 1.6.0_04 OS name: linux version: 2.6.18-6-686 arch: i386 # echo $M2 /opt/java/maven-2.0.7/bin # echo $M2_HOME /opt/java/maven-2.0.7 echo $JAVA_HOME /opt/java/jdk1.6.0_04 JAVA_HOME, M2 and M2_HOME environment variables are declared in /etc/profile I'm I missing something in my environment so I can create the project correctly ? Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
execAndWait losing form parameters
I have a form that updates a user profile. When I add the 'execAndWait' Interceptor it appears to work correctly - that is, the wait.jsp page displays and then goes back to the results page. But, the request parameters (those from the user profile form that are being submitted) are getting lost. Am I missing something? -- View this message in context: http://www.nabble.com/execAndWait-losing-form-parameters-tp16851913p16851913.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Spring Struts Plugin workaround for Session Scoped Beans
Hi, From the docs, I found this link/note: To use session-scoped components with Spring and Struts, see the Spring Session Components Workarounds analysis. That led to confluence page that doesn't yet exist. I am using a session scoped spring bean in a struts 2 action, and it seems to be working OK, but is there something I might be missing? My bean is defined as such: bean id=questionSequence class=gov.hhs.fda.service.impl.QuestionSequenceImpl scope=session aop:scoped-proxy/ /bean I have the RequestContextListener listener declared as per the Spring documentation as well. I'm just wondering what the work around documentation was supposed to be? Also, if I have a method getValueObject() on my action that returns a model, how do I get Spring to use that method to inject my service on the constructor? I want something like: ... QuestionSequenceImpl( ValueObject vo ){ this.vo= vo; } Thanks in advance! Michael Griffith
Redirect-action parameters via POST
Hi, all. I'm using the snippet below[1] in my struts.xml file to send finish an action with a redirect to another, and sending a parameter along. However, Struts 2 defaults to passing the parameter via appending it to the URL in a GET request. I'm going to need to add additional parameters, some of which may be extremely large, and which I'd prefer the user not be able to easily alter. So, I would like to change things so that the URL result is just webapp.com/namespace/documentUpload_input and the parameters are passed invisibly via POST request. Is there a way to do that? ~Dan Allen [1] action name=createPolicy class=createPolicyAction result name=success type=redirect-action param name=actionNamedocumentUpload_input/param param name=parsetrue/param param name=policyId${policyId}/param /result /action -- This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as KBC FP). This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided as is, without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redirect-action parameters via POST
Can you put the info on the session? Nils-H On Thu, Apr 24, 2008 at 9:52 PM, Allen, Daniel [EMAIL PROTECTED] wrote: Hi, all. I'm using the snippet below[1] in my struts.xml file to send finish an action with a redirect to another, and sending a parameter along. However, Struts 2 defaults to passing the parameter via appending it to the URL in a GET request. I'm going to need to add additional parameters, some of which may be extremely large, and which I'd prefer the user not be able to easily alter. So, I would like to change things so that the URL result is just webapp.com/namespace/documentUpload_input and the parameters are passed invisibly via POST request. Is there a way to do that? ~Dan Allen [1] action name=createPolicy class=createPolicyAction result name=success type=redirect-action param name=actionNamedocumentUpload_input/param param name=parsetrue/param param name=policyId${policyId}/param /result /action -- This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as KBC FP). This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided as is, without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns. - 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]
RE: Redirect-action parameters via POST
I can, and I considered that, but I was hoping to keep it in the XML to minimize the number of files that need to be changed. The documentUpload action that's the redirect target below is actually the recipient of quite a few links (in fact the basic point of the application is to facilitate document submission for various purposes). If this isn't possible purely via configuration, then yeah, session storage is definitely my fallback plan. ~DVA -Original Message- From: Nils-Helge Garli Hegvik [mailto:[EMAIL PROTECTED] Sent: Thursday, April 24, 2008 3:58 PM To: Struts Users Mailing List Subject: Re: Redirect-action parameters via POST Can you put the info on the session? Nils-H On Thu, Apr 24, 2008 at 9:52 PM, Allen, Daniel [EMAIL PROTECTED] wrote: Hi, all. I'm using the snippet below[1] in my struts.xml file to send finish an action with a redirect to another, and sending a parameter along. However, Struts 2 defaults to passing the parameter via appending it to the URL in a GET request. I'm going to need to add additional parameters, some of which may be extremely large, and which I'd prefer the user not be able to easily alter. So, I would like to change things so that the URL result is just webapp.com/namespace/documentUpload_input and the parameters are passed invisibly via POST request. Is there a way to do that? ~Dan Allen [1] action name=createPolicy class=createPolicyAction result name=success type=redirect-action param name=actionNamedocumentUpload_input/param param name=parsetrue/param param name=policyId${policyId}/param /result /action -- This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as KBC FP). This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided as is, without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts2.1: Is Validation Annotations on Nested Objects Supported?
Hello, Does anyone have an idea how to invoke validation annotations on nested objects? We’re using hierarchal objects in Struts 2.1 and the validation annotations do not seem to be firing on the child objects. For example I have a Customer object which has an Address object as an attribute. Annotations on the customer object fire correctly, but the annotations on the address object are not invoked. We’re using the VisitorFieldValidator on the Action and the validate.validateAnnotatedMethodOnly parameter on the interceptor stack. Any thoughts would be appreciated. Eric Getchell | Sr. Technologist Distributed Logic Corporation -- View this message in context: http://www.nabble.com/Struts2.1%3A-Is-Validation-Annotations-on-Nested-Objects-Supported--tp16852587p16852587.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validation on methods
The validate() method should be called for any request on that action unless (a) the request is serviced by an excluded method (where the set of excluded methods depends on the interceptor stack you are using and/or an explicit configuration you've specified) or (b) you have switched the 'allways execute validate()' behaviour off. Please post all the relevant parts of your struts.xml and other configuration, as well as the precise URL you are requesting that results in validate() not being called. L. Volker Karlmeier wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Márcio*, *thanks for your quick answer. Yes, that will work, you're right. Unfortunately is is not exactly what i would want. You are doing your validation in the method that is called. I would prefer the framework to call *validate()* before (!) my method (in that case save ) is called. This should happen when I subclass from ActionSupport and implement validate(), but it only seems to work when the method execute() is called. I could call validate() from the method save in it's beginning (that's in fact what I do now), but that not the intention of the interfaces Validatable/ValidationAware. So I hope, anyone can give me a hint as I like to write clean, readable code and do not want to create workarounds all the time ;) Anyway, thanks for the effort. Volker * *Márcio Gurgel schrieb: Hi Volker, You can do it with struts xml validator: Include a xml into your action package like this: ActionName - alias from action - validation.xml Example: ActionName-save-validation.xml * Note that save is the name of action in your struts.xml Nothing better than a real example: struts.xml --- action name=salvar method=salvar class=br.com.sgvdba.actions.usu.UsuAction result name=success type=redirectAction param name=idUsu${currentUsu.cd}/param param name=actionNameabrirDados/param param name=namespace/usuario/param /result result type=tiles name=inputdefault.usu/result /action UsuAction (Action class) - /** * Persiste determinado usuário no banco de dados * * Para inserir um usuário deve ser confirmada a não-existência * de outro registro com o mesmo nome de usuário. * @return */ public String salvar(){ //Verifica se a tela possui erros if (hasFieldErrors() || hasErrors()){ return Action.INPUT; } try { if (!getUsuFacade().isSenhaValid(currentUsu.getSenha(), senhaConf)){ addActionError(As senhas informadas devem ser iguais); return Action.INPUT; } else if (!getUsuFacade().isChvValid(currentUsu.getChv())){ addActionError(Já existe um usuário com este nome, favor informar um nome diferente); return Action.INPUT; } else { NvlAcso nvlAcso = getNvlAcsoFacade().recuperaPorId(idNvlAcso); getUsuFacade().incluir(currentUsu, nvlAcso); setIdUsu(currentUsu.getCd()); } } catch (Exception e) { addActionError(SgvdbaConstants.ERRO_DEFAULT + e.getMessage()); return Action.INPUT; } return Action.SUCCESS; } UsuAction-salvar-validation.xml (VALIDATION) --- ?xml version=1.0 encoding=UTF-8? !DOCTYPE validators PUBLIC -//OpenSymphony Group//XWork Validator 1.0//EN http://www.opensymphony.com/xwork/xwork-validator-1.0.dtd; validators field name=currentUsu.chv field-validator type=requiredstring messageFavor inserir um nome de usuário/message /field-validator /field field name=currentUsu.email field-validator type=requiredstring messageFavor inserir um e-mail/message /field-validator field-validator type=email messageFavor informar um e-mail válido/message /field-validator /field field name=currentUsu.senha field-validator type=requiredstring messageFavor inserir uma senha/message /field-validator field-validator type=stringlength param name=minLength4/param param name=maxLength12/param param name=trimtrue/param messageA senha deve conter no mínimo ${minLength} e no máximo ${maxLength}/message /field-validator /field /validators Hope this can help you. Sorry by text in portuguese on my code, but I guess it's gona be easy to understand. []'s 2008/4/23, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hello y'all, i have quite an interesting problem again. In my
Re: execAndWait interceptor and setting request attribute throws NPException
akash agrawal wrote: Hi, When I use execAndWait interceptor and set some request attribute in my action, I get NPE: java.lang.NullPointerException at org.apache.catalina.connector.Request.setAttribute(Request.java:1376) at org.apache.catalina.connector.RequestFacade.setAttribute(RequestFacade.java:500) at javax.servlet.ServletRequestWrapper.setAttribute(ServletRequestWrapper.java:283) Ideas? Don't set that request attribute?... You really need to provide more information than this. For starters: - how are you using the execAndWait interceptor (how do you have it configured) - what does your action mapping look like? - how are you setting the request attribute? where? (in your action?) - what is the request attribute you're setting? what are you setting it to? and, since it's an NPE, have you *confirmed* that neither the attribute name nor the value are null? - *where* is this exception occurring? (we can't tell, because you truncated the stack trace) - what does the *complete* stack trace look like? L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[S2] Populate a List property?
Hi All, I want to be able to submit a form that can add array elements to one of my action properties. I have something like this: public class SomeAction{ private FooBar foo; // getters and setters, execute, etc. here } with public class FooBar{ private ListBar bars; // getters and setters } how can I submit elements in a way that adds new elements to the list in FooBar? I can set FooBar fine, but trip up on the array portion. I need to know how to do this without using the s2 taglib, as I am sending a json request. Thanks, James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
S2 ognl-2.6.11.jar source code
Can someone tell me where to find the source for ognl-2.6.11.jar? I've looked on www.ognl.org but it only goes up to 2.6.9. I've looked on www.opensymphony.com/ognl/ but it doesn't have a working download for ognl. It points you to a CVS source repository on java.net but there is no release version tags or branches (that I could find). I've tried using this but it doesn't always match the jar and the debugger gets lost. Any one know where the source is? -- View this message in context: http://www.nabble.com/S2-ognl-2.6.11.jar-source-code-tp16853895p16853895.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: S2 ognl-2.6.11.jar source code
http://mirrors.ibiblio.org/pub/mirrors/maven2/opensymphony/ognl/2.6.11/ It took me a while to find it too :) Cheers, GB Greg Lindholm wrote: Can someone tell me where to find the source for ognl-2.6.11.jar? I've looked on www.ognl.org but it only goes up to 2.6.9. I've looked on www.opensymphony.com/ognl/ but it doesn't have a working download for ognl. It points you to a CVS source repository on java.net but there is no release version tags or branches (that I could find). I've tried using this but it doesn't always match the jar and the debugger gets lost. Any one know where the source is? -- View this message in context: http://www.nabble.com/S2-ognl-2.6.11.jar-source-code-tp16853895p16861298.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is there such a thing as flash in S2?
Hi guys, I have just developed a FlashResult / FlashInterceptor pair - turns out it wasn't that difficult. I couldn't give it much testing (for the moment the only use case in my application that requires flash scope is showing success messages following a redirect) but for what it's worth it seems to work fine. Unit tests are also conclusive. The FlashResult basically works like the ServletActionRedirectResult except that instead of converting all extra parameters to strings and adding them as HTTP parameters in the redirect URL, it creates a HashMap using these parameter key/value pairs with no conversion and stores it in the user session. On the next HTTP request the FlashInterceptor, if properly added to the interceptor stack, will retrieve this map and copy the map entries to the target action using the parameter keys. It should work for all data types. To function correctly this approach assumes that bug WW-2170 is fixed. The implementation also borrows a lot from the ServletActionRedirectResult and some refactoring should be done. Is there a place where I can upload the code so that you guys can check it out and give me some feedback? I think this could make a nice addition to the Struts2 code base. Cheers, GB Brad A Cupit wrote: This hypothetical flash result could list the properties that should survive the redirect snip/ I'll investigate writing such a result / interceptor pair. Wouldn't that be the same as the ServletActionRedirectResult, where param values can be ognl expressions? (assuming a version of struts 2 where bug WW-2170 is fixed). Now, if this result/interceptor pair instead reads annotations on properties in the action, or, if it stores the results in the session (and then removed them on the next request) rather than as parameters in the url, then it definitely is different from ServletActionRedirectResult. Having said that, I question using the session, since redirect-after-post was designed to help alleviate back and refresh button problems. If we store information in the session for the redirect, then the first GET will find that information, but subsequent GETs (perhaps the result of pressing back or refresh) will not find that information, so the GET will have been inconsistent. I guess this just pertains to flash scope in general though, and not any particular implementation. Brad Cupit Louisiana State University - UIS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Is-there-such-a-thing-as-flash-in-S2--tp16697840p16866433.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Building First strut
Hello Group, I am working with struts and following is what I have done already. 1. Downloaded tomcat, configured it, and it is running alright. 2. Downloaded struts unzipped, untarred it and copied necessary .jar files from this directory into tomcat WEB-INF/lib directory. 3. Built web.xml for HelloWorld example and placed it under WEB-INF. 4. Built struts.xml file for HelloWorld and placed it under WEB-INF/classes directory. 5. Wrote HelloWorld.java and compiled it. I am stuck here. Questions Where to put HelloWorld.java, HelloWorld.jsp. I downloaded Maven to work with struts but it did not compile for lack of pom.xml. And there is no good example available. I copied the one on the internet, but Neither mvn clean install nor mvn install will compile How do I create the .war files. I need to start my first strut example and I will appreciate any help. -- Thanks Nagrik
Re: Building First strut
Which version of struts are you using? Struts 1 and Struts 2 are very different. -Wes On Thu, 2008-04-24 at 17:48 -0700, Vinay Nagrik wrote: Hello Group, I am working with struts and following is what I have done already. 1. Downloaded tomcat, configured it, and it is running alright. 2. Downloaded struts unzipped, untarred it and copied necessary .jar files from this directory into tomcat WEB-INF/lib directory. 3. Built web.xml for HelloWorld example and placed it under WEB-INF. 4. Built struts.xml file for HelloWorld and placed it under WEB-INF/classes directory. 5. Wrote HelloWorld.java and compiled it. I am stuck here. Questions Where to put HelloWorld.java, HelloWorld.jsp. I downloaded Maven to work with struts but it did not compile for lack of pom.xml. And there is no good example available. I copied the one on the internet, but Neither mvn clean install nor mvn install will compile How do I create the .war files. I need to start my first strut example and I will appreciate any help. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: About OGNL multi-threading contention
actually struts is currently using ongl 2.6.11 correct? In fact the problem that you reference here http://jira.opensymphony.com/browse/OGNL-141, seems to indicate it was the 2.6.11 version of the OGNL jar that introduced the problem. Can someone verify? I would second the idea that this is a very important issue for my project. Not sure if this is the appropriate forum to raise this issue, but I desperately need a patch. Does anyone know if downgrading to OGNL-2.6.10 would solve the problem? Looking at the sources the synchronization on the method object in the OgnlRuntime.invokeMethod seems to be the only difference between the two versions... thanks, - darren Telmo Costa wrote: Hello, We’ve been testing an application in a production environment and found a serious contention problem when the number of simultaneous requests grows. The problem seems to be related with the use of static synchronized blocks in OGNL code. I’ve found a related issue in OGNL (http://jira.opensymphony.com/browse/OGNL-141) that is already fixed in version 2.7.2. But, another related issue (http://jira.opensymphony.com/browse/OGNL-10) is still open, although it already has a patch. Does anyone know when Struts2 team is upgrading the OGNL version? Currently struts2 uses OGNL version 2.6.10. This is a very important issue for my project, as it receives millions of requests per day. Greetings, /Telmo Costa/ cid:image001.jpg@01C7FEB5.16BC8DE0 EF - Tecnologias de Software, S.A. Portugal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building First strut
Wes is right without information about the version its very hard to put any comments on this, On 4/25/08, Wes Wannemacher [EMAIL PROTECTED] wrote: Which version of struts are you using? Struts 1 and Struts 2 are very different. -Wes On Thu, 2008-04-24 at 17:48 -0700, Vinay Nagrik wrote: Hello Group, I am working with struts and following is what I have done already. 1. Downloaded tomcat, configured it, and it is running alright. 2. Downloaded struts unzipped, untarred it and copied necessary .jar files from this directory into tomcat WEB-INF/lib directory. 3. Built web.xml for HelloWorld example and placed it under WEB-INF. 4. Built struts.xml file for HelloWorld and placed it under WEB-INF/classes directory. 5. Wrote HelloWorld.java and compiled it. I am stuck here. Questions Where to put HelloWorld.java, HelloWorld.jsp. I downloaded Maven to work with struts but it did not compile for lack of pom.xml. And there is no good example available. I copied the one on the internet, but Neither mvn clean install nor mvn install will compile How do I create the .war files. I need to start my first strut example and I will appreciate any help. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: About OGNL multi-threading contention
Darren James wrote: actually struts is currently using ongl 2.6.11 correct? In fact the problem that you reference here http://jira.opensymphony.com/browse/OGNL-141, seems to indicate it was the 2.6.11 version of the OGNL jar that introduced the problem. Can someone verify? I would second the idea that this is a very important issue for my project. Not sure if this is the appropriate forum to raise this issue, but I desperately need a patch. Does anyone know if downgrading to OGNL-2.6.10 would solve the problem? Looking at the sources the synchronization on the method object in the OgnlRuntime.invokeMethod seems to be the only difference between the two versions... thanks, OGN-2.6.10 appears to be run-time compatible with Struts 2.1.1 (evaluated by manual drop-in and test in my own project). The release notes of 2.6.11 state that the only issue fixed with the race condition in OgnlRuntime.invokeMethod; the fix that subsequently introduced the contention issue. Falling back to 2.6.10 carries risk but is plausible if your project is more affected by the contention issue than race condition. Issues addressed by release: http://jira.opensymphony.com/secure/BrowseProject.jspa?id=10090subset=-1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]