RE: Struts 2 and Sitemesh
OK, I now get content. I specified the wrong value in the s:action tag's namespace attribute. -Original Message- From: Asleson, Ryan [mailto:[EMAIL PROTECTED] Sent: Friday, May 16, 2008 2:27 PM To: Struts Users Mailing List Subject: RE: Struts 2 and Sitemesh OK, doing that made the error go away, but none of the content is showing up. Hmm. -Original Message- From: Relph,Brian [mailto:[EMAIL PROTECTED] Sent: Friday, May 16, 2008 2:22 PM To: Struts Users Mailing List Subject: RE: Struts 2 and Sitemesh You might try this: page:applyDecorator name=theDecorator s:action name=footer executeResult=true / /page:applyDecorator You can also reference this issue: https://issues.apache.org/struts/browse/WW-2079 Brian Relph -Original Message- From: Relph,Brian [mailto:[EMAIL PROTECTED] Sent: Friday, May 16, 2008 2:14 PM To: Struts Users Mailing List Subject: RE: Struts 2 and Sitemesh Can you provide your struts.xml? Brian Relph -Original Message- From: Asleson, Ryan [mailto:[EMAIL PROTECTED] Sent: Friday, May 16, 2008 1:52 PM To: Struts Users Mailing List Subject: Struts 2 and Sitemesh Hello, I'm new to Struts 2 and have some experience with Sitemesh, but I'm having trouble getting the two to work together. I have defined a decorator like this: decorator name=main page=default.jsp pattern/*.action/pattern /decorator So it should be decorating anything that goes to Struts 2. The default.jsp file has a line that looks like this: page:applyDecorator name=theDecorator page=/include/footer.action http://www.biworldwide.com/info/index.html / When I run the page it fails with this error: javax.servlet.ServletException: java.io.FileNotFoundException: /myapp/include/footer.action I know the decorator default.jsp is being applied because when I remove the page:applyDecorator tag from it there are no errors. If I change the page:applyDecorator's page attribute to be an external website, it works too. So, it looks like it's not getting the call to another internal action. I've triple-check the path and it is correct. In fact, I disabled Sitemesh and went to the /myapp/include/footer.action and it displayed correctly. Here's what's in web.xml: filter-mapping filter-namestruts-cleanup/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-namesitemesh/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping I don't know what else to do. Can anybody figure out what's going on?? Thank you!! -Ryan This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you. -- CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. - 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] This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you
Re: Struts 2 and Sitemesh
Asleson, Ryan wrote: page:applyDecorator name=theDecorator page=/include/footer.action http://www.biworldwide.com/info/index.html / When you use this tag, how does sitemesh invoke the action? The exception implies its looking for a file and doesn't know it needs to invoke something through Struts2 Filter. I'm not sure of the solution, but it should be a common SiteMesh question. Relph,Brian wrote: You might try this: page:applyDecorator name=theDecorator s:action name=footer executeResult=true / /page:applyDecorator This works because the action is not invoked via the Filter. Instead its invoked directly by the tag as the code emulates an invocation and action context, with the inherent risks already mentioned. However, as the output from the action is written to the response, so I'm not sure how SiteMesh would know how to decorate only that section. You could try using the s:include tag as it works differently than s:action, but I'm still not sure how sitemesh will go with it. Which version of Struts2 are you using exactly? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts 2 and Sitemesh
Hello, I'm new to Struts 2 and have some experience with Sitemesh, but I'm having trouble getting the two to work together. I have defined a decorator like this: decorator name=main page=default.jsp pattern/*.action/pattern /decorator So it should be decorating anything that goes to Struts 2. The default.jsp file has a line that looks like this: page:applyDecorator name=theDecorator page=/include/footer.action http://www.biworldwide.com/info/index.html / When I run the page it fails with this error: javax.servlet.ServletException: java.io.FileNotFoundException: /myapp/include/footer.action I know the decorator default.jsp is being applied because when I remove the page:applyDecorator tag from it there are no errors. If I change the page:applyDecorator's page attribute to be an external website, it works too. So, it looks like it's not getting the call to another internal action. I've triple-check the path and it is correct. In fact, I disabled Sitemesh and went to the /myapp/include/footer.action and it displayed correctly. Here's what's in web.xml: filter-mapping filter-namestruts-cleanup/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-namesitemesh/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping I don't know what else to do. Can anybody figure out what's going on?? Thank you!! -Ryan This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you.
RE: Struts 2 and Sitemesh
Can you provide your struts.xml? Brian Relph -Original Message- From: Asleson, Ryan [mailto:[EMAIL PROTECTED] Sent: Friday, May 16, 2008 1:52 PM To: Struts Users Mailing List Subject: Struts 2 and Sitemesh Hello, I'm new to Struts 2 and have some experience with Sitemesh, but I'm having trouble getting the two to work together. I have defined a decorator like this: decorator name=main page=default.jsp pattern/*.action/pattern /decorator So it should be decorating anything that goes to Struts 2. The default.jsp file has a line that looks like this: page:applyDecorator name=theDecorator page=/include/footer.action http://www.biworldwide.com/info/index.html / When I run the page it fails with this error: javax.servlet.ServletException: java.io.FileNotFoundException: /myapp/include/footer.action I know the decorator default.jsp is being applied because when I remove the page:applyDecorator tag from it there are no errors. If I change the page:applyDecorator's page attribute to be an external website, it works too. So, it looks like it's not getting the call to another internal action. I've triple-check the path and it is correct. In fact, I disabled Sitemesh and went to the /myapp/include/footer.action and it displayed correctly. Here's what's in web.xml: filter-mapping filter-namestruts-cleanup/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-namesitemesh/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping I don't know what else to do. Can anybody figure out what's going on?? Thank you!! -Ryan This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you. -- CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts 2 and Sitemesh
You might try this: page:applyDecorator name=theDecorator s:action name=footer executeResult=true / /page:applyDecorator You can also reference this issue: https://issues.apache.org/struts/browse/WW-2079 Brian Relph -Original Message- From: Relph,Brian [mailto:[EMAIL PROTECTED] Sent: Friday, May 16, 2008 2:14 PM To: Struts Users Mailing List Subject: RE: Struts 2 and Sitemesh Can you provide your struts.xml? Brian Relph -Original Message- From: Asleson, Ryan [mailto:[EMAIL PROTECTED] Sent: Friday, May 16, 2008 1:52 PM To: Struts Users Mailing List Subject: Struts 2 and Sitemesh Hello, I'm new to Struts 2 and have some experience with Sitemesh, but I'm having trouble getting the two to work together. I have defined a decorator like this: decorator name=main page=default.jsp pattern/*.action/pattern /decorator So it should be decorating anything that goes to Struts 2. The default.jsp file has a line that looks like this: page:applyDecorator name=theDecorator page=/include/footer.action http://www.biworldwide.com/info/index.html / When I run the page it fails with this error: javax.servlet.ServletException: java.io.FileNotFoundException: /myapp/include/footer.action I know the decorator default.jsp is being applied because when I remove the page:applyDecorator tag from it there are no errors. If I change the page:applyDecorator's page attribute to be an external website, it works too. So, it looks like it's not getting the call to another internal action. I've triple-check the path and it is correct. In fact, I disabled Sitemesh and went to the /myapp/include/footer.action and it displayed correctly. Here's what's in web.xml: filter-mapping filter-namestruts-cleanup/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-namesitemesh/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping I don't know what else to do. Can anybody figure out what's going on?? Thank you!! -Ryan This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you. -- CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. - 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: Struts 2 and Sitemesh
OK, doing that made the error go away, but none of the content is showing up. Hmm. -Original Message- From: Relph,Brian [mailto:[EMAIL PROTECTED] Sent: Friday, May 16, 2008 2:22 PM To: Struts Users Mailing List Subject: RE: Struts 2 and Sitemesh You might try this: page:applyDecorator name=theDecorator s:action name=footer executeResult=true / /page:applyDecorator You can also reference this issue: https://issues.apache.org/struts/browse/WW-2079 Brian Relph -Original Message- From: Relph,Brian [mailto:[EMAIL PROTECTED] Sent: Friday, May 16, 2008 2:14 PM To: Struts Users Mailing List Subject: RE: Struts 2 and Sitemesh Can you provide your struts.xml? Brian Relph -Original Message- From: Asleson, Ryan [mailto:[EMAIL PROTECTED] Sent: Friday, May 16, 2008 1:52 PM To: Struts Users Mailing List Subject: Struts 2 and Sitemesh Hello, I'm new to Struts 2 and have some experience with Sitemesh, but I'm having trouble getting the two to work together. I have defined a decorator like this: decorator name=main page=default.jsp pattern/*.action/pattern /decorator So it should be decorating anything that goes to Struts 2. The default.jsp file has a line that looks like this: page:applyDecorator name=theDecorator page=/include/footer.action http://www.biworldwide.com/info/index.html / When I run the page it fails with this error: javax.servlet.ServletException: java.io.FileNotFoundException: /myapp/include/footer.action I know the decorator default.jsp is being applied because when I remove the page:applyDecorator tag from it there are no errors. If I change the page:applyDecorator's page attribute to be an external website, it works too. So, it looks like it's not getting the call to another internal action. I've triple-check the path and it is correct. In fact, I disabled Sitemesh and went to the /myapp/include/footer.action and it displayed correctly. Here's what's in web.xml: filter-mapping filter-namestruts-cleanup/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-namesitemesh/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping I don't know what else to do. Can anybody figure out what's going on?? Thank you!! -Ryan This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you. -- CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. - 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] This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 2 Spring sitemesh hangs on tomcat 6 and jboss
Hello guys, it turned out that app is whats hanging the server responded to other request not related to this webapp. i had : list.addAll(JobService.retrieveRecent()); after a couple of request it hanged, then i assigned it list = JobService.retrieveRecent(); no its fine list.clear(); also did the trick before the call.:-) Emil.I wrote: Hello, You guys had this, happen when i deploy my war file to tomcat, the application hangs seems waiting for reply forever. I deployed it on jboss ok for a while, then again after a while just hangs. Increasing memory in tomcat to 512 did not help. I got some params interceptor errors (setting action properties) and org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.apache.struts2.dispatcher.ServletDispatcherResult': Unsatisfied dependency expressed through constructor argument with index 0 of type [java.lang.String]: No unique bean of type [java.lang.String] is defined: Unsatisfied dependency of type [class java.lang.String]: expected at least 1 matching bean could those errors hang the web app? In my jboss console i see the following http-127.0.0.1-8080 Max threads: 250 Current thread count: 9 Current thread busy: 7 Max processing time: 5598 ms Processing time: 40.755 s Request count: 191 Error count: 74 Bytes received: 0.00 MB Bytes sent: 7.90 MB Stage TimeB Sent B Recv Client VHost Request S 976784 ms 0 KB0 KB127.0.0.1 localhost GET /web-console/ServerInfo.jsp HTTP/1.1 S 1059384 ms 0 KB0 KB127.0.0.1 localhost GET /JobSearch-1.0/job/home.action HTTP/1.1 S 1115877 ms 0 KB0 KB127.0.0.1 localhost GET /JobSearch-1.0/job/showCustomerRegistration.action HTTP/1.1 S 708182 ms 0 KB0 KB127.0.0.1 localhost GET /JobSearch-1.0/job/home.action HTTP/1.1 S 773187 ms 0 KB0 KB127.0.0.1 localhost GET /JobSearch-1.0/job/search.action HTTP/1.1 S 701843 ms 0 KB0 KB127.0.0.1 localhost GET /JobSearch-1.0/job/home.action HTTP/1.1 S 0 ms0 KB0 KB127.0.0.1 localhost GET /web-console/status?full=truejsessionid=69486E0BE0C24698F891065A3DC42CC3 HTTP/1.1 R ? ? ? ? ? ? R ? ? ? ? ? ? any suggestions? -- View this message in context: http://www.nabble.com/Struts-2-Spring-sitemesh-hangs-on-tomcat-6-and-jboss-tp15279283p15362797.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]
Struts 2 Spring sitemesh hangs on tomcat 6 and jboss
Hello, You guys had this, happen when i deploy my war file to tomcat, the application hangs seems waiting for reply forever. I deployed it on jboss ok for a while, then again after a while just hangs. Increasing memory in tomcat to 512 did not help. I got some params interceptor errors (setting action properties) and org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.apache.struts2.dispatcher.ServletDispatcherResult': Unsatisfied dependency expressed through constructor argument with index 0 of type [java.lang.String]: No unique bean of type [java.lang.String] is defined: Unsatisfied dependency of type [class java.lang.String]: expected at least 1 matching bean could those errors hang the web app? In my jboss console i see the following http-127.0.0.1-8080 Max threads: 250 Current thread count: 9 Current thread busy: 7 Max processing time: 5598 ms Processing time: 40.755 s Request count: 191 Error count: 74 Bytes received: 0.00 MB Bytes sent: 7.90 MB Stage TimeB Sent B Recv Client VHost Request S 976784 ms 0 KB0 KB127.0.0.1 localhost GET /web-console/ServerInfo.jsp HTTP/1.1 S 1059384 ms 0 KB0 KB127.0.0.1 localhost GET /JobSearch-1.0/job/home.action HTTP/1.1 S 1115877 ms 0 KB0 KB127.0.0.1 localhost GET /JobSearch-1.0/job/showCustomerRegistration.action HTTP/1.1 S 708182 ms 0 KB0 KB127.0.0.1 localhost GET /JobSearch-1.0/job/home.action HTTP/1.1 S 773187 ms 0 KB0 KB127.0.0.1 localhost GET /JobSearch-1.0/job/search.action HTTP/1.1 S 701843 ms 0 KB0 KB127.0.0.1 localhost GET /JobSearch-1.0/job/home.action HTTP/1.1 S 0 ms0 KB0 KB127.0.0.1 localhost GET /web-console/status?full=truejsessionid=69486E0BE0C24698F891065A3DC42CC3 HTTP/1.1 R ? ? ? ? ? ? R ? ? ? ? ? ? any suggestions? -- View this message in context: http://www.nabble.com/Struts-2-Spring-sitemesh-hangs-on-tomcat-6-and-jboss-tp15279283p15279283.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]
Struts 2 / codebehind / SiteMesh : how do I auto-wire static resources?
I'm working on a project that is using struts 2, codebehind, and SiteMesh. We're using Spring for injection. We've got it wired up so that each action has a template that is magically discovered, such that if I request an action ../foo!bar.action the template foo-bar.ftl is used to render the response. Sitemesh is also applying a decorator main.ftl. I would like to add a static resource directory for javascript that uses the same Action!Method naming convention. So my project looks something like: templates / foo-bar.ftl javascript / foo-bar.js If it existed foo-bar.js or the path to foo-bar.js would automatically be available to my template pages. Any suggestions on where I should implement this would be appreciated. Thanks! -- View this message in context: http://www.nabble.com/Struts-2---codebehind---SiteMesh-%3A-how-do-I-auto-wire-static-resources--tf4531694.html#a12932357 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where I can get Struts 2+Ajax+Sitemesh to start without using maven?
Hi all, Id like to set up a template as struts2-archetype-starter provides without using maven to create the project, but I do not know how to set this template from scratch using ant build. Is there any reference or simple template for it? I am looking an example using struts 2+Sitemesh+Ajax. Thanks a looot! Lupus -- View this message in context: http://www.nabble.com/Where-I-can-get-Struts-2%2BAjax%2BSitemesh-to-start-without-using-maven--tf4056341.html#a11522532 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]