Struts 1: Extending action within struts configuration XML
QUESTION: Is there any way to prevent access to base action configuration extended by another action within the struts configuration? CONTEXT: I am looking to setup a template action configuration to be used by several actions, however the only way to reference the template action is via the path attribute. The biggest problem with this is that I don't want the template web accessible and couldn't find a way to prevent the access to the template. Thoughts? Thanks for your time, Andrew - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
XML file reloading in JSP (Caching issue)
Hi, I am running into an issue of caching. I have a jsp which generates the tree view from an XML file. This XML file are loaded when the jsp is loaded. So whenever I add new child to the tree view the xml file is updated by action class and the request reloads the jsp page which in turns reload that updated XML file. The issue is everytime it reloads the XML file, it gets from the temporary internet file which is not getting updated until I kill the browser and reload it. For example. For the first time, I have the xml file with content .Parent 1 ...Child 1 ...Child 12 ...Child 13 .Parent 2 ...Child 2 ...Child 21 When I call the action,to show tree then it calls the jsp file which loads the XML file and shows the jsp tree which works perfectly. Shows complete tree view based on XML file. Then I will add new child Child 22 into .Parent 2 then the action will be called and that action will update the XML file which is located into ../WEBINF/pages and returns to the same jsp and reloads jsp which also needs to reloads the updated XML file. Now issue is , its not reloading that updated XML file and still showing the tree without newly added child. When I checked internet temporary files, it was still old XML file but at ../WEBINF/pages location, the XML has been updated. So I figured out that it is an issue of caching. I tried to remove caching with http headers setting % response.setHeader(Cache-Control,no-cache); //HTTP 1.1 response.setHeader(Pragma,no-cache); //HTTP 1.0 response.setDateHeader (Expires, 0); //prevents caching at the proxy server % Also tried with adding extra parameters to change the URL request. But still doen't work. Anyone has any suggestions, what to do next. Thanks for your help. Sorry.., If any typos or explained in too much detail. -- View this message in context: http://old.nabble.com/XML-file-reloading-in-JSP-%28Caching-issue%29-tp28657737p28657737.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: XML file reloading in JSP (Caching issue)
What extra parameters have you added to the request? AFAIK the standard solution to this type of improper caching problem is to simply append a random number or a timestamp to the request URL. It's an ugly hack, but it does work even when the headers don't seem to do the trick. Of course, the Right Way is to rely on the no-cache headers, so you might want to do a bit more troubleshooting on that front. Hope this helps, -Brian On Mon, May 24, 2010 at 9:44 AM, XML User patelsame...@yahoo.com wrote: Hi, I am running into an issue of caching. I have a jsp which generates the tree view from an XML file. This XML file are loaded when the jsp is loaded. So whenever I add new child to the tree view the xml file is updated by action class and the request reloads the jsp page which in turns reload that updated XML file. The issue is everytime it reloads the XML file, it gets from the temporary internet file which is not getting updated until I kill the browser and reload it. For example. For the first time, I have the xml file with content .Parent 1 ...Child 1 ...Child 12 ...Child 13 .Parent 2 ...Child 2 ...Child 21 When I call the action,to show tree then it calls the jsp file which loads the XML file and shows the jsp tree which works perfectly. Shows complete tree view based on XML file. Then I will add new child Child 22 into .Parent 2 then the action will be called and that action will update the XML file which is located into ../WEBINF/pages and returns to the same jsp and reloads jsp which also needs to reloads the updated XML file. Now issue is , its not reloading that updated XML file and still showing the tree without newly added child. When I checked internet temporary files, it was still old XML file but at ../WEBINF/pages location, the XML has been updated. So I figured out that it is an issue of caching. I tried to remove caching with http headers setting % response.setHeader(Cache-Control,no-cache); //HTTP 1.1 response.setHeader(Pragma,no-cache); //HTTP 1.0 response.setDateHeader (Expires, 0); //prevents caching at the proxy server % Also tried with adding extra parameters to change the URL request. But still doen't work. Anyone has any suggestions, what to do next. Thanks for your help. Sorry.., If any typos or explained in too much detail. -- View this message in context: http://old.nabble.com/XML-file-reloading-in-JSP-%28Caching-issue%29-tp28657737p28657737.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: XML file reloading in JSP (Caching issue)
Thanks for quick reply Brian.! I tried adding new timestamp as parameters which generates new number everytime I visit the page. Even added those headers setting for no cache... meta http-equiv=Cache-Control content=no-store/ meta http-equiv=Pragma content=no-cache/ meta http-equiv=Expires content=0/ Still it is not getting updated. Brian Thompson-5 wrote: What extra parameters have you added to the request? AFAIK the standard solution to this type of improper caching problem is to simply append a random number or a timestamp to the request URL. It's an ugly hack, but it does work even when the headers don't seem to do the trick. Of course, the Right Way is to rely on the no-cache headers, so you might want to do a bit more troubleshooting on that front. Hope this helps, -Brian On Mon, May 24, 2010 at 9:44 AM, XML User patelsame...@yahoo.com wrote: Hi, I am running into an issue of caching. I have a jsp which generates the tree view from an XML file. This XML file are loaded when the jsp is loaded. So whenever I add new child to the tree view the xml file is updated by action class and the request reloads the jsp page which in turns reload that updated XML file. The issue is everytime it reloads the XML file, it gets from the temporary internet file which is not getting updated until I kill the browser and reload it. For example. For the first time, I have the xml file with content .Parent 1 ...Child 1 ...Child 12 ...Child 13 .Parent 2 ...Child 2 ...Child 21 When I call the action,to show tree then it calls the jsp file which loads the XML file and shows the jsp tree which works perfectly. Shows complete tree view based on XML file. Then I will add new child Child 22 into .Parent 2 then the action will be called and that action will update the XML file which is located into ../WEBINF/pages and returns to the same jsp and reloads jsp which also needs to reloads the updated XML file. Now issue is , its not reloading that updated XML file and still showing the tree without newly added child. When I checked internet temporary files, it was still old XML file but at ../WEBINF/pages location, the XML has been updated. So I figured out that it is an issue of caching. I tried to remove caching with http headers setting % response.setHeader(Cache-Control,no-cache); //HTTP 1.1 response.setHeader(Pragma,no-cache); //HTTP 1.0 response.setDateHeader (Expires, 0); //prevents caching at the proxy server % Also tried with adding extra parameters to change the URL request. But still doen't work. Anyone has any suggestions, what to do next. Thanks for your help. Sorry.., If any typos or explained in too much detail. -- View this message in context: http://old.nabble.com/XML-file-reloading-in-JSP-%28Caching-issue%29-tp28657737p28657737.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://old.nabble.com/XML-file-reloading-in-JSP-%28Caching-issue%29-tp28657737p28658007.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: XML file reloading in JSP (Caching issue)
how about if you change the location of the xml file, take it out of web-inf and put it under the context root? SDF/ -Original Message- From: XML User [mailto:patelsame...@yahoo.com] Sent: Monday, May 24, 2010 11:16 AM To: user@struts.apache.org Subject: Re: XML file reloading in JSP (Caching issue) Thanks for quick reply Brian.! I tried adding new timestamp as parameters which generates new number everytime I visit the page. Even added those headers setting for no cache... meta http-equiv=Cache-Control content=no-store/ meta http-equiv=Pragma content=no-cache/ meta http-equiv=Expires content=0/ Still it is not getting updated. Brian Thompson-5 wrote: What extra parameters have you added to the request? AFAIK the standard solution to this type of improper caching problem is to simply append a random number or a timestamp to the request URL. It's an ugly hack, but it does work even when the headers don't seem to do the trick. Of course, the Right Way is to rely on the no-cache headers, so you might want to do a bit more troubleshooting on that front. Hope this helps, -Brian On Mon, May 24, 2010 at 9:44 AM, XML User patelsame...@yahoo.com wrote: Hi, I am running into an issue of caching. I have a jsp which generates the tree view from an XML file. This XML file are loaded when the jsp is loaded. So whenever I add new child to the tree view the xml file is updated by action class and the request reloads the jsp page which in turns reload that updated XML file. The issue is everytime it reloads the XML file, it gets from the temporary internet file which is not getting updated until I kill the browser and reload it. For example. For the first time, I have the xml file with content .Parent 1 ...Child 1 ...Child 12 ...Child 13 .Parent 2 ...Child 2 ...Child 21 When I call the action,to show tree then it calls the jsp file which loads the XML file and shows the jsp tree which works perfectly. Shows complete tree view based on XML file. Then I will add new child Child 22 into .Parent 2 then the action will be called and that action will update the XML file which is located into ../WEBINF/pages and returns to the same jsp and reloads jsp which also needs to reloads the updated XML file. Now issue is , its not reloading that updated XML file and still showing the tree without newly added child. When I checked internet temporary files, it was still old XML file but at ../WEBINF/pages location, the XML has been updated. So I figured out that it is an issue of caching. I tried to remove caching with http headers setting % response.setHeader(Cache-Control,no-cache); //HTTP 1.1 response.setHeader(Pragma,no-cache); //HTTP 1.0 response.setDateHeader (Expires, 0); //prevents caching at the proxy server % Also tried with adding extra parameters to change the URL request. But still doen't work. Anyone has any suggestions, what to do next. Thanks for your help. Sorry.., If any typos or explained in too much detail. -- View this message in context: http://old.nabble.com/XML-file-reloading-in-JSP-%28Caching-issue%29-tp28 657737p28657737.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://old.nabble.com/XML-file-reloading-in-JSP-%28Caching-issue%29-tp28 657737p28658007.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org Please do not transmit orders or instructions regarding a UBS account electronically, including but not limited to e-mail, fax, text or instant messaging. The information provided in this e-mail or any attachments is not an official transaction confirmation or account statement. For your protection, do not include account numbers, Social Security numbers, credit card numbers, passwords or other non-public information in your e-mail. Because the information contained in this message may be privileged, confidential, proprietary or otherwise protected from disclosure, please notify us immediately by replying to this message and deleting it from your computer if you have received this communication in error. Thank you. UBS Financial Services Inc. UBS Financial Services Incorporated of Puerto Rico UBS AG UBS reserves the right to retain all messages. Messages are protected and accessed only in legally justified cases.
RE: XML file reloading in JSP (Caching issue)
I just did. No luck. :-( Thanks for the idea. sandeep.furia wrote: how about if you change the location of the xml file, take it out of web-inf and put it under the context root? SDF/ -Original Message- From: XML User [mailto:patelsame...@yahoo.com] Sent: Monday, May 24, 2010 11:16 AM To: user@struts.apache.org Subject: Re: XML file reloading in JSP (Caching issue) Thanks for quick reply Brian.! I tried adding new timestamp as parameters which generates new number everytime I visit the page. Even added those headers setting for no cache... meta http-equiv=Cache-Control content=no-store/ meta http-equiv=Pragma content=no-cache/ meta http-equiv=Expires content=0/ Still it is not getting updated. Brian Thompson-5 wrote: What extra parameters have you added to the request? AFAIK the standard solution to this type of improper caching problem is to simply append a random number or a timestamp to the request URL. It's an ugly hack, but it does work even when the headers don't seem to do the trick. Of course, the Right Way is to rely on the no-cache headers, so you might want to do a bit more troubleshooting on that front. Hope this helps, -Brian On Mon, May 24, 2010 at 9:44 AM, XML User patelsame...@yahoo.com wrote: Hi, I am running into an issue of caching. I have a jsp which generates the tree view from an XML file. This XML file are loaded when the jsp is loaded. So whenever I add new child to the tree view the xml file is updated by action class and the request reloads the jsp page which in turns reload that updated XML file. The issue is everytime it reloads the XML file, it gets from the temporary internet file which is not getting updated until I kill the browser and reload it. For example. For the first time, I have the xml file with content .Parent 1 ...Child 1 ...Child 12 ...Child 13 .Parent 2 ...Child 2 ...Child 21 When I call the action,to show tree then it calls the jsp file which loads the XML file and shows the jsp tree which works perfectly. Shows complete tree view based on XML file. Then I will add new child Child 22 into .Parent 2 then the action will be called and that action will update the XML file which is located into ../WEBINF/pages and returns to the same jsp and reloads jsp which also needs to reloads the updated XML file. Now issue is , its not reloading that updated XML file and still showing the tree without newly added child. When I checked internet temporary files, it was still old XML file but at ../WEBINF/pages location, the XML has been updated. So I figured out that it is an issue of caching. I tried to remove caching with http headers setting % response.setHeader(Cache-Control,no-cache); //HTTP 1.1 response.setHeader(Pragma,no-cache); //HTTP 1.0 response.setDateHeader (Expires, 0); //prevents caching at the proxy server % Also tried with adding extra parameters to change the URL request. But still doen't work. Anyone has any suggestions, what to do next. Thanks for your help. Sorry.., If any typos or explained in too much detail. -- View this message in context: http://old.nabble.com/XML-file-reloading-in-JSP-%28Caching-issue%29-tp28 657737p28657737.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://old.nabble.com/XML-file-reloading-in-JSP-%28Caching-issue%29-tp28 657737p28658007.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org Please do not transmit orders or instructions regarding a UBS account electronically, including but not limited to e-mail, fax, text or instant messaging. The information provided in this e-mail or any attachments is not an official transaction confirmation or account statement. For your protection, do not include account numbers, Social Security numbers, credit card numbers, passwords or other non-public information in your e-mail. Because the information contained in this message may be privileged, confidential, proprietary or otherwise protected from disclosure, please notify us immediately by replying to this message and deleting it from your computer if you have received this communication in error. Thank you. UBS Financial Services Inc. UBS Financial Services Incorporated of Puerto Rico UBS AG UBS
Re: Linking page
Hi All, i prefer it with !input added to action name, it will call input method on action which is kind of what You really want, that way submitting form will simply call execute method. But generally it's just the question of taste. Best greetings, Paweł Wielgus. 2010/5/21 Stephen Turner stur...@mit.edu: On Fri, 21 May 2010 11:39:56 -0400, ch...@chrismiles.org ch...@chrismiles.org wrote: If you are not populating/building a view then it makes no sense to go through the controller. It is counter intuitive just pass through an action which does nothing, when the JSP would get filtered anyway. Chris That's your choice of course, but always putting jsps behind actions is generally considered a Struts best practice. See: http://markmail.org/message/pq5svxnx4wuznou6 Always using the MVC pattern gives consistency - some people might think that mixing MVC and a view-only approach is counterintuitive... Steve - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: XML file reloading in JSP (Caching issue)
//instead of creating a whole new page would'nt it be easier to populate the changed items //and use an ajax control to dynamically populate a div tag on the jsp page? action name=getNodes class=org.apache.struts2.showcase.ShowAjaxDynamicTreeAction result type=freemarker/tags/ui/treeExampleAjaxDynamic.ftl/result /action package org.apache.struts2.showcase; import org.apache.struts2.showcase.ajax.tree.Category; import com.opensymphony.xwork2.ActionSupport; public class ShowAjaxDynamicTreeAction extends ActionSupport { private int nodeId = 1; public Category getCategory() { return Category.getById(nodeId); } public int getNodeId() { return nodeId; } public void setNodeId(int nodeId) { this.nodeId = nodeId; } } %...@taglib prefix=s uri=/struts-tags % %@ taglib prefix=sx uri=/struts-dojo-tags % html head titleShowcase - UI Tag Example - Tree Example (Dynamic)/title sx:head / /head body s:url var=nodesUrl namespace=/nodecorate action=getNodes / div style=float:left; margin-right: 50px; sx:tree id=tree href=%{#nodesUrl} / /div /body /html //just supply category and NodeId from from ShowAjaxDynamicTreeAction Action ? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Mon, 24 May 2010 08:40:39 -0700 From: patelsame...@yahoo.com To: user@struts.apache.org Subject: RE: XML file reloading in JSP (Caching issue) I just did. No luck. :-( Thanks for the idea. sandeep.furia wrote: how about if you change the location of the xml file, take it out of web-inf and put it under the context root? SDF/ -Original Message- From: XML User [mailto:patelsame...@yahoo.com] Sent: Monday, May 24, 2010 11:16 AM To: user@struts.apache.org Subject: Re: XML file reloading in JSP (Caching issue) Thanks for quick reply Brian.! I tried adding new timestamp as parameters which generates new number everytime I visit the page. Even added those headers setting for no cache... meta http-equiv=Cache-Control content=no-store/ meta http-equiv=Pragma content=no-cache/ meta http-equiv=Expires content=0/ Still it is not getting updated. Brian Thompson-5 wrote: What extra parameters have you added to the request? AFAIK the standard solution to this type of improper caching problem is to simply append a random number or a timestamp to the request URL. It's an ugly hack, but it does work even when the headers don't seem to do the trick. Of course, the Right Way is to rely on the no-cache headers, so you might want to do a bit more troubleshooting on that front. Hope this helps, -Brian On Mon, May 24, 2010 at 9:44 AM, XML User patelsame...@yahoo.com wrote: Hi, I am running into an issue of caching. I have a jsp which generates the tree view from an XML file. This XML file are loaded when the jsp is loaded. So whenever I add new child to the tree view the xml file is updated by action class and the request reloads the jsp page which in turns reload that updated XML file. The issue is everytime it reloads the XML file, it gets from the temporary internet file which is not getting updated until I kill the browser and reload it. For example. For the first time, I have the xml file with content .Parent 1 ...Child 1 ...Child 12 ...Child 13 .Parent 2 ...Child 2 ...Child 21 When I call the action,to show tree then it calls the jsp file which loads the XML file and shows the jsp tree which works perfectly. Shows complete tree view based on XML file. Then I will add new child Child 22 into .Parent 2 then the action will be called and that action will update the XML file which is located into ../WEBINF/pages and returns to the same jsp and reloads jsp which also needs to reloads the updated XML file. Now issue is , its not reloading that
struts2 + javascript doubt
Hi: is it possible to pass a dynamic parameter to a javascript function??? I'm trying this: h3 id=s:property value=*'info.id_html'*/ class=*head* a href=*javascript:fPrimerNivel(*s:property value=*'info.id_html'*/*);* s:property value=*info.titulo_menu*//a /h3 javascript function: fPrimerNivel(id){ alert(id); } yields [object] If I try the same, but with javascript:fPrimerNivel(this.id), I get [undefined] I dont know if this is possible, any help would be so much appreciated ciaooo
Re: struts2 + javascript doubt
Yes you can but instead of using s:property you can use directly JSP EL like {myBean.propertyName}. Cimballi On Mon, May 24, 2010 at 1:10 PM, lucas owen sr.ilus...@gmail.com wrote: Hi: is it possible to pass a dynamic parameter to a javascript function??? I'm trying this: h3 id=s:property value=*'info.id_html'*/ class=*head* a href=*javascript:fPrimerNivel(*s:property value=*'info.id_html'*/*);* s:property value=*info.titulo_menu*//a /h3 javascript function: fPrimerNivel(id){ alert(id); } yields [object] If I try the same, but with javascript:fPrimerNivel(this.id), I get [undefined] I dont know if this is possible, any help would be so much appreciated ciaooo -- Cimballi JAVA J2EE Freelance http://cimballi.elance.com/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts2 + javascript doubt
One more simple thing just replace * with ' it will work On 24 May 2010 23:40, lucas owen sr.ilus...@gmail.com wrote: Hi: is it possible to pass a dynamic parameter to a javascript function??? I'm trying this: h3 id=s:property value=*'info.id_html'*/ class=*head* a href=*javascript:fPrimerNivel(*s:property value=*'info.id_html'*/*);* s:property value=*info.titulo_menu*//a /h3 javascript function: fPrimerNivel(id){ alert(id); } yields [object] If I try the same, but with javascript:fPrimerNivel(this.id), I get [undefined] I dont know if this is possible, any help would be so much appreciated ciaooo
Re: Struts 2 and Spring 3??
Hantsy - It appears that AppFuse 2.1 uses Spring 2.5.6 and Spring Security 2.0.4 (as far as I can tell from the pom file). Not sure this is a fit. Robert - Are you using the Struts-Spring-Plugin as well? Currently I am using Struts 2.1.8 with Spring-Plug-in for injection (Spring 2.5.6). I want to add Spring Security instead of my home-grown methods, but would really like to use Spring Sec 3.0.4. In order to use Spring Sec 3, I need to use Spring 3.x (Core) as well. As far as I am aware, Spring 3.x will not work with the Struts-Spring-Plugin 2.1.8. Hence my delima. Anyone able to get full Spring 3 integration to work or do I just need to wait for a future Struts-Spring-Plugin to be written? On Fri, May 21, 2010 at 11:39 AM, Robert Taylor rtay...@dtgresults.com wrote: I'm using Struts2 and Spring Security 3 on a project. I used the following links to get me going: http://static.springsource.org/spring-security/site/docs/3.0.x/reference/springsecurity.html http://java.dzone.com/tips/pathway-acegi-spring-security- It's much simplier than the old ACEGI configurations. /robert - Original Message - From: Burton Rhodes burtonrho...@gmail.com To: Struts Mailing List user@struts.apache.org Sent: Friday, May 21, 2010 12:29 PM Subject: Struts 2 and Spring 3?? I think I saw a message a while back that commented about using Spring 3 (and Spring Security 3) with Struts 2.1.8 framework. Is this possible? If so, how? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts 2 and Spring 3??
Musachy - I see your name all over that Struts-Spring plugin! What will it take to get a Struts-Spring 3.x plug-in out of you? 6-pack of beer? :) Serously though - any plans Spring 3.0 integration for Struts soon? On Mon, May 24, 2010 at 2:22 PM, Burton Rhodes burtonrho...@gmail.com wrote: Hantsy - It appears that AppFuse 2.1 uses Spring 2.5.6 and Spring Security 2.0.4 (as far as I can tell from the pom file). Not sure this is a fit. Robert - Are you using the Struts-Spring-Plugin as well? Currently I am using Struts 2.1.8 with Spring-Plug-in for injection (Spring 2.5.6). I want to add Spring Security instead of my home-grown methods, but would really like to use Spring Sec 3.0.4. In order to use Spring Sec 3, I need to use Spring 3.x (Core) as well. As far as I am aware, Spring 3.x will not work with the Struts-Spring-Plugin 2.1.8. Hence my delima. Anyone able to get full Spring 3 integration to work or do I just need to wait for a future Struts-Spring-Plugin to be written? On Fri, May 21, 2010 at 11:39 AM, Robert Taylor rtay...@dtgresults.com wrote: I'm using Struts2 and Spring Security 3 on a project. I used the following links to get me going: http://static.springsource.org/spring-security/site/docs/3.0.x/reference/springsecurity.html http://java.dzone.com/tips/pathway-acegi-spring-security- It's much simplier than the old ACEGI configurations. /robert - Original Message - From: Burton Rhodes burtonrho...@gmail.com To: Struts Mailing List user@struts.apache.org Sent: Friday, May 21, 2010 12:29 PM Subject: Struts 2 and Spring 3?? I think I saw a message a while back that commented about using Spring 3 (and Spring Security 3) with Struts 2.1.8 framework. Is this possible? If so, how? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts 2 and Spring 3??
Currently I'm using the struts2-spring-plugin-2.1.8.1.jar spring-security-x-3.0.2.RELEASE.jars org.springframework.x-3.0.1.RELEASE-A.jars This seems to work for me for integrating Spring Security(3.x) with Struts2 using Spring 3.x core files. /robert - Original Message - From: Burton Rhodes burtonrho...@gmail.com To: Struts Users Mailing List user@struts.apache.org; Robert Taylor rtay...@dtgresults.com Sent: Monday, May 24, 2010 3:22 PM Subject: Re: Struts 2 and Spring 3?? Hantsy - It appears that AppFuse 2.1 uses Spring 2.5.6 and Spring Security 2.0.4 (as far as I can tell from the pom file). Not sure this is a fit. Robert - Are you using the Struts-Spring-Plugin as well? Currently I am using Struts 2.1.8 with Spring-Plug-in for injection (Spring 2.5.6). I want to add Spring Security instead of my home-grown methods, but would really like to use Spring Sec 3.0.4. In order to use Spring Sec 3, I need to use Spring 3.x (Core) as well. As far as I am aware, Spring 3.x will not work with the Struts-Spring-Plugin 2.1.8. Hence my delima. Anyone able to get full Spring 3 integration to work or do I just need to wait for a future Struts-Spring-Plugin to be written? On Fri, May 21, 2010 at 11:39 AM, Robert Taylor rtay...@dtgresults.com wrote: I'm using Struts2 and Spring Security 3 on a project. I used the following links to get me going: http://static.springsource.org/spring-security/site/docs/3.0.x/reference/springsecurity.html http://java.dzone.com/tips/pathway-acegi-spring-security- It's much simplier than the old ACEGI configurations. /robert - Original Message - From: Burton Rhodes burtonrho...@gmail.com To: Struts Mailing List user@struts.apache.org Sent: Friday, May 21, 2010 12:29 PM Subject: Struts 2 and Spring 3?? I think I saw a message a while back that commented about using Spring 3 (and Spring Security 3) with Struts 2.1.8 framework. Is this possible? If so, how? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Bean named .. must be type of ...
Dear everyone, I know this may not be the problem of struts, but you guys may knows the answer. I am using Liferay portal 5.2.3 and I want to overwrite a method in a liferay source class. Therefore I have created my own Wrapper class and I want it to be used. I realised I need to separate the bean id declaration in a different spring xml file eg. myext-spring.xml and reference it in protal-ext.properties. Here is what I have done: myext-spring.xml: ?xml version=1.0 encoding=UTF-8? !DOCTYPE beans PUBLIC -//SPRING//DTD BEAN//EN http://www.springframework.org/dtd/spring-beans.dtd; beans bean id=com.liferay.portlet.imagegallery.service.IGFolderLocalService.impl class=au.com.ip6.ext.portlet.mytest.service.impl.IP6IGFolderLocalServiceWrapperImpl / /beans portal-ext.properties: spring.configs=\ META-INF/base-spring.xml,\ \ META-INF/hibernate-spring.xml,\ META-INF/infrastructure-spring.xml,\ META-INF/management-spring.xml,\ \ META-INF/util-spring.xml,\ \ META-INF/editor-spring.xml,\ META-INF/jcr-spring.xml,\ META-INF/messaging-spring.xml,\ META-INF/scheduler-spring.xml,\ META-INF/search-spring.xml,\ \ META-INF/counter-spring.xml,\ META-INF/document-library-spring.xml,\ META-INF/lock-spring.xml,\ META-INF/mail-spring.xml,\ META-INF/portal-spring.xml,\ META-INF/portlet-container-spring.xml,\ META-INF/wsrp-spring.xml,\ \ META-INF/mirage-spring.xml,\ \ #META-INF/dynamic-data-source-spring.xml,\ #META-INF/shard-data-source-spring.xml,\ \ META-INF/ext-spring.xml,\ META-INF/myext-spring.xml but I am still getting the following errors: Caused by: org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'com.liferay.portlet.imagegallery.service.IGFolderLocalService.impl' must be of type [com.liferay.portlet.imagegallery.service.IGFolderLocalService], but was actually of type [$Proxy180] What is actually going on here? Very appreciate for any suggestion and help. Thanks Sam - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org