Re: Error - 2.1.6 - index()
Would you please tell me how did you fix this error. Even i too get this error, it never considers my method parameter in struts. it tries to call the index()? Kindly help jbogo wrote: I don't use rest plugin. In fact, i haven't used the plugin codebehind. Now, it's working fine. Tanks a lot. -- View this message in context: http://www.nabble.com/Error---2.1.6---index%28%29-tp21562622p22777122.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: Struts 2 - Dynamic form: submitting issues
newton.dave wrote: Timmos wrote: Hi, I figured out how to generate a form with dynamic length. The submitting part remains a bit tricky, but before you redirect me to OGNL / Type Conversion pages, I have to say I already read those articles. This is a part of my generated .jsp (the generate part - I won't include the Action code for this): s:iterator value=properties status=stat s:textfield name=lijst[2] label=%{name} / /s:iterator As you can see, for testing purposes I hard-coded the index 2, but I don't know if this syntax is correct. This form is to be submitted to DoSearchAction: public void setLijst(int index, String s) { lijst[index] = s; System.out.println( LIJST!!! + index + ::: + s); } When I run this piece of junk, I get: ognl.OgnlException: target is null for setProperty(null, 2, [Ljava.lang.String;@13dd8). I would like to know what is wrong with the setter / s:textfield name parameter. What do I have to do to get it working? (1) If there are multiple parameters w/ the same name the framework appears to put them into a collection: it may not be necessary to do *anything*. (2) IIRC using indexed setters would use the (n) syntax (not [n]), but I could be remembering wrong. In any case, you don't need to use an indexed setter, just have an appropriate collection property with a setter, say: private ListString lijst; public void setLijst(List l) { lijst = l; } (Or whatever.) Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org Thx. What should the name attributes of my textfield be then, knowing that lijst is my List to set? s:textfield value= namelijst / ? And it should work? -- View this message in context: http://www.nabble.com/Struts-2---Dynamic-form%3A-submitting-issues-tp22755036p22779033.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: Issue with the Browser Cache
Hi Satya, You can read my post about this matter, also You can download and run my simple app to see how it works, the link is in the bottom of post. http://poulwiel.blogspot.com/2009/01/browser-back-button-and-caching-problem.html Best greetings, Paweł Wielgus. 2009/3/27 satyanarayana katta saty.pra...@gmail.com: Hi All, We are developing an application with Struts 2.1.6 and tiles 2.0.6. We don't want the browser to cache the pages. I tried all the options and still the browser is caching the pages and when I hit the back button the page gets loaded. Tried Options 1. Wrote an interceptor and added the response header to have pragma no-cache, expires -1, no-store etc. 2. Added response headers directly in jsp Used the http-watch to see if the headers are being set. HttpWatch shows that the headers are infact set. Whatever I do, the back button doesn't expire the page. Am I missing something? Please help. Rgds, Satya - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Temporary user activity information storage problem....
Hi all, i've been playing with terracota, but it seems like it's just clustering jvm over many servers, it works well, but i don't know if that will help You much with Your problem. You can rethink a little about the problem and restate it here. I don't know if EJB + temporary database sessions are ok or not for You, and if they are not ok because they are traditional solution? Best greetings, Paweł Wielgus. 2009/3/30 sudhi123 sudhindr...@rediffmail.com: Thanks for the reply. But i still have a problem. We thought using EJB Containers and temporary database sessions is one traditional approach we have at the moment. But there is other part to it with latest technology being terracotta? or any views on using it ? thanks again ... sudhi123 wrote: Hello, We are building a struts based web application bit like a shopping cart. Right now the application is in its initial stages so it has to support few users hence we are storing user information in http session. But eventually application has to be scalable to support thousands of online users in a glass fish cluster. Hence the session storage is not scalable, I thought of using a database for user activity and deleting the rows when user logs out. But i can see my performance is getting hit by this approach. I need a architecture help on this problem. can somebody help me on this ? thank you. -- View this message in context: http://www.nabble.com/Temporary-user-activity-information-storage-problem-tp22772603p22773637.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 i - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts 2 - Dynamic form: submitting issues
Timmos wrote: Hi, I figured out how to generate a form with dynamic length. The submitting part remains a bit tricky, but before you redirect me to OGNL / Type Conversion pages, I have to say I already read those articles. This is a part of my generated .jsp (the generate part - I won't include the Action code for this): s:iterator value=properties status=stat s:textfield name=lijst[2] label=%{name} / /s:iterator As you can see, for testing purposes I hard-coded the index 2, but I don't know if this syntax is correct. This form is to be submitted to DoSearchAction: public void setLijst(int index, String s) { lijst[index] = s; System.out.println( LIJST!!! + index + ::: + s); } When I run this piece of junk, I get: ognl.OgnlException: target is null for setProperty(null, 2, [Ljava.lang.String;@13dd8). I would like to know what is wrong with the setter / s:textfield name parameter. What do I have to do to get it working? This will work. You just have to provide getter and setter for your list. s:iterator value=myList status=stat s:textfield name=myList[%{#stat.index}].field1 / s:textfield name=myList[%{#stat.index}].field2 / /s:iterator public ListMyClass getMyList() { return myList; } public void setMyList(ListMyClassmyList) { this.myList = myList; } -- View this message in context: http://www.nabble.com/Struts-2---Dynamic-form%3A-submitting-issues-tp22755036p22782850.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: Struts 2 - Dynamic form: submitting issues
According to the OGNL spec, setting indexed JavaBean properties using lijst[0], lijst[1] etc should work. And it does; except not through struts 2's params interceptor. Try it out: public class ActionTest extends ActionSupport { private ListString someProperty = new ArrayListString(); public ActionTest(){ try { Ognl.setValue(someProperty[0], this, Foo); } catch(Exception ex){ ex.printStackTrace(); } } public String execute(){ return SUCCESS; } public String getSomeProperty(int index){ return someProperty.get(index); } public void setSomeProperty(int index, String name){ someProperty.set(index, name); } } Set a breakpoint on setSomeProperty and you will find that it calls the indexed setter exactly as it should. I've been debugging this around a bit to see why this doesn't work through the Struts 2 params interceptor, and I found that apparently this is due to the fact that Struts does not pass the action instance itself as the object to evaluate the OGNL expression against, but rather a CompoundRoot of the action and a DefaultTextProvider. When the OGNL expression someProperty[0] is evaluated, OGNL will parse the expression into an ASTChain of 2 ASTProperty's. ASTChain.setValueBody is then called to execute the appropriate setter. What's preventing the indexed setter from being executed is propertyNode.getIndexedPropertyType(context, target) returning the wrong index type. The index type of a property (see ASTProperty.getIndexedPropertyType) appears to be ultimately determined in OgnlRuntime.getIndexedPropertyType, which fetches a PropertyDescriptor for the specified object's class and property (ie. someProperty in this case). The problem here is that, since the object is a CompoundRoot, a property descriptor for CompoundRoot.class is returned, which understandably has no property descriptor for someProperty since it has no indexed setter for someProperty, causing it to return INDEXED_PROPERTY_NONE (ie. not indexed) instead of INDEXED_PROPERTY_OBJECT. When the action instance itself is passed as the object to evaluate against, a property descriptor is fetched for the actual action class (ActionTest.class), and an ObjectIndexedPropertyDescriptor is returned for someProperty as expected. So it looks like the root cause is that only the methods of CompoundRoot are considered for determining any indexed setters, not those of the objects it contains. I'm sure there are a whole slew of a problems abound if you would propagate the lookup into the contained objects, and even if you did, the property descriptors are only assigned once and then reused, so you'd still only get the descriptors for the first CompoundRoot object you encounter. I'm fairly new to the Struts 2 and OGNL codebase and I'm not sure what the best way to fix it would be, but I hope this might provide some insight or even serve as a rough bug report. newton.dave wrote: Timmos wrote: Hi, I figured out how to generate a form with dynamic length. The submitting part remains a bit tricky, but before you redirect me to OGNL / Type Conversion pages, I have to say I already read those articles. This is a part of my generated .jsp (the generate part - I won't include the Action code for this): s:iterator value=properties status=stat s:textfield name=lijst[2] label=%{name} / /s:iterator As you can see, for testing purposes I hard-coded the index 2, but I don't know if this syntax is correct. This form is to be submitted to DoSearchAction: public void setLijst(int index, String s) { lijst[index] = s; System.out.println( LIJST!!! + index + ::: + s); } When I run this piece of junk, I get: ognl.OgnlException: target is null for setProperty(null, 2, [Ljava.lang.String;@13dd8). I would like to know what is wrong with the setter / s:textfield name parameter. What do I have to do to get it working? (1) If there are multiple parameters w/ the same name the framework appears to put them into a collection: it may not be necessary to do *anything*. (2) IIRC using indexed setters would use the (n) syntax (not [n]), but I could be remembering wrong. In any case, you don't need to use an indexed setter, just have an appropriate collection property with a setter, say: private ListString lijst; public void setLijst(List l) { lijst = l; } (Or whatever.) Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org Thx. What should the name attributes of my textfield be then, knowing that lijst is my List to set? s:textfield value= namelijst / ? And it should work?
Re: problems with struts and dojo
Hi, I changed the dojo.xhrGet call for a dojo.io.bind call as suggested by Andras and now it works. Please find the corrected code below. %@ page contentType=text/html; charset=UTF-8 % %@ taglib prefix=s uri=/struts-tags % html head s:head theme=ajax debug=true/ script type=text/javascript function submitForm(formId, divId) { var kw = { formNode: dojo.byId(formId), mimetype: text/plain, method: post, transport: XMLHTTPTransport, load: function(type, data, http, kwArgs){ dojo.byId(divId).innerHTML = data; }, error: function(type, error, http){ alert(error); } }; dojo.io.bind(kw); } /script /head body s:form id=myForm action=example/HelloWorld.action input type=button onclick=submitForm('myForm', 'divResult') value=Javascript / /s:form s:div id=divResult/s:div /body /html On Fri, Mar 27, 2009 at 2:19 PM, Andras Balogh and...@reea.net wrote: Hi, The problem is most probably that dojo.xhrGet is not available in the dojo version that comes with Struts 2.0.x ( dojo 0.4) You must make sure to use only dojo functions that are avail. in ver. 0.4. See here more details: http://dojotoolkit.org/forum/dojo-0-4-x-legacy/dojo-0-4-x-support/whick-package-xhrget-available-0-4 BR, Andras Tedy Marcos Colombini wrote: Hi guys, sorry for the previous email. I pressed some shortcut by accident. I am trying to generate an ajax request with javascript. The code is very simple but it doesn't work. The message I get is: dojo.xhrGet is not a function (in Firefox error console). With a s:form and s:submit, I am able to generate a request. So I am wondering if there is some configuration trick to be done when using the javascript approach. I am using Struts 2.0.11. Thanks for your help. Tedy. This is the code that doesn't work: %@ page contentType=text/html; charset=UTF-8 % %@ taglib prefix=s uri=/struts-tags % html head s:head theme=ajax debug=true/ script type=text/javascript function submitForm() { var kw = { url: example.HelloWorld!execute.action, handleAs:text, load: function(response){ dojo.byId('divResult').innerHTML = response; }, error: function(data){ console.debug(An error occurred: , data); }, timeout: 2000, }; dojo.xhrGet(kw); } /script /head body input type=button onclick=submitForm() value=Javascript / s:div id=divResult/s:div /body /html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Tedy Marcos Colombini
Localization in Struts 2.0
Can someone please provide me with some information about localization in struts 2. I am basically trying to have 2 locale : English and German for which I have created two different properties file. viz : index_en.properties and index_de.properties. I have put both these file in the same working directory as that for my Action class. My action class execute method is as follows : public String execute() throws Exception { setMessage(getText(TITLE)); // TITLE is a final static string refering to a key in properties file return SUCCESS; } However when I try to access the title field in my jsp using s:property value=title/, it displays as title instead of the value of this key. I am not sure if its able to pick up the properties files. Any help would be much appreciated. Thanks in advance. Regards, Manoj _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Sword Intech. Scanning of this message and addition of this footer is performed by Websense Email Security software in conjunction with virus detection software.
Re: Localization in Struts 2.0
Hi Manoj, when You are accesing s:property value=title/ You are asking for Action.getTitle() method (or any other on the stack by that name). Simply try s:text or read: http://struts.apache.org/2.x/docs/text.html and http://struts.apache.org/2.x/docs/localization.html Best greetings, Paweł Wielgus. 2009/3/30 Manoj Dhore manoj.dh...@sword-soft.com: Can someone please provide me with some information about localization in struts 2. I am basically trying to have 2 locale : English and German for which I have created two different properties file. viz : index_en.properties and index_de.properties. I have put both these file in the same working directory as that for my Action class. My action class execute method is as follows : public String execute() throws Exception { setMessage(getText(TITLE)); // TITLE is a final static string refering to a key in properties file return SUCCESS; } However when I try to access the title field in my jsp using s:property value=title/, it displays as title instead of the value of this key. I am not sure if its able to pick up the properties files. Any help would be much appreciated. Thanks in advance. Regards, Manoj _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Sword Intech. Scanning of this message and addition of this footer is performed by Websense Email Security software in conjunction with virus detection software. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
executing inline scripts from ajax responses (dojo 0.4)
Hi there, After being able to submit an ajax form request using javascript, I am stuck in the second (and last) problem. The response contains an inline script which I wanna execute when the it is rendered. I am using Struts 2.0.11 and Dojo 0.4. I did some research but everything I found is incomplete. This is the code. It works, only the alert from the response doesn't pop out. So what I should do to make this script run? %@ page contentType=text/html; charset=UTF-8 % %@ taglib prefix=s uri=/struts-tags % html head s:head theme=ajax debug=true/ script type=text/javascript function submitForm(formId, divId) { var kw = { formNode: dojo.byId(formId), mimetype: text/plain, method: post, transport: XMLHTTPTransport, load: function(type, data, http, kwArgs){ dojo.byId(divId).innerHTML = data; }, error: function(type, error, http){ alert(error); } }; dojo.io.bind(kw); } /script /head body s:form id=myForm action=example/Test.action input type=button onclick=submitForm('myForm', 'divResult') value=Javascript / /s:form div id=divResult/div /body /html This is the response from Test.action: Content script alert(test) /script Thank you for your help, -- Tedy Marcos Colombini
Re: executing inline scripts from ajax responses (dojo 0.4)
Hi, This is a little bit off-topic because it's related more to Dojo than Struts. But anyway: do you get back something in your data object in function load()? If you know that you are returning javascript do not send the script tag (only the javascript) and use eval(data) instead of innerHTML. BR, Andras Tedy Marcos Colombini wrote: Hi there, After being able to submit an ajax form request using javascript, I am stuck in the second (and last) problem. The response contains an inline script which I wanna execute when the it is rendered. I am using Struts 2.0.11 and Dojo 0.4. I did some research but everything I found is incomplete. This is the code. It works, only the alert from the response doesn't pop out. So what I should do to make this script run? %@ page contentType=text/html; charset=UTF-8 % %@ taglib prefix=s uri=/struts-tags % html head s:head theme=ajax debug=true/ script type=text/javascript function submitForm(formId, divId) { var kw = { formNode: dojo.byId(formId), mimetype: text/plain, method: post, transport: XMLHTTPTransport, load: function(type, data, http, kwArgs){ dojo.byId(divId).innerHTML = data; }, error: function(type, error, http){ alert(error); } }; dojo.io.bind(kw); } /script /head body s:form id=myForm action=example/Test.action input type=button onclick=submitForm('myForm', 'divResult') value=Javascript / /s:form div id=divResult/div /body /html This is the response from Test.action: Content script alert(test) /script Thank you for your help, - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: executing inline scripts from ajax responses (dojo 0.4)
Hi Andras, Sorry to post here, I understand this is related to Dojo but its documentation/forum sucks. They haven't replied to this question so far and I decided to get help here. Also, I saw a lot of doubts about this same problem but not even one good response and I guess this is not something extremely difficult. Anyways, in my response I have a mix between script code that should be executed and content that should be displayed. So the only option is the eval function? Cheers, Tedy On Mon, Mar 30, 2009 at 4:56 PM, Andras Balogh and...@reea.net wrote: Hi, This is a little bit off-topic because it's related more to Dojo than Struts. But anyway: do you get back something in your data object in function load()? If you know that you are returning javascript do not send the script tag (only the javascript) and use eval(data) instead of innerHTML. BR, Andras Tedy Marcos Colombini wrote: Hi there, After being able to submit an ajax form request using javascript, I am stuck in the second (and last) problem. The response contains an inline script which I wanna execute when the it is rendered. I am using Struts 2.0.11 and Dojo 0.4. I did some research but everything I found is incomplete. This is the code. It works, only the alert from the response doesn't pop out. So what I should do to make this script run? %@ page contentType=text/html; charset=UTF-8 % %@ taglib prefix=s uri=/struts-tags % html head s:head theme=ajax debug=true/ script type=text/javascript function submitForm(formId, divId) { var kw = { formNode: dojo.byId(formId), mimetype: text/plain, method: post, transport: XMLHTTPTransport, load: function(type, data, http, kwArgs){ dojo.byId(divId).innerHTML = data; }, error: function(type, error, http){ alert(error); } }; dojo.io.bind(kw); } /script /head body s:form id=myForm action=example/Test.action input type=button onclick=submitForm('myForm', 'divResult') value=Javascript / /s:form div id=divResult/div /body /html This is the response from Test.action: Content script alert(test) /script Thank you for your help, - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Tedy Marcos Colombini
Re: executing inline scripts from ajax responses (dojo 0.4)
I take it what you want to do is insert Content into divId, and then fire an alert(). The problem you have is that the value of data is nothing but a simple string. Your callback has to know what to do with it. IIRC, Dojo has a function that will execute all script tags within a string, so you could certainly call that to get the alert() to fire... but that doesn't help you put the content in the DOM. I suggest what you should do instead is have your response returned a bit differently. Something as simple as this: Content~~test Then in your callback you do: var a = data.split(~~); document.getElementById(divId).innerHTML = a[0]; alert(a[1]); The response could also be JSON: { divContent: Content, msg : test } Then you do: data = eval(data); document.getElementById(divId).innerHTML = data.divContent; alert(data.msg); hth, Frank -- Frank W. Zammetti Author of Practical Ext JS Projects with Gears (coming soon) and Practical Dojo Projects and Practical DWR 2 Projects and Practical JavaScript, DOM Scripting and Ajax Projects and Practical Ajax Projects with Java Technology (For info: apress.com/book/search?searchterm=zammettiact=search) All you could possibly want is here: zammetti.com On Mon, March 30, 2009 10:27 am, Tedy Marcos Colombini wrote: Hi there, After being able to submit an ajax form request using javascript, I am stuck in the second (and last) problem. The response contains an inline script which I wanna execute when the it is rendered. I am using Struts 2.0.11 and Dojo 0.4. I did some research but everything I found is incomplete. This is the code. It works, only the alert from the response doesn't pop out. So what I should do to make this script run? %@ page contentType=text/html; charset=UTF-8 % %@ taglib prefix=s uri=/struts-tags % html head s:head theme=ajax debug=true/ script type=text/javascript function submitForm(formId, divId) { var kw = { formNode: dojo.byId(formId), mimetype: text/plain, method: post, transport: XMLHTTPTransport, load: function(type, data, http, kwArgs){ dojo.byId(divId).innerHTML = data; }, error: function(type, error, http){ alert(error); } }; dojo.io.bind(kw); } /script /head body s:form id=myForm action=example/Test.action input type=button onclick=submitForm('myForm', 'divResult') value=Javascript / /s:form div id=divResult/div /body /html This is the response from Test.action: Content script alert(test) /script Thank you for your help, -- Tedy Marcos Colombini - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Localization in Struts 2.0
Hi Poul, Thanks for your help. It worked fine. The problem was with the properties file name. The property file name was different from the Action name. But, I had a quick question here. Does this mean that in real world, I would have to create the same number of property file as that of the actions anticipating the request or do we have some inbuilt action is struts-default to take care of. Your help is much appreciated. Regards, Manoj -Original Message- From: Paweł Wielgus [mailto:poulw...@gmail.com] Sent: 30 March 2009 15:27 To: Struts Users Mailing List Subject: Re: Localization in Struts 2.0 Hi Manoj, when You are accesing s:property value=title/ You are asking for Action.getTitle() method (or any other on the stack by that name). Simply try s:text or read: http://struts.apache.org/2.x/docs/text.html and http://struts.apache.org/2.x/docs/localization.html Best greetings, Paweł Wielgus. 2009/3/30 Manoj Dhore manoj.dh...@sword-soft.com: Can someone please provide me with some information about localization in struts 2. I am basically trying to have 2 locale : English and German for which I have created two different properties file. viz : index_en.properties and index_de.properties. I have put both these file in the same working directory as that for my Action class. My action class execute method is as follows : public String execute() throws Exception { setMessage(getText(TITLE)); // TITLE is a final static string refering to a key in properties file return SUCCESS; } However when I try to access the title field in my jsp using s:property value=title/, it displays as title instead of the value of this key. I am not sure if its able to pick up the properties files. Any help would be much appreciated. Thanks in advance. Regards, Manoj _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Sword Intech. Scanning of this message and addition of this footer is performed by Websense Email Security software in conjunction with virus detection software. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Sword Intech. Scanning of this message and addition of this footer is performed by Websense Email Security software in conjunction with virus detection software. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: executing inline scripts from ajax responses (dojo 0.4)
Hi, You could try to use the ContentPane Widget and load the response into it however I did not try this so I'm not 100% sure if it will work. See here: http://dojotoolkit.org/book/dojo-book-0-4/part-4-more-widgets/advanced-contentpane-usage and notice the executeScripts property. BR, Andras. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: executing inline scripts from ajax responses (dojo 0.4)
Tks guys for your help! Andras, I saw this stuff before and it doesn't work. At least I tried to use a content pane with *executeScripts* = true and *scriptSeparation* = false and nothing happened. In fact, my problem is not with an alert. I just create a simple use case to illustrate the problem I have in my project. Anyways, your responses were very useful! I will try some of them and as soon as I make it work, I post the solution here. Cheers, Tedy On Mon, Mar 30, 2009 at 5:17 PM, Andras Balogh and...@reea.net wrote: Hi, You could try to use the ContentPane Widget and load the response into it however I did not try this so I'm not 100% sure if it will work. See here: http://dojotoolkit.org/book/dojo-book-0-4/part-4-more-widgets/advanced-contentpane-usage and notice the executeScripts property. BR, Andras. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Tedy Marcos Colombini
Re: Localization in Struts 2.0
Hi, i use only one package.properties file, but read again Localization guide. Best greetings, Pawel Wielgus. 2009/3/30, Manoj Dhore manoj.dh...@sword-soft.com: Hi Poul, Thanks for your help. It worked fine. The problem was with the properties file name. The property file name was different from the Action name. But, I had a quick question here. Does this mean that in real world, I would have to create the same number of property file as that of the actions anticipating the request or do we have some inbuilt action is struts-default to take care of. Your help is much appreciated. Regards, Manoj -Original Message- From: Paweł Wielgus [mailto:poulw...@gmail.com] Sent: 30 March 2009 15:27 To: Struts Users Mailing List Subject: Re: Localization in Struts 2.0 Hi Manoj, when You are accesing s:property value=title/ You are asking for Action.getTitle() method (or any other on the stack by that name). Simply try s:text or read: http://struts.apache.org/2.x/docs/text.html and http://struts.apache.org/2.x/docs/localization.html Best greetings, Paweł Wielgus. 2009/3/30 Manoj Dhore manoj.dh...@sword-soft.com: Can someone please provide me with some information about localization in struts 2. I am basically trying to have 2 locale : English and German for which I have created two different properties file. viz : index_en.properties and index_de.properties. I have put both these file in the same working directory as that for my Action class. My action class execute method is as follows : public String execute() throws Exception { setMessage(getText(TITLE)); // TITLE is a final static string refering to a key in properties file return SUCCESS; } However when I try to access the title field in my jsp using s:property value=title/, it displays as title instead of the value of this key. I am not sure if its able to pick up the properties files. Any help would be much appreciated. Thanks in advance. Regards, Manoj _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Sword Intech. Scanning of this message and addition of this footer is performed by Websense Email Security software in conjunction with virus detection software. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Sword Intech. Scanning of this message and addition of this footer is performed by Websense Email Security software in conjunction with virus detection software. - 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
beginner
Hi to all, How could I find an examples to begin a new application using struts2?? Some help please! -- ... à.c.m ...9
Re: beginner
I would recommend that you look at the Bootstrap page and follow this process: http://struts.apache.org/2.x/docs/bootstrap.html Cody Burleson On Mon, Mar 30, 2009 at 12:40 PM, Àlex Camps Mezquita camps.a...@gmail.comwrote: Hi to all, How could I find an examples to begin a new application using struts2?? Some help please! -- ... à.c.m ...9
Re: beginner
Alex, You can find example applications at: http://struts.apache.org/download.cgi Look for file: struts-2.1.6-apps.zip . It has several examples to get you started. Hope this helps. Kumar. --- On Mon, 3/30/09, Àlex Camps Mezquita camps.a...@gmail.com wrote: From: Àlex Camps Mezquita camps.a...@gmail.com Subject: beginner To: user@struts.apache.org Date: Monday, March 30, 2009, 10:40 AM Hi to all, How could I find an examples to begin a new application using struts2?? Some help please! -- ... à.c.m ...9
Re: ExecuteAndWaitInterceptor not working (2.1.6)
musom...@aol.com wrote: execAndWait in 2.1.6 gives the following exception when it kicks in: (code pasted below) java.lang.UnsupportedOperationException ??? java.util.Collections$UnmodifiableMap.put(Collections.java:1285) ??? org.apache.struts2.interceptor.ExecuteAndWaitInterceptor.doIntercept(ExecuteAndWaitInterceptor.java:256) Not sure why the problem is occurring, but looking at that section of code suggests having a real wait result rather than letting struts auto-build one for you should be a workaround for the bug. -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: ExecuteAndWaitInterceptor not working (2.1.6)
Exactly -- used to work in 2.0.x but must have broken in the transition. Chris -Original Message- From: Dale Newfield d...@newfield.org To: Struts Users Mailing List user@struts.apache.org Sent: Mon, 30 Mar 2009 3:51 pm Subject: Re: ExecuteAndWaitInterceptor not working (2.1.6) musom...@aol.com wrote:? execAndWait in 2.1.6 gives the following exception when it kicks in: (code pasted below)? java.lang.UnsupportedOperationException ??? java.util.Collections$UnmodifiableMap.put(Collections.java:1285)? ??? org.apache.struts2.interceptor.ExecuteAndWaitInterceptor.doIntercept(ExecuteAndWaitInterceptor.java:256)? ? Not sure why the problem is occurring, but looking at that section of code suggests having a real wait result rather than letting struts auto-build one for you should be a workaround for the bug.? ? -Dale? ? -? To unsubscribe, e-mail: user-unsubscr...@struts.apache.org? For additional commands, e-mail: user-h...@struts.apache.org? ?
v2.1.6 -- s:url and s:param
Can someone throw me a clue as to why s:param name=chd value=chd/ is converting the String returned from getChd() from this === t:60,40 to this === t%3A60%2C40 I have funked around with encode on the enclosing s:url .../ and cannot get the literal data inserted into the URL! P.S. I'm freak'n out man Peace, Scott -- View this message in context: http://www.nabble.com/v2.1.6s%3Aurl-and-s%3Aparam-tp22792289p22792289.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: v2.1.6 -- s:url and s:param
From section 4.1 of RFC3696 The following characters are reserved in many URIs -- they must be used for either their URI-intended purpose or must be encoded. Some particular schemes may either broaden or relax these restrictions (see the following sections for URLs applicable to web pages and electronic mail), or apply them only to particular URI component parts. ; / ? : @ = + $ , ? -Original Message- From: stanlick [mailto:stanl...@gmail.com] Sent: Monday, March 30, 2009 4:34 PM To: user@struts.apache.org Subject: v2.1.6 -- s:url and s:param Can someone throw me a clue as to why s:param name=chd value=chd/ is converting the String returned from getChd() from this === t:60,40 to this === t%3A60%2C40 I have funked around with encode on the enclosing s:url .../ and cannot get the literal data inserted into the URL! P.S. I'm freak'n out man Peace, Scott -- View this message in context: http://www.nabble.com/v2.1.6s%3Aurl-and-s%3Aparam-tp22792289p2279228 9.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 Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: using inject with Convention Plugin
Musachy, This works great as long as default Struts Object Factory is used but get the exception the following exception If I try to use StrutsSpringObjectFactory com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency Any thoughts? Thanks, Kumar. --- On Fri, 3/27/09, Musachy Barroso musa...@gmail.com wrote: From: Musachy Barroso musa...@gmail.com Subject: Re: using inject with Convention Plugin To: Struts Users Mailing List user@struts.apache.org Date: Friday, March 27, 2009, 12:55 PM There is no documentation about it. Don't tell anyone I told you, but you just need to do something like: @Inject(the.constant) public void setSomeConstant(String constant) { } and the value of the constant with key the.constant will be injected. You can also inject by type, like the Container instance and so on. musachy On Fri, Mar 27, 2009 at 3:48 PM, Kumar Mettu mksre...@yahoo.com wrote: Hi, I am looking for a way to inject resources while using Convention Plugin. I can't find any relevant docs. Can someone point me in right direction? Thanks, Kumar. -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: using inject with Convention Plugin
You can get an instance of the internal container like: Dispatcher.getInstance().getContainer() then use it to inject some object. Be warned that this can change without warning any time. musachy On Mon, Mar 30, 2009 at 5:06 PM, Kumar Mettu mksre...@yahoo.com wrote: Musachy, This works great as long as default Struts Object Factory is used but get the exception the following exception If I try to use StrutsSpringObjectFactory com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency Any thoughts? Thanks, Kumar. --- On Fri, 3/27/09, Musachy Barroso musa...@gmail.com wrote: From: Musachy Barroso musa...@gmail.com Subject: Re: using inject with Convention Plugin To: Struts Users Mailing List user@struts.apache.org Date: Friday, March 27, 2009, 12:55 PM There is no documentation about it. Don't tell anyone I told you, but you just need to do something like: @Inject(the.constant) public void setSomeConstant(String constant) { } and the value of the constant with key the.constant will be injected. You can also inject by type, like the Container instance and so on. musachy On Fri, Mar 27, 2009 at 3:48 PM, Kumar Mettu mksre...@yahoo.com wrote: Hi, I am looking for a way to inject resources while using Convention Plugin. I can't find any relevant docs. Can someone point me in right direction? Thanks, Kumar. -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Handling Browser Back/Forward Button in Struts2
Hi Shekher, i just added a small app, that work for me, on my blog post, if You are still interested, it's been a while - sorry for the lag, You can download it from there. http://poulwiel.blogspot.com/2009/01/browser-back-button-and-caching-problem.html Best greetings, Pawel Wielgus. 2009/1/26, shekher awasthi shekher.awas...@gmail.com: Thanks Pawel for such detalied description i did all the things as mentioned by you but still its not working for me regarding SSL its working for me bt still caching problem is there i will again dig deep in to it and if you can provide me a small app that will be wonderfull i can use that to compare my functionality so that i can find out where i am doing wrong or whats going wrong in my application. On 1/26/09, Paweł Wielgus poulw...@gmail.com wrote: Hi Shekher, what i did is: 1. I added on every page: meta http-equiv=Pragma content=no-cache/ meta http-equiv=Cache-Control content=no-cache/ meta http-equiv=Expires content=-1/ - in head section at the begining of page and after body just before /html i added: head meta http-equiv=pragma content=no-cache/ meta http-equiv=cache-control content=no-cache/ meta http-equiv=expires content=-1/ /head - so it is doubled! 2. I added to every response: response.setHeader(Pragma, no-cache); response.setHeader(Cache-Control, no-cache); response.setHeader(Expires, -1); And that's working for me under ssl. As for ssl it has nothing to do with struts2, it's controlled by tomcat or any other server You are using, i know there is ssl-plugin for s2 but i honestly don't know what for, maybe it is targeted for checking if request is under ssl and if not redirecting to ssl connection, but it's not turning ssl on for sure. If that won't help i can make a little app and pack it up for You, but it can take some time. Best greetings, Paweł Wielgus. 2009/1/25 shekher awasthi shekher.awas...@gmail.com: Hi Hi Paweł, i tried all the way in secure way i implimented SSL and now my tomcat is running on port 8443 usinh https protocol i have created a custom interceptor for setting the header values when user click logg off button this custom interceptor is working setting the header values below is the code i am using ActionContext context=invocation.getInvocationContext(); HttpServletResponse response=(HttpServletResponse)context.get(StrutsStatics.HTTP_RESPONSE); if(response!=null){ System.out.println(**setting header**); response.setHeader(Cache-Control, must-revalidate); response.setHeader(Cache-Control, max-age=0); response.setHeader(Pragma, no-cache);//HTTP 1.1 response.setDateHeader (Expires, 0); //prevents caching at the proxy response.setHeader(Cache-Control,no-store); //HTTP 1.1 } and on my logot message i have something like this META content=MSHTML 6.00.2900.2180 name=GENERATOR META HTTP-EQUIV=CACHE-CONTROL CONTENT=NO-CACHE META HTTP-EQUIV=EXPIRES CONTENT=-1 META HTTP-EQUIV=PRAGMA CONTENT=NO-CACHE but still results are same i can go back to secure page using browser back button any idea why this is going on?? or do i need to set anything apart from this? -shekher On Fri, Jan 23, 2009 at 9:06 PM, shekher awasthi shekher.awas...@gmail.comwrote: Can you guide me the way how to use SSL in struts2 i am looking in to this IDE i am using is MyEclispe and i am testing it using tomcat On Fri, Jan 23, 2009 at 7:33 PM, Paweł Wielgus poulw...@gmail.com wrote: Hi Shekher, all my testing was under SSL connection. So without pragma and cache control it's not working - sadly. Best greetings, Paweł Wielgus. 2009/1/22 shekher awasthi shekher.awas...@gmail.com: Hi Paweł, another way we can do this by using SSL as we are dealing in secure zone so using SSL for this might be a good case. the application i have seen so far who have dealt with this back/forward button always using HTTPS protocol. i am also diving in to this case study and will share the results On 1/22/09, shekher awasthi shekher.awas...@gmail.com wrote: one of the banking application site which i tested today when user get logged off from and try to hit the back button he will be shown a different page instead the one in the cache so i am also loking in to this aspect. On 1/22/09, shekher awasthi shekher.awas...@gmail.com wrote: using javascript is not a sure short solution as i tested it throughly and javascript behaviour is not consistent throught regarding setting header i did this i developed a custom interceptor which is doing this but again its not worked as expected. i am still clueless how
again... dynamic s:tree
Hi there, I am trying to build a dynamic tree in my application. I used to do it with struts1, nested tags and making it recurse by including a JSP file recursively. I don't find the nested: tags in struts2 and after searching nabble it seems that s:tree tag is not finished to be able to obtain a dynamic tree (coming from a persisted object structure... I mean... like a file directory structure for example). Anybody can give any directions on how to build this type of structure in struts2? As I see it I maybe I have to code HTML in the action (!) to obtain it. I'd like not to do that... (I dont need the tree to expand and collapse... I just need to draw it) thanks for any help. -- View this message in context: http://www.nabble.com/again...-dynamic-s%3Atree-tp22796166p22796166.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:Re: Error - 2.1.6 - index()
delete struts2-rest-plugin-2.1.6.jar from your lib. 在2009-03-30,strangerinu samar...@gmail.com 写道: Would you please tell me how did you fix this error. Even i too get this error, it never considers my method parameter in struts. it tries to call the index()? Kindly help jbogo wrote: I don't use rest plugin. In fact, i haven't used the plugin codebehind. Now, it's working fine. Tanks a lot. -- View this message in context: http://www.nabble.com/Error---2.1.6---index%28%29-tp21562622p22777122.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:Re: REST Plugin only for some actions
agree! I like rest, the great url patern. but,too many problems now. I can browse http://localhost:8080/test/data.xml,but when call it in a jsp file dhtmlxtree.loadFrom(http://localhost:8080/test/data.xml;), it says there is no action or result named 'test'! seems the server treat all .xml url as action,but why I can browse it directly? may i tell struts2 don't treat .xml url as action? 在2009-03-30,Dave Newton newton.d...@yahoo.com 写道: Radoslav Krivak wrote: REST plugin is great idea, but sadly it seems to me that in current state it is more of a proof of concept than solution that you can use in real applications. Drat, guess I'll have to do some undeploys. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re:RE: Localization in Struts 2.0
I think the properties files are sequenced like: 1,ActionName.properties; 2,PackageName.properties; 3,Default.paroperties(you can tell struts2 in config file); 在2009-03-30,Manoj Dhore manoj.dh...@sword-soft.com 写道: Hi Poul, Thanks for your help. It worked fine. The problem was with the properties file name. The property file name was different from the Action name. But, I had a quick question here. Does this mean that in real world, I would have to create the same number of property file as that of the actions anticipating the request or do we have some inbuilt action is struts-default to take care of. Your help is much appreciated. Regards, Manoj -Original Message- From: Paweł Wielgus [mailto:poulw...@gmail.com] Sent: 30 March 2009 15:27 To: Struts Users Mailing List Subject: Re: Localization in Struts 2.0 Hi Manoj, when You are accesing s:property value=title/ You are asking for Action.getTitle() method (or any other on the stack by that name). Simply try s:text or read: http://struts.apache.org/2.x/docs/text.html and http://struts.apache.org/2.x/docs/localization.html Best greetings, Paweł Wielgus. 2009/3/30 Manoj Dhore manoj.dh...@sword-soft.com: Can someone please provide me with some information about localization in struts 2. I am basically trying to have 2 locale : English and German for which I have created two different properties file. viz : index_en.properties and index_de.properties. I have put both these file in the same working directory as that for my Action class. My action class execute method is as follows : public String execute() throws Exception { setMessage(getText(TITLE)); // TITLE is a final static string refering to a key in properties file return SUCCESS; } However when I try to access the title field in my jsp using s:property value=title/, it displays as title instead of the value of this key. I am not sure if its able to pick up the properties files. Any help would be much appreciated. Thanks in advance. Regards, Manoj _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Sword Intech. Scanning of this message and addition of this footer is performed by Websense Email Security software in conjunction with virus detection software. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Sword Intech. Scanning of this message and addition of this footer is performed by Websense Email Security software in conjunction with virus detection software. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
REST! ReST!
struts2 + rest plugin is a good idea. anybody have materials or experience on this? thank you
post-redirect-get in Firefox
I think this is likely to be nothing to do with struts but rather with firefox, however trawling the net for firefox info on the subject hasn't yielded anything interesting. I noticed a while back that my redirects are not replacing the history in the browser - firefox in particular, but not opera. If I submit a form, then the redirect response is retured and the browser fetches the appropriate page. Normally if I hit Refresh, it should just refetch the last page. However Firefox is ignoring the redirect and actually resubmitting the form after showing the warning / confirmation dialog. Is this just me or has anyone else got this issue too? Thanks Adam - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: using inject with Convention Plugin
If you're using spring, why don't you use spring to inject your property? Kumar Mettu wrote: Musachy, This works great as long as default Struts Object Factory is used but get the exception the following exception If I try to use StrutsSpringObjectFactory com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency Any thoughts? Thanks, Kumar. --- On Fri, 3/27/09, Musachy Barroso musa...@gmail.com wrote: From: Musachy Barroso musa...@gmail.com Subject: Re: using inject with Convention Plugin To: Struts Users Mailing List user@struts.apache.org Date: Friday, March 27, 2009, 12:55 PM There is no documentation about it. Don't tell anyone I told you, but you just need to do something like: @Inject(the.constant) public void setSomeConstant(String constant) { } and the value of the constant with key the.constant will be injected. You can also inject by type, like the Container instance and so on. musachy On Fri, Mar 27, 2009 at 3:48 PM, Kumar Mettu mksre...@yahoo.com wrote: Hi, I am looking for a way to inject resources while using Convention Plugin. I can't find any relevant docs. Can someone point me in right direction? Thanks, Kumar. -- Hey you! Would you help me to carry the stone? Pink Floyd - 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://www.nabble.com/using-inject-with-Convention-Plugin-tp22748747p22797161.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
Skinning, themeing with stuts 2.1.x and the convention plugin
I'm looking for a way using the convention plugin to support custom themes/skins for a web page. Right now I can't really see a good way to implement this using struts2. -- View this message in context: http://www.nabble.com/Skinning%2C-themeing-with-stuts-2.1.x-and-the-convention-plugin-tp22797203p22797203.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: Issue with the Browser Cache
Thanks a lot. It is working fine now. Looks like I had couple of issues. 1. I had specified more values to the response headers than required. 2. Use one get in the work flow. Rgds, Satya 2009/3/30 Paweł Wielgus poulw...@gmail.com Hi Satya, You can read my post about this matter, also You can download and run my simple app to see how it works, the link is in the bottom of post. http://poulwiel.blogspot.com/2009/01/browser-back-button-and-caching-problem.html Best greetings, Paweł Wielgus. 2009/3/27 satyanarayana katta saty.pra...@gmail.com: Hi All, We are developing an application with Struts 2.1.6 and tiles 2.0.6. We don't want the browser to cache the pages. I tried all the options and still the browser is caching the pages and when I hit the back button the page gets loaded. Tried Options 1. Wrote an interceptor and added the response header to have pragma no-cache, expires -1, no-store etc. 2. Added response headers directly in jsp Used the http-watch to see if the headers are being set. HttpWatch shows that the headers are infact set. Whatever I do, the back button doesn't expire the page. Am I missing something? Please help. Rgds, Satya - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: post-redirect-get in Firefox
In Firefox so if I am on Investran and am redirected to cyberspaceroad I then (login) to welcome-file on cyberspaceroad on refresh I am redirected to original Investran Can you see which redirect code is returned (301,307) and which method(POST/GET) ? Martin __ Disclaimer and confidentiality note This message is confidential and may be privileged. If you are not the intended recipient, we kindly ask you to please inform the sender. Any unauthorised dissemination or copying hereof is prohibited. This message serves for information purposes only and shall not have any legally binding effect. Given that e-mails can easily be subject to manipulation, we can not accept any liability for the content provided. Date: Tue, 31 Mar 2009 02:59:01 +0100 From: ahardy.str...@cyberspaceroad.com To: user@struts.apache.org Subject: post-redirect-get in Firefox I think this is likely to be nothing to do with struts but rather with firefox, however trawling the net for firefox info on the subject hasn't yielded anything interesting. I noticed a while back that my redirects are not replacing the history in the browser - firefox in particular, but not opera. If I submit a form, then the redirect response is retured and the browser fetches the appropriate page. Normally if I hit Refresh, it should just refetch the last page. However Firefox is ignoring the redirect and actually resubmitting the form after showing the warning / confirmation dialog. Is this just me or has anyone else got this issue too? Thanks Adam - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ Express your personality in color! Preview and select themes for Hotmail®. http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_WL_HM_express_032009#colortheme