Re: my execute method of action class is getting executed twice
Hi, I have the same problem, you can look at my message of November 30. However see below the bug I posted: "my web app have an action to delete one row in a MS Access table (access though sun.jdbc.odbc.JdbcOdbcDriver). The method return the number of rows deleted. The first time it's executed, it return the right number of deleted rows: 1. The action after reading the method result, it return SUCCESS, but rather to call the result page (jsp page), the controller, with no reason, call once again, the same method. This time, of course, it return 0 because the row is already deleted and the action return ERROR. Finally, even if the delete operation execute succesfully, the web app display the error message. I have other action with methods that insert and update rows and they work fine! All methods have the same program logic except for the sql statement (INSERT, UPDATE, DELETE, ...)" I thought was a bug of my application, but now i'm thinking it's a bug of struts 2 framework. I hope will be fix very soon. Regards Andrea xniit2003 wrote: > > Hi, > > I am new in struts2. > In my action class I declared some global fields and one execute > method.This class extends another class, which extends Actionsupport > class. Now my execute method is getting processed twice. > From this execute method, execution goes to some other method, which also > getting processed twice. > > Can anyone faced similar situation. > > Thanks > -- View this message in context: http://www.nabble.com/my-execute-method-of-action-class-is-getting-executed-twice-tf4927568.html#a14151247 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
localization issue for "it" extension
I tried using the example application (struts2-blank-2.0.11.war) and it working fine using package_es.properties and package.properties, that is I getting the messages in the right language. I got the same result using package_fr.properties rather than package_es.properties, they working fine! But if I rename the package_es.properties in package_it.properties, it did't work, that is the messages are always displayed in the O.S. language. Anyone can help me? It seems to be a bug related with the "it" extension !!! Thank's for your time! Andrea -- View this message in context: http://www.nabble.com/localization-issue-for-%22it%22-extension-tf4936405.html#a14129526 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: localization
I tried using the example application (struts2-blank-2.0.11.war) and it working fine using package_es.properties and package.properties, that is I getting the messages in the right language. I get the same result using package_fr.properties rather than package_es.properties. But if I rename the package_es.properties in package_it.properties, it did't work, that is the messages are always displayed in the O.S. language. Anyone can help me? I'm becoming crazy... Is this a bug related with the "it" extension ??? Thank's for your time! Andrea Kropp, Henning wrote: > > This would be the place to look for: > http://struts.apache.org/2.x/docs/i18n-interceptor.html > > btw... There are some broken links at > http://struts.apache.org/2.x/docs/localization.html > > Especially the link to sitemesh plugin ought to be: > http://struts.apache.org/2.x/docs/sitemesh-plugin.html > instead of > http://struts.apache.org/2.x/S2PLUGINS/sitemesh-plugin.html > > And the links to ValidationAware, Action... are also broken. > > regards > > [EMAIL PROTECTED] schrieb: >> http://struts.apache.org/2.x/docs/localization.html >> >> M-- >> - Original Message - >> Wrom: VZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRWTQT >> To: >> Sent: Friday, November 30, 2007 8:30 AM >> Subject: localization >> >> >> >>> my web app display message in jsp page ( using ) >>> always in one language. >>> I have two localization files (package.properties and >>> >> package_it.properties >> >>> in the same folder), and I always get the messages in Italian language >>> >> even >> >>> if the client language is English (en-us). >>> Rather in my production environment (O.S. Windows Server 2003 English), >>> >> the >> >>> same web app always displaying the same messages in English language >>> even >>> >> if >> >>> the client language (IE 6) is Italian (it). >>> I tried to do everythings but with any result. >>> Please help me to solve this issue. >>> Thanks in advance for your time. >>> >>> Andrea >>> -- >>> View this message in context: >>> >> http://www.nabble.com/localization-tf4909438.html#a14057085 >> >>> Sent from the Struts - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/localization-tf4909438.html#a14128214 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP EL on struts2 tags
vedo che stai utilizzando Struts 2. io ho un problema con la "localization". praticamente pur avendo due files di properties (package.properties (inglese) e package_it.properties (italiano)) le pagine jsp (dove utilizzo il tag ) mi compaiono sempre nella lingua del sistema operativo anzichè nella lingua del client (IE 6). ti comunico il mio recapito telefonico, eventualmente ci possiamo sentire. saluti Andrea Gigliotti (tel. 0583 700275) Andrea Vettori wrote: > > Hi, > > It's long time I was away from this list. > > I've found with big surprise that JSP EL is not available in JSP tags > anymore. I've looked at the release notes and found it was because of > a security problem similar to one I've discovered some time ago. > > What I haven't understand is : > > If in the JSP page I use ONLY page variables into EL (that is don't > use request variables) do the problem still exist ? > > Thank you > > -- > Ing. Andrea Vettori > Consulente per l'Information Technology > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/JSP-EL-on-struts2-tags-tf4897752.html#a14074290 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
executing twice of action execute method
My web app have an action to delete one row in a MS Access table (access though sun.jdbc.odbc.JdbcOdbcDriver). The method return the number of rows deleted. The first time it's executed, it return the right number of deleted rows: 1. The action after reading the method result, it return SUCCESS, but rather to call the result page (jsp page), the controller, with no reason, call once again, the same method. This time, of course, it return 0 because the row is already deleted and the action return ERROR. Finally, even if the delete operation execute succesfully, the web app display the error message. I have other action with methods that insert and update rows and they work fine! All methods have the same program logic except for the sql statement (INSERT, UPDATE, DELETE, ...). Really I don't know what the reason can be. Please help me. Thanks in advance Andrea -- View this message in context: http://www.nabble.com/executing-twice-of-action-execute-method-tf4909517.html#a14057256 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
localization
my web app display message in jsp page ( using ) always in one language. I have two localization files (package.properties and package_it.properties in the same folder), and I always get the messages in Italian language even if the client language is English (en-us). Rather in my production environment (O.S. Windows Server 2003 English), the same web app always displaying the same messages in English language even if the client language (IE 6) is Italian (it). I tried to do everythings but with any result. Please help me to solve this issue. Thanks in advance for your time. Andrea -- View this message in context: http://www.nabble.com/localization-tf4909438.html#a14057085 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]