Memcached
hi there anyone can get the idea, how to make S2 apps run cool fast and amazing i read about memcached from Dave slide of Blogs.sun.com, and there is also hibernate-memchaced and there is spymemcached. any glue is it possible s2 cached by memcached, and what is the benenfit -- -- Frans Thamura Meruvian Foundation Mobile: +62 855 7888 699 Linkedin: http://www.linkedin.com/in/fthamura Training JENI, Medallion (Alfresco, Liferay dan Compiere).. buruan... URL: http://nagasakti.mervpolis.com/roller/mervnews/entry/jeni_training_compiere_dan_alfresco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts2 Application Structure
Having followed this group for a while I know that the generally accepted wisdom is that every page should be handled via an Action. However, I have an application that is probably going to be 70% static pages with 30% Strut-able actions to handle form entry etc etc. This means that I'm going to have an awful lot of action classes that do nothing other than display the next page which feels kludgy. How would people deal with this? Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Validate associate Map
Hi konference How can I validate classes which are associated in collection. The class Page contents Map with PageText classes: Page.java -- private MapLanguageName, PageText texts = new HashMap(); ... getter / setter PageText.java -- private String description; @StringLengthFieldValidator(message=Length too short, key=validate.minLength.6, trim=true, mimLength = 6) public void setDescription(String description) { this.description = description; } Action.java --- private Page page; //it work but I need validate all classes in Map, not only ['en'] @Validations( visitorFields = { @VisitorFieldValidator( message = Default message, key = i18n.key, fieldName= page.texts['en'], appendPrefix = false) } ) public String execute() throws Exception{ return Action.SUCCESS; } When I set: fieldName= page.texts['en'] it work, but in Map are a lots of classes. I need validate all class in collection. When I set only: fieldName= page.texts it dont work. I need set something of : fieldName= page.texts[*] but it dont work. How can I determine in attribute fieldName as to validate all classes in page.texts ? Is it possible or I must resolve it otherwise? Thanks a lot - Tomas Jurman Czech Republic -- View this message in context: http://www.nabble.com/Validate-associate-Map-tp19010237p19010237.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: Struts2 Application Structure
Not sure where you get the action-per page is the generally accepted norm, but if your page is purely static (i.e. accesses no variables and includes no forms), go straight to the html page. Not only does this save you the JSP compile/post-compile interpretation time it also allows you to move the page onto an separate Apache HTTPD server to improve performance. Al. Roger wrote: Having followed this group for a while I know that the generally accepted wisdom is that every page should be handled via an Action. However, I have an application that is probably going to be 70% static pages with 30% Strut-able actions to handle form entry etc etc. This means that I'm going to have an awful lot of action classes that do nothing other than display the next page which feels kludgy. How would people deal with this? Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 Application Structure
Al Sutton wrote: Not sure where you get the action-per page is the generally accepted norm, but if your page is purely static (i.e. accesses no variables and includes no forms), go straight to the html page. Not only does this save you the JSP compile/post-compile interpretation time it also allows you to move the page onto an separate Apache HTTPD server to improve performance. Al. If you can't go down that path, the CodeBehind plugin is exactly what you need. If no action exists but a JSP exists, it invokes a default do nothing action so the JSP has access to all the usual Struts2 context and tags. http://struts.apache.org/2.0.11/docs/codebehind-plugin.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 Application Structure
On Saturday 16 August 2008 13:06:19 Al Sutton wrote: Not sure where you get the action-per page is the generally accepted norm, but if your page is purely static (i.e. accesses no variables and includes no forms), go straight to the html page. Not only does this save you the JSP compile/post-compile interpretation time it also allows you to move the page onto an separate Apache HTTPD server to improve performance. This is where I think I'm getting confused. How do I seperate my static HTML from my application? Any link http://www.host.com/MyApplication passes directly to Struts 2. Regards Roger wrote: Having followed this group for a while I know that the generally accepted wisdom is that every page should be handled via an Action. However, I have an application that is probably going to be 70% static pages with 30% Strut-able actions to handle form entry etc etc. This means that I'm going to have an awful lot of action classes that do nothing other than display the next page which feels kludgy. How would people deal with this? Regards - 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: Struts2 Application Structure
Roger wrote: Any link http://www.host.com/MyApplication passes directly to Struts 2. Only if you're using a strange configuration that says it should. Otherwise http://www.host.com/MyApplication/blah.jsp will be processed in the same way as any other jsp, and http://www.host.com/MyApplication/blah.html will be treated like any other HTML file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts2 Application Structure
Good Morning Al if you're using Apache you want to config the ajp13 connector to handle any/all struts/jsp/servlet requests so in your %APACHE_HOME%/conf/httpd.conf you'll want to config in ajp13 worker as illustrated here # send all requests ending in .jsp to ajp13 JkMount /*.jsp ajp13 JkMount /jpetstore/* ajp13 JkMount /manager/* ajp13 JKMount /struts2-showcase/* ajp13 JkMount /*.do ajp13 JkMount /*/servlet/ ajp13 JkWorkerProperty worker.list=ajp13 JkWorkerProperty worker.loadbalancer.type=lb JkWorkerProperty worker.loadbalancer.balanced_workers=ajp13 JkWorkerProperty worker.ajp13.type=ajp13 JkWorkerProperty worker.ajp13.host=localhost JkWorkerProperty worker.ajp13.port=8009 HTH! Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Sat, 16 Aug 2008 11:55:04 +0100 From: [EMAIL PROTECTED] To: user@struts.apache.org Subject: Re: Struts2 Application Structure Roger wrote: Any link http://www.host.com/MyApplication passes directly to Struts 2. Only if you're using a strange configuration that says it should. Otherwise http://www.host.com/MyApplication/blah.jsp will be processed in the same way as any other jsp, and http://www.host.com/MyApplication/blah.html will be treated like any other HTML file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Get ideas on sharing photos from people like you. Find new ways to share. http://www.windowslive.com/explore/photogallery/posts?ocid=TXT_TAGLM_WL_Photo_Gallery_082008
Re: Validate associate Map
I have to write custom validation method where I iterate all PageText class and validate it. I want to use validate() method from ActionSupport class but the method is invoke always. I need invoke validator method only when is invoke method save(); Is better resolution? public String save() throws Exception{ if (!isValid()) return INPUT; pageService.update(page); return execute(); } private boolean isValid(){ boolean success = true; for (Map.EntryLanguageName, PageText e : page.getTexts().entrySet()){ if (e.getValue().getDescription().length() 6 ){ addFieldError(getComponentName(e.getValue(), description), getText(validation.page.texts.description)); success = false; } } return success; //== } Kibo wrote: Hi konference How can I validate classes which are associated in collection. The class Page contents Map with PageText classes: Page.java -- private MapLanguageName, PageText texts = new HashMap(); ... getter / setter PageText.java -- private String description; @StringLengthFieldValidator(message=Length too short, key=validate.minLength.6, trim=true, mimLength = 6) public void setDescription(String description) { this.description = description; } Action.java --- private Page page; //it work but I need validate all classes in Map, not only ['en'] @Validations( visitorFields = { @VisitorFieldValidator( message = Default message, key = i18n.key, fieldName= page.texts['en'], appendPrefix = false) } ) public String execute() throws Exception{ return Action.SUCCESS; } When I set: fieldName= page.texts['en'] it work, but in Map are a lots of classes. I need validate all class in collection. When I set only: fieldName= page.texts it dont work. I need set something of : fieldName= page.texts[*] but it dont work. How can I determine in attribute fieldName as to validate all classes in page.texts ? Is it possible or I must resolve it otherwise? Thanks a lot - Tomas Jurman Czech Republic -- View this message in context: http://www.nabble.com/Validate-associate-Map-tp19010237p19011738.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: Validate associate Map
--- On Sat, 8/16/08, Kibo wrote: I have to write custom validation method where I iterate all PageText class and validate it. I want to use validate() method from ActionSupport class but the method is invoke always. I need invoke validator method only when is invoke method save(); Is better resolution? One option would be to read the documentation for the validation interceptor [1,2] and its superclass, MethodFilterInterceptor [3]. Dave [1] Validation interceptor overview: http://struts.apache.org/2.x/docs/validation-interceptor.html [2] ValidationInterceptor Javadocs: http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/validator/ValidationInterceptor.html [3] MethodFilterInterceptor Javadocs: http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/interceptor/MethodFilterInterceptor.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memcached
in struts-default.properties you can config the objectFactory cache created classes struts.objectFactory.spring.useClassCache = true ###suggestion to browser to please cache static parts ### If true - Struts will write out header for static contents such that they will ### be cached by web browsers (using Date, Cache-Content, Pragma, Expires) ### headers). ##this is only a suggestion to the browser struts.serve.static.browserCache=true YMMV/ Anyone else? Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Sat, 16 Aug 2008 13:26:12 +0700 From: [EMAIL PROTECTED] To: user@struts.apache.org Subject: Memcached hi there anyone can get the idea, how to make S2 apps run cool fast and amazing i read about memcached from Dave slide of Blogs.sun.com, and there is also hibernate-memchaced and there is spymemcached. any glue is it possible s2 cached by memcached, and what is the benenfit -- -- Frans Thamura Meruvian Foundation Mobile: +62 855 7888 699 Linkedin: http://www.linkedin.com/in/fthamura Training JENI, Medallion (Alfresco, Liferay dan Compiere).. buruan... URL: http://nagasakti.mervpolis.com/roller/mervnews/entry/jeni_training_compiere_dan_alfresco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Be the filmmaker you always wanted to be—learn how to burn a DVD with Windows®. http://clk.atdmt.com/MRT/go/108588797/direct/01/
Re: Validate associate Map
Can you record *yourself *reading these documents and just post the Podcast? On Sat, Aug 16, 2008 at 9:24 AM, Dave Newton [EMAIL PROTECTED] wrote: --- On Sat, 8/16/08, Kibo wrote: I have to write custom validation method where I iterate all PageText class and validate it. I want to use validate() method from ActionSupport class but the method is invoke always. I need invoke validator method only when is invoke method save(); Is better resolution? One option would be to read the documentation for the validation interceptor [1,2] and its superclass, MethodFilterInterceptor [3]. Dave [1] Validation interceptor overview: http://struts.apache.org/2.x/docs/validation-interceptor.html [2] ValidationInterceptor Javadocs: http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/validator/ValidationInterceptor.html [3] MethodFilterInterceptor Javadocs: http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/interceptor/MethodFilterInterceptor.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts Authorization Interceptor
Hello, I have recently integrated my struts2 apps with spring security for authentication. We use an implementation of CAS for single-sign-in/out. I am now looking to add authorization, and I was wondering if anyone had implemented an authorization interceptor with spring-security, and how that turned out. I am looking for both action and method level authorization. Thanks, Brian Relph -- 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.
Re: Validate associate Map
lol... I've just had a mental image of Dave reading the XML examples. Some things just don't work in audio. Al. [EMAIL PROTECTED] wrote: Can you record *yourself *reading these documents and just post the Podcast? On Sat, Aug 16, 2008 at 9:24 AM, Dave Newton [EMAIL PROTECTED] wrote: --- On Sat, 8/16/08, Kibo wrote: I have to write custom validation method where I iterate all PageText class and validate it. I want to use validate() method from ActionSupport class but the method is invoke always. I need invoke validator method only when is invoke method save(); Is better resolution? One option would be to read the documentation for the validation interceptor [1,2] and its superclass, MethodFilterInterceptor [3]. Dave [1] Validation interceptor overview: http://struts.apache.org/2.x/docs/validation-interceptor.html [2] ValidationInterceptor Javadocs: http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/validator/ValidationInterceptor.html [3] MethodFilterInterceptor Javadocs: http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/interceptor/MethodFilterInterceptor.html - 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: Validate associate Map
I'll offer it as a service along with my mad meta-Google skillz. --- On Sat, 8/16/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] [EMAIL PROTECTED] Subject: Re: Validate associate Map To: Struts Users Mailing List user@struts.apache.org, [EMAIL PROTECTED] Date: Saturday, August 16, 2008, 2:35 PM Can you record *yourself *reading these documents and just post the Podcast? On Sat, Aug 16, 2008 at 9:24 AM, Dave Newton [EMAIL PROTECTED] wrote: --- On Sat, 8/16/08, Kibo wrote: I have to write custom validation method where I iterate all PageText class and validate it. I want to use validate() method from ActionSupport class but the method is invoke always. I need invoke validator method only when is invoke method save(); Is better resolution? One option would be to read the documentation for the validation interceptor [1,2] and its superclass, MethodFilterInterceptor [3]. Dave [1] Validation interceptor overview: http://struts.apache.org/2.x/docs/validation-interceptor.html [2] ValidationInterceptor Javadocs: http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/validator/ValidationInterceptor.html [3] MethodFilterInterceptor Javadocs: http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/interceptor/MethodFilterInterceptor.html - 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: Validate associate Map
Hi Dave Thanks a lot for your help. I found out that the VisitorFieldValidator can work with Object, Arrays and Collections. Then I convert the Map to Collection and it begins work correct. @Validations( visitorFields = { @VisitorFieldValidator( message = Default message, key = i18n.key, fieldName= page.texts.values, appendPrefix = false) } ) public String save() throws Exception{ LOG.debug(ManagerPagesAction - method:save); pageService.update(page); return execute(); } ... -- lt;interceptor-ref name=validationgt; lt;param name=validateAnnotatedMethodOnlygt;truelt;/paramgt; lt;/interceptor-refgt; Thanks newton.dave wrote: --- On Sat, 8/16/08, Kibo wrote: I have to write custom validation method where I iterate all PageText class and validate it. I want to use validate() method from ActionSupport class but the method is invoke always. I need invoke validator method only when is invoke method save(); Is better resolution? One option would be to read the documentation for the validation interceptor [1,2] and its superclass, MethodFilterInterceptor [3]. Dave [1] Validation interceptor overview: http://struts.apache.org/2.x/docs/validation-interceptor.html [2] ValidationInterceptor Javadocs: http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/validator/ValidationInterceptor.html [3] MethodFilterInterceptor Javadocs: http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/interceptor/MethodFilterInterceptor.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Tomas Jurman Czech Republic -- View this message in context: http://www.nabble.com/Validate-associate-Map-tp19010237p19014275.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: Validate associate Map
--- On Sat, 8/16/08, Kibo [EMAIL PROTECTED] wrote: Thanks a lot for your help. I found out that the VisitorFieldValidator can work with Object, Arrays and Collections. Wow, that's nothing like the question I answered; glad it's working for you, although I'm a little confused now. Dave Then I convert the Map to Collection and it begins work correct. @Validations( visitorFields = { @VisitorFieldValidator( message = Default message, key = i18n.key, fieldName= page.texts.values, appendPrefix = false) } ) public String save() throws Exception{ LOG.debug(ManagerPagesAction - method:save); pageService.update(page); return execute(); } ... -- lt;interceptor-ref name=validationgt; lt;param name=validateAnnotatedMethodOnlygt;truelt;/paramgt; lt;/interceptor-refgt; Thanks newton.dave wrote: --- On Sat, 8/16/08, Kibo wrote: I have to write custom validation method where I iterate all PageText class and validate it. I want to use validate() method from ActionSupport class but the method is invoke always. I need invoke validator method only when is invoke method save(); Is better resolution? One option would be to read the documentation for the validation interceptor [1,2] and its superclass, MethodFilterInterceptor [3]. Dave [1] Validation interceptor overview: http://struts.apache.org/2.x/docs/validation-interceptor.html [2] ValidationInterceptor Javadocs: http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/validator/ValidationInterceptor.html [3] MethodFilterInterceptor Javadocs: http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/interceptor/MethodFilterInterceptor.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Tomas Jurman Czech Republic -- View this message in context: http://www.nabble.com/Validate-associate-Map-tp19010237p19014275.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: Validate associate Map
--- On Sat, 8/16/08, Al Sutton wrote: lol... I've just had a mental image of Dave reading the XML examples. I have a very soothing XML voice. I'm like the Isaac Hayes (but alive-ier) of structured text. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
javascript in returned jsp through xhr
Hi, I am a little stuck here. A action loads a jsp into a div. For this I use the ajax theme (dojo) and a form submit with target. Works fine. The Problem ist, that the jsp returned by the action has javascript in it. Its the jcalendar. Having this jsp load normally the calendar works fine, but not in div. To solve this I tried executeScripts option, but that did not work. I searched and found out that eval might help, but I simply dont know how this could help. Any hints would be greatly appreciated. Many thanks in advanced! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
value from varstatus
Hello Whenever I try to get the numerical value of varStatus all I get is this [EMAIL PROTECTED] Furthermore I cant seem to use the name attribute to properly evaluate down to value, it keeps saying that the value(which I want and proves it can do the dereferencing) is not a bean, no matter what syntax. Can someone help on these? c:forEach var=lv items=${current.dynaOptions} varStatus=status c:forEach var=option items=${lv.dynamicOptions} varStatus=statusOption bean:define id=rc${currentIncr}ctrlTypec:out value=${statusOption}/c:out/bean:define html:radio property=simpleRadioOptions01[${currentVarStatus}].choosenValuevalue=${option.value} styleId=${rc}/ bean:write name=option property=label/br / /c:forEach
[OT][JSTL] Re: value from varstatus
--- On Sat, 8/16/08, cpanon [EMAIL PROTECTED] wrote: Whenever I try to get the numerical value of varStatus all I get is this Typejavax.servlet.jsp.jstl.core.LoopTagSupport [...] All you get is giving you precisely what you've asked for. You'd need to use ${varStatus.count} (or index) or something. See the JSTL documentation [1,2]. Searching the fine web may also be of assistance [3]. Dave [1] forEach docs http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html [2] LoopTagStatus docs http://java.sun.com/products/jsp/jstl/1.1/docs/api/javax/servlet/jsp/jstl/core/LoopTagStatus.html [3] STFW http://www.google.com/search?q=c:foreach - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: javascript in returned jsp through xhr
---BeginMessage--- Dear Gainty, vielen Dank for your reply. I am very sorry but I cant supply you with a url. What I load into the div is the following: %@ include file=/common/taglibs.jsp% s:form id=traitForm method=post s:textfield id=form_start theme=xhtml cssClass=text medium / button id=button_start type=button class=button../button s:submit key=button.next / /s:form script type=text/javascript src=c:url value='/scripts/prototype.js'//script script type=text/javascript src=${ctx}/scripts/calendar/calendar.js/script script type=text/javascript src=${ctx}/scripts/calendar/calendar-setup.js/script script type=text/javascript src=${ctx}/scripts/calendar/lang/calendar-${pageContext.request.locale}.js/script script type=text/javascript Form.focusFirstElement(document.forms[traitForm]); Calendar.setup( { inputField : form_start, // id of the input field //ifFormat: %m/%d/%Y, // the date format ifFormat: Calendar._TT['TT_DATE_TIME_FORMAT'], showsTime : true, singleClick : false, button : button_start// id of the button } ); /script I use the following technique to load it into the div: s:form id=form_TraitPage action=selectTraitPage namespace=/ method=post s:radio list=traits listValue=getText(class.name) listKey=class.name name=traitType / s:submit id=submitSelectTratiPage theme=ajax targets=traitDiv / /s:form s:div id=traitDiv theme=ajax cssStyle=width: 100%; loadingText=getText('Loading') /s:div The selectTraitPage-action returns the jsp with the jcalender. The problem is, that clicking the button than does not result in a calendar view. I can use it when loaded not in the div. I simply dont know why and are very grateful for your help. I believe its a matter, that the imported calender.js and/or prototype.js (which is needed for the calendar) can bind to the button!? So it fails. Thx, Henning Martin Gainty schrieb: can you supply the URL (which delivers the content..) and we can test it here %@ taglib prefix=sx uri=/struts-dojo-tags % head sx:head debug=true extraLocales=de-de/ /head body sx:div href=http://kropp.de/test;Initial Content/sx:div /body /html Vielen Danke, Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Sat, 16 Aug 2008 22:41:09 +0200 From: [EMAIL PROTECTED] To: user@struts.apache.org Subject: javascript in returned jsp through xhr Hi, I am a little stuck here. A action loads a jsp into a div. For this I use the ajax theme (dojo) and a form submit with target. Works fine. The Problem ist, that the jsp returned by the action has javascript in it. Its the jcalendar. Having this jsp load normally the calendar works fine, but not in div. To solve this I tried executeScripts option, but that did not work. I searched and found out that eval might help, but I simply dont know how this could help. Any hints would be greatly appreciated. Many thanks in advanced! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Talk to your Yahoo! Friends via Windows Live Messenger. Find Out How http://www.windowslive.com/explore/messenger?ocid=TXT_TAGLM_WL_messenger_yahoo_082008 ---End Message--- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: javascript in returned jsp through xhr
talking about XHR anyone have success a JSON send and request? the idea is to make S2 as the JSON RPC implementation anyone F - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validate associate Map
Dude, I totally think technical books on audio would sell! Most NERDS (like myself) have the attention span of a moth and are so busy chasing shiny things they can never get to the end of a book! I would slam an aBook in my iPod for the commute. For a great example of what I mean by attention span disorder, check this http://www.coudal.com/regrets.php out. On Sat, Aug 16, 2008 at 3:23 PM, Dave Newton [EMAIL PROTECTED] wrote: --- On Sat, 8/16/08, Al Sutton wrote: lol... I've just had a mental image of Dave reading the XML examples. I have a very soothing XML voice. I'm like the Isaac Hayes (but alive-ier) of structured text. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts loses action configuration
I'm using Struts 2.1.2 and Tiles 2.0.5 on WebLogic 9.2.1. Periodically I see a TilesException in my server logs caused by a SocketException: Broken Pipe. The next request made into Struts seems to lose the Struts action configuration as I subsequently get a message There is no Action mapped for action name search_loadItemSearch. - [unknown location]. After these errors, the application no longer works until I restart the server (I would assume redeploying the application would work too). I'm curious to know if someone else has seen a similar error or if anyone has pointers as to places to start looking for the source of the problem and potentially the solution?? Thanks! Here's the stack trace from the SocketException: java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at weblogic.servlet.internal.ChunkOutput.writeChunkTransfer(ChunkOutput.java:525) at weblogic.servlet.internal.ChunkOutput.writeChunks(ChunkOutput.java:504) at weblogic.servlet.internal.ChunkOutput.flush(ChunkOutput.java:382) at weblogic.servlet.internal.CharsetChunkOutput.flush(CharsetChunkOutput.java:249) at weblogic.servlet.internal.ChunkOutput.checkForFlush(ChunkOutput.java:469) at weblogic.servlet.internal.CharsetChunkOutput.implWrite(CharsetChunkOutput.java:396) at weblogic.servlet.internal.CharsetChunkOutput.write(CharsetChunkOutput.java:198) at weblogic.servlet.internal.ChunkOutputWrapper.write(ChunkOutputWrapper.java:133) at weblogic.servlet.jsp.JspWriterImpl.write(JspWriterImpl.java:245) at jsp_servlet._web_45_inf._jsp._layouts.__default._writeText(__default.java:45) at jsp_servlet._web_45_inf._jsp._layouts.__default._jspService(__default.java:197) at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:223) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175) at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:500) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:245) at org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:198) at org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:185) at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:419) And the portion of the stack trace (not including wrapped exceptions) from Struts: There is no Action mapped for action name search_loadItemSearch. - [unknown location] at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:178) at org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61) at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39) at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:47) -- View this message in context: http://www.nabble.com/Struts-loses-action-configuration-tp19016796p19016796.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: Validate associate Map
On a vaguely-related side note, I spent yesterday floating in my kayak counting herons (1 great blue), egrets (4, species unknown), and, parenthetically, turtles, wondering where my bug spray was. The variety in turtle size was astonishing; some were bigger than my head (I know, right?!) while others were smaller than the palm of my hand (but still managed to avoid me--apparently they can swim). If I could just figure out a decent laptop mount for the cockpit I'd be all set. --- On Sat, 8/16/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Dude, I totally think technical books on audio would sell! Most NERDS (like myself) have the attention span of a moth and are so busy chasing shiny things they can never get to the end of a book! I would slam an aBook in my iPod for the commute. For a great example of what I mean by attention span disorder, check this http://www.coudal.com/regrets.php out. On Sat, Aug 16, 2008 at 3:23 PM, Dave Newton [EMAIL PROTECTED] wrote: --- On Sat, 8/16/08, Al Sutton wrote: lol... I've just had a mental image of Dave reading the XML examples. I have a very soothing XML voice. I'm like the Isaac Hayes (but alive-ier) of structured text. Dave - 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: javascript in returned jsp through xhr
Kropp, Henning wrote: Hi, I am a little stuck here. A action loads a jsp into a div. For this I use the ajax theme (dojo) and a form submit with target. Works fine. The Problem ist, that the jsp returned by the action has javascript in it. Its the jcalendar. Having this jsp load normally the calendar works fine, but not in div. To solve this I tried executeScripts option, but that did not work. I searched and found out that eval might help, but I simply dont know how this could help. Any hints would be greatly appreciated. Many thanks in advanced! Ensure separateScripts is also true. Cut back the javascript to the bare minmial first (eg. an alert). A lot of javascript has problems in this scenario because it assumes the DOM is complete or won't change before it's executed. I think dojo updates the DOM, the executes discovered scripts, but in some browsers you can get race conditions. eg. calls getElementById before that element exists properly (eg. exists and all its content exists). The best approach is to use a listener that initialises the javascript calendar only after it's certain the DOM is up-to-date, rather than using inline javascript in the result.. Hope that helps. Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: javascript in returned jsp through xhr
Somewhat on-topic: we should really figure this out, enumerate go/no-go use-cases, and write something up, since it comes up pretty frequently--I was never able to reproduce that JIRA issue around this, but I'd sure like to put this issue to rest w/ an easily-spewable wiki page. Dave --- On Sat, 8/16/08, Jeromy Evans wrote: From: Jeromy Evans [EMAIL PROTECTED] Subject: Re: javascript in returned jsp through xhr To: Struts Users Mailing List user@struts.apache.org Date: Saturday, August 16, 2008, 10:35 PM Kropp, Henning wrote: Hi, I am a little stuck here. A action loads a jsp into a div. For this I use the ajax theme (dojo) and a form submit with target. Works fine. The Problem ist, that the jsp returned by the action has javascript in it. Its the jcalendar. Having this jsp load normally the calendar works fine, but not in div. To solve this I tried executeScripts option, but that did not work. I searched and found out that eval might help, but I simply dont know how this could help. Any hints would be greatly appreciated. Many thanks in advanced! Ensure separateScripts is also true. Cut back the javascript to the bare minmial first (eg. an alert). A lot of javascript has problems in this scenario because it assumes the DOM is complete or won't change before it's executed. I think dojo updates the DOM, the executes discovered scripts, but in some browsers you can get race conditions. eg. calls getElementById before that element exists properly (eg. exists and all its content exists). The best approach is to use a listener that initialises the javascript calendar only after it's certain the DOM is up-to-date, rather than using inline javascript in the result.. Hope that helps. Jeromy Evans - 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: javascript in returned jsp through xhr
Dave Newton wrote: Somewhat on-topic: we should really figure this out, enumerate go/no-go use-cases, and write something up, since it comes up pretty frequently--I was never able to reproduce that JIRA issue around this, but I'd sure like to put this issue to rest w/ an easily-spewable wiki page. Dave Agreed! I can't reproduce the JIRA issue either. It works for me...except in cases where it's obvious it can't work. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]