s2 and default locale/language
Hi! I got a problem with Struts 2 and selecting the language dependent properties file. When I got a properties file for language de (my home country), it's allways taken by Struts. Even if I configure language dk or es in my browser. I got the following files in my web application: package.properties package_de.properties global-messages.properties global-messages_de.properties As far as I know, the file package.properties should be taken as fallback because there isn't any package_dk.properties. I've verified the Struts configuration with the config-browser-plugin. I don't have configured any default-locale. Why is Struts using de anyway? Titus -- View this message in context: http://www.nabble.com/s2-and-default-locale-language-tp24623075p24623075.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: s2 and default locale/language
Are you sure your browser settings are correct? I bet it's on the client side, not a struts/config error. Try using some page to detect your language setting, like http://aruljohn.com/lang.php Hope this helps, Pascal On Thu, 23 Jul 2009 03:24:50 -0700 (PDT), Marsman mars@gmx.de wrote: Hi! I got a problem with Struts 2 and selecting the language dependent properties file. When I got a properties file for language de (my home country), it's allways taken by Struts. Even if I configure language dk or es in my browser. I got the following files in my web application: package.properties package_de.properties global-messages.properties global-messages_de.properties As far as I know, the file package.properties should be taken as fallback because there isn't any package_dk.properties. I've verified the Struts configuration with the config-browser-plugin. I don't have configured any default-locale. Why is Struts using de anyway? Titus - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s2 and default locale/language
I've tried the browser language detection page and as I expected only the language code da-DK was listed. I had already removed the languages de-DE and en-US an the browser and addad da-Dk to test my Struts configuration. Titus Pascal-53 wrote: Are you sure your browser settings are correct? I bet it's on the client side, not a struts/config error. Try using some page to detect your language setting, like http://aruljohn.com/lang.php Hope this helps, Pascal On Thu, 23 Jul 2009 03:24:50 -0700 (PDT), Marsman mars@gmx.de wrote: Hi! -- View this message in context: http://www.nabble.com/s2-and-default-locale-language-tp24623075p24623739.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
Setting HTTP Headers in SOAPMessage
Hi, I have a problem that I really can't seem to resolve. I have downloaded some code from code Ranch called SAAJClient. This is now part of my struts project. I receive data from a client on my web which I then have to post through to a different client via webservices using javax.xml.soap.* I set the http Headers to do Authentication but when I snoop the post going out none of the headers that I have set are present. String authorization = new sun.misc.BASE64Encoder().encode((username+:+password).getBytes()); MimeHeaders hd = message.getMimeHeaders(); hd.addHeader(Authorization, Basic + authorization); I really don't know where to look anymore for a solution on this and would appreciate any comments on this. Kind Regards, Neil Meyer t. +27 (0) 11 523 4804 | f. +27 (0) 11 523 4801 | m. +27 (0) 82 474 7304 e. neil.me...@vscsolutions.co.za | w. www.vscsolutions.co.za - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Upgrading xWork??
The 2.1.4 code for xWork is as you posted with the synchronized block. However, the 2.0.4 code does not contain the symbolization block. As a result, it appears that my threads are sometimes hanging. I am not getting any errors in the log. What is happening on occasion (not very often) is some sort of contention will happen and user threads will start hanging. When a thread dump is done, the hung threads are all seem hung on the same HahsMap get() method from the call made in the line below: MessageFormat format = (MessageFormat) messageFormats.get(key); The line below being from the 2.0.4 code: private static MessageFormat buildMessageFormat(String pattern, Locale locale) { MessageFormatKey key = new MessageFormatKey(pattern, locale); MessageFormat format = (MessageFormat) messageFormats.get(key); if (format == null) { format = new MessageFormat(pattern); format.setLocale(locale); format.applyPattern(pattern); messageFormats.put(key, format); } return format; } Thanks, Ken -Original Message- From: Martin Gainty [mailto:mgai...@hotmail.com] Sent: Wednesday, July 22, 2009 7:38 PM To: Struts Users Mailing List Subject: RE: Upgrading xWork?? i'm running xwork-2.1.4 private static final MapMessageFormatKey, MessageFormat messageFormats = new HashMapMessageFormatKey, MessageFormat(); private static MessageFormat buildMessageFormat(String pattern, Locale locale) { MessageFormatKey key = new MessageFormatKey(pattern, locale); MessageFormat format = null; synchronized (messageFormats) { format = (MessageFormat) messageFormats.get(key); if (format == null) { format = new MessageFormat(pattern); format.setLocale(locale); format.applyPattern(pattern); messageFormats.put(key, format); } } return format; } //same as your latest version can you display the synchronisation errors from the log? thanks, Martin __ 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: Wed, 22 Jul 2009 13:39:02 -0700 Subject: Re: Upgrading xWork?? From: thechrispr...@gmail.com To: user@struts.apache.org I'd still suggest making your changes to the 2.0.5 source, since it most likely has other bug fixes that you just haven't needed yet. (*Chris*) On Wed, Jul 22, 2009 at 1:21 PM, Hoying, Ken ken_hoy...@premierinc.comwrote: I checked and it was not. Thank you though. It only seems to appear in the 2.1.x versions. -Original Message- From: Chris Pratt [mailto:thechrispr...@gmail.com] Sent: Wednesday, July 22, 2009 4:08 PM To: Struts Users Mailing List Subject: Re: Upgrading xWork?? If I remember correctly there was a 2.0.5 that was probably compatible with the 2.0.x versions of Struts 2, but I have no idea if that fix is in that version. (*Chris*) On Wed, Jul 22, 2009 at 9:47 AM, Hoying, Ken ken_hoy...@premierinc.com wrote: We are running with Struts 2.0.1.1 (which uses xWork 2.0.4) and are noticing that we are getting hung threads sometimes on a HashMap call from com.opensymphony.xwork2.util.LocalizedTextUtil. It looks like the xWork code is question needs to be synchronized and is causing the threads to lock due to corruption in the HashMap. The problem code from xWork 2.0.4 is: private static MessageFormat buildMessageFormat(String pattern, Locale locale) { MessageFormatKey key = new MessageFormatKey(pattern, locale); MessageFormat format = (MessageFormat) messageFormats.get(key); if (format == null) { format = new MessageFormat(pattern); format.setLocale(locale); format.applyPattern(pattern); messageFormats.put(key, format); } return format; } I noticed that
Re: Setting HTTP Headers in SOAPMessage
Hi Neil, You can try to use Axis as as a web services client. Best greetings, Paweł Wielgus. 2009/7/23 Neil Meyer neil.me...@vscsolutions.co.za: Hi, I have a problem that I really can't seem to resolve. I have downloaded some code from code Ranch called SAAJClient. This is now part of my struts project. I receive data from a client on my web which I then have to post through to a different client via webservices using javax.xml.soap.* I set the http Headers to do Authentication but when I snoop the post going out none of the headers that I have set are present. String authorization = new sun.misc.BASE64Encoder().encode((username+:+password).getBytes()); MimeHeaders hd = message.getMimeHeaders(); hd.addHeader(Authorization, Basic + authorization); I really don't know where to look anymore for a solution on this and would appreciate any comments on this. Kind Regards, Neil Meyer t. +27 (0) 11 523 4804 | f. +27 (0) 11 523 4801 | m. +27 (0) 82 474 7304 e. neil.me...@vscsolutions.co.za | w. www.vscsolutions.co.za - 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: Setting HTTP Headers in SOAPMessage
...are you in the right thread?? Neil Meyer-2 wrote: Hi, I have a problem that I really can't seem to resolve. Neil Meyer -- View this message in context: http://www.nabble.com/s2-and-default-locale-language-tp24623075p24624299.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 w/Ajax with Struts again
Hi Martin I dont want to fillup the post with clutter. The action elements of the file are normal. What I was able to reproduce was that if I enter the action with an Ajax call, using prototype, and return with mapping.getInputForward(), the session objects do not get updated; even though I update them in the action. If, however I enter the action with a click off a html:submit button the session objects do get updated and I see the current values on the form. I never expected that. Should processing through an action and the updating of the session objects, be the same however the action was called? --- On Tue, 7/21/09, Martin Gainty mgai...@hotmail.com wrote: From: Martin Gainty mgai...@hotmail.com Subject: RE: Struts w/Ajax with Struts again To: Struts Users Mailing List user@struts.apache.org Date: Tuesday, July 21, 2009, 3:08 PM post the complete contents of struts-config.xml event timing is crucial specifically you'll need your Ajax control to detect ON_COMPLETE a fairly comprehensive example of handling ON_COMPLETE at http://struts.apache.org/2.0.14/docs/ajax-validation.html any objections to using new version struts-2.1.6..its stable enough for G/A? 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: Tue, 21 Jul 2009 10:09:43 -0700 From: cpa...@yahoo.com Subject: RE: Struts w/Ajax with Struts again To: user@struts.apache.org Hi Martin Yes, I did in the line defining both the initial action to bring up the form and the action tasked with processing the Ajax call. Also I put in the Ajax processing action specific setSeeMe(fromAjaxAction) and set that in both the request and the session objects. Still nothing but what the first default process set. The changes set in the Ajax action did not show no matter what life-cycle object they were put in nor what scope the action was defined. This should not be the case, correct? If I set the scope to request, and if I set a change in a actionForm and set it in the request, I should see it on the forwarded form. tia. --- On Mon, 7/20/09, Martin Gainty mgai...@hotmail.com wrote: From: Martin Gainty mgai...@hotmail.com Subject: RE: Struts w/Ajax with Struts again To: Struts Users Mailing List user@struts.apache.org Date: Monday, July 20, 2009, 10:18 AM did you check scope=request in struts-config.xml as earlier suggested 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, 20 Jul 2009 03:36:36 -0700 From: cpa...@yahoo.com Subject: Re: Struts w/Ajax with Struts again To: user@struts.apache.org Hi PW But I cant access the session objects with JS, nor can I iterate the collections I have in the session to display the updated values that were written in the Ajax processing action. Correct? --- On Mon, 7/20/09, Paweł Wielgus poulw...@gmail.com wrote: From: Paweł Wielgus poulw...@gmail.com Subject: Re: Struts w/Ajax with Struts again
Re: studying struts2 framework, ActionInvocation question
Just another thought I had this morning. Usually the framework is rather transparent to the struts user who only creates actions with their corresponding results and run the application on a server. I mean if the user doesn't have to customize anything, create an interceptor, or even bother with session objects, they might not encounter Proxy, Action Invocation, or Invocation Context at all in their own code. But, of course, those objects are part of the framework, and they must be instantiated and initialized without such user even knowing about it. Which means that initialization happens within the framework itself, and not in the user's code necessarily, right? So putting a breakpoint in the constructor of my intercept(ActionInvocation actionInvocation) method, possibly won't show me much, right? I have yet to try it, but this was just a thought. On Wed, Jul 22, 2009 at 8:59 PM, Musachy Barrosomusa...@gmail.com wrote: an easier way, is to install the maven plugin for eclipse, and then checkout the struts 2 code, and import apps/blank/pom.xml as a maven project. Then you can run and debug it from eclipse without having to download any code. musachy On Wed, Jul 22, 2009 at 6:23 PM, Dimitrios Christodoulakisdimi@gmail.com wrote: Thanks Dave and Martin. I learn something new every time! I was able to attach the source to struts2-core-2.1.6.jar and xwork-2.1.2.jar by first downloading the source code and pointing to the it from within eclipse. project-right click-properties-Java build path-Libraries-select jar-Source Attachment-edit I will try the breakpoint next. I hope eclipse can trace a breakpoint all the way to at least classes within those jars. Attaching code to each and every jar in the project sounds a bit tedious. I mean I manually downloaded the source and attached it. So for all other jars, spring, hibernate, commons, etc -- should take a long time. Unless it could be done automatically by eclipse, but I am not sure. Probably not On Wed, Jul 22, 2009 at 8:11 PM, Martin Gaintymgai...@hotmail.com wrote: unless someone redesigned Eclipse breakpoint wont be able to see a class packaged in the jar *at least with ganymede* stick with debug algorithm's mentioned earlier (main focus would be to debug action initialisation as dave mentioned) ... Martin __ 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: Wed, 22 Jul 2009 19:49:23 -0500 Subject: Re: studying struts2 framework, ActionInvocation question From: dimi@gmail.com To: user@struts.apache.org Dave Newton wrote: Won't help track action invocation initialization, methinks. Is there a particular way you would recommend to go about doing it actually? I am using eclipse for my ide, but I am not sure if breakpoints can trace through the compiled classes in the jars. Much appreciate the advice. On Wed, Jul 22, 2009 at 7:44 PM, Dave Newtonnewton.d...@yahoo.com wrote: Martin Gainty wrote: does vi have breakpoints.. am i missing something? In this case you actually saw something nobody else did--a vi reference. or debug before craig and ted left (i wished they both stayed but thats another topic) a DebuggingInterceptor was coded and is activated by struts.devMode = true http://struts.apache.org/2.0.14/docs/debugging.html then address would contain ?debug=parameter in url should specifies either ?debug=xml or ?debug=console to the URL. Won't help track action invocation initialization, methinks. Dave - 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: s2 and default locale/language
Hm, ok. Could you post your resource bundle initialization/usage? Pascal On Thu, 23 Jul 2009 04:18:50 -0700 (PDT), Marsman mars@gmx.de wrote: I've tried the browser language detection page and as I expected only the language code da-DK was listed. I had already removed the languages de-DE and en-US an the browser and addad da-Dk to test my Struts configuration. Titus Pascal-53 wrote: Are you sure your browser settings are correct? I bet it's on the client side, not a struts/config error. Try using some page to detect your language setting, like http://aruljohn.com/lang.php Hope this helps, Pascal On Thu, 23 Jul 2009 03:24:50 -0700 (PDT), Marsman mars@gmx.de wrote: Hi! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s2 and default locale/language
I'm simply using a text-tag like this one on my JSP: s:text name=homepage.headline / The problem isn't that the message text would not be found. Also when I try the same with another language, the message bundle corresponding to this language will be taken by Struts. But as soon as I got a de message bundle, Struts allways takes it. Whatever language is prefered by the browser. Titus Pascal-53 wrote: Hm, ok. Could you post your resource bundle initialization/usage? Pascal On Thu, 23 Jul 2009 04:18:50 -0700 (PDT), Marsman mars@gmx.de wrote: I've tried the browser language detection page and as I expected only the language code da-DK was listed. I had already removed the languages de-DE and en-US an the browser and addad da-Dk to test my Struts configuration. Titus -- View this message in context: http://www.nabble.com/s2-and-default-locale-language-tp24623075p24625622.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 w/Ajax with Struts again
cpanon wrote: What I was able to reproduce was that if I enter the action with an Ajax call, using prototype, and return with mapping.getInputForward(), the session objects do not get updated; even though I update them in the action. If, however I enter the action with a click off a html:submit button the session objects do get updated and I see the current values on the form. I never expected that. Should processing through an action and the updating of the session objects, be the same however the action was called? Why would the form on the main page be updated by the results of an Ajax call if the Ajax call processing doesn't do anything with the form? Ajax calls happen in the background. *Nothing* on the calling page will be updated unless the Ajax return handler updates it. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s2 currency and internationalization
Thanks!! this helps! On Wed, Jul 22, 2009 at 10:08 PM, kaphilmore kennethl...@sbcglobal.netwrote: FIXED. If you're trying to sell a product in US dollars and you're selling internationally, use something similar to this in your resource file. I hope this helps someone, because it drove me crazy for a day!! s:text name=format.moneys:param value=product.cost / /s:text format.money = $nbsp;{0,number,#.00} --- In str...@yahoogroups.com, kaphilmore kennethl...@... wrote: I'm using S2 for an eCommerce application (with resource files in different languages) and I'd like to display the currency in US only. The problem, when someone using the 'fr' locale comes to the site, the price is displayed as 89,99 instead of 89.99. Is there a way to force it to display as '89.99'? My setup is below. item.price={0,number,currency} s:text name=item.prices:param value=product.cost / /s:text Thanks in advance for any help. - To unsubscribe, e-mail: user-unsubscr...@... For additional commands, e-mail: user-h...@... - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Struts w/Ajax with Struts again
please display all jsp all xml (web.xml,struts.xml,struts-default.xml..and struts-config.xml if applicable) all source for background Java classes (including all Actions and all referenced beans) which version struts you are using? which version dojo you are using? (your main dojo.js should contain the line: dojo.version={major:0,minor:4,patch:3..} version=0.43) Martin Gainty __ Verzicht und Vertraulichkeitanmerkung 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. Date: Thu, 23 Jul 2009 09:39:51 -0400 From: newton.d...@yahoo.com To: user@struts.apache.org Subject: Re: Struts w/Ajax with Struts again cpanon wrote: What I was able to reproduce was that if I enter the action with an Ajax call, using prototype, and return with mapping.getInputForward(), the session objects do not get updated; even though I update them in the action. If, however I enter the action with a click off a html:submit button the session objects do get updated and I see the current values on the form. I never expected that. Should processing through an action and the updating of the session objects, be the same however the action was called? Why would the form on the main page be updated by the results of an Ajax call if the Ajax call processing doesn't do anything with the form? Ajax calls happen in the background. *Nothing* on the calling page will be updated unless the Ajax return handler updates it. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ Windows Live™ Hotmail®: Search, add, and share the web’s latest sports videos. Check it out. http://www.windowslive.com/Online/Hotmail/Campaign/QuickAdd?ocid=TXT_TAGLM_WL_QA_HM_sports_videos_072009cat=sports
RE: studying struts2 framework, ActionInvocation question
you're speaking of org.apache.struts2.s1.ActionFormValidationInterceptor? which is an Interceptor class contained within Struts2-Struts1-plugin an excellent step by step tutorial on Struts2-Struts1-plugin is available at http://www.slideshare.net/mraible/migrating-from-struts-1-to-struts-2-presentation Maven is a build environment which outputs distros based on version specific plugins although l/t you'll want to use it for development it can be a bit daunting to setup properly HINT: I use localRepository always to avoid disconnect probs with main maven plugin remoteRepositories fairly intuitive tutorial is located at http://maven.apache.org/guides/getting-started/index.html hth 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: Thu, 23 Jul 2009 07:51:37 -0500 Subject: Re: studying struts2 framework, ActionInvocation question From: dimi@gmail.com To: user@struts.apache.org Just another thought I had this morning. Usually the framework is rather transparent to the struts user who only creates actions with their corresponding results and run the application on a server. I mean if the user doesn't have to customize anything, create an interceptor, or even bother with session objects, they might not encounter Proxy, Action Invocation, or Invocation Context at all in their own code. But, of course, those objects are part of the framework, and they must be instantiated and initialized without such user even knowing about it. Which means that initialization happens within the framework itself, and not in the user's code necessarily, right? So putting a breakpoint in the constructor of my intercept(ActionInvocation actionInvocation) method, possibly won't show me much, right? I have yet to try it, but this was just a thought. On Wed, Jul 22, 2009 at 8:59 PM, Musachy Barrosomusa...@gmail.com wrote: an easier way, is to install the maven plugin for eclipse, and then checkout the struts 2 code, and import apps/blank/pom.xml as a maven project. Then you can run and debug it from eclipse without having to download any code. musachy On Wed, Jul 22, 2009 at 6:23 PM, Dimitrios Christodoulakisdimi@gmail.com wrote: Thanks Dave and Martin. I learn something new every time! I was able to attach the source to struts2-core-2.1.6.jar and xwork-2.1.2.jar by first downloading the source code and pointing to the it from within eclipse. project-right click-properties-Java build path-Libraries-select jar-Source Attachment-edit I will try the breakpoint next. I hope eclipse can trace a breakpoint all the way to at least classes within those jars. Attaching code to each and every jar in the project sounds a bit tedious. I mean I manually downloaded the source and attached it. So for all other jars, spring, hibernate, commons, etc -- should take a long time. Unless it could be done automatically by eclipse, but I am not sure. Probably not On Wed, Jul 22, 2009 at 8:11 PM, Martin Gaintymgai...@hotmail.com wrote: unless someone redesigned Eclipse breakpoint wont be able to see a class packaged in the jar *at least with ganymede* stick with debug algorithm's mentioned earlier (main focus would be to debug action initialisation as dave mentioned) ... Martin __ 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
action does not declare serialversionuid warning
when Action extends Action Support i get a warning action does not declare serialversionuid. Please excuse my ignorance if this was basic questions... 1) what is advantage of declaring serialversionuid in action class? 2) when does the action class gets serialized.Even in Clustered Environment i don't see action needs serialization. Please tell any scenario where action needs to be serialized.? 3) If my action does not get serialized why do i need to add unnecessary code(declare serialversionuid) to my action making it Big.? 4) I assume serialversionuid makes sense only when the action gets serialized.is this right? I will be really grateful if someone shares your ideas. -- View this message in context: http://www.nabble.com/action-does-not-declare-serialversionuid-warning-tp24629700p24629700.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: studying struts2 framework, ActionInvocation question
Actually I was speaking of my own custom interceptor (Authentiaction interceptor) which I add on top of the default package. Originally, I wanted to unit test my interceptor class and particularly its intercept method which takes an ActionInvocation as a parameter. My concern was how to create and instantiate a mock ActionInvocation implementation and bind a dummy action to it. This is leading me through the struts2 and xwork source code, which I am thinking of running using breakpoints to see how the ActionInvocation is intantiated. And at least follow the basic workflow of the framework when it is trying to execute an action. By the way I noticed that when I downloaded the s2 source code, it didn't come with the opensymphony packages... Does the xwork source has to be downloaded separately? On Thu, Jul 23, 2009 at 11:11 AM, Martin Gaintymgai...@hotmail.com wrote: you're speaking of org.apache.struts2.s1.ActionFormValidationInterceptor? which is an Interceptor class contained within Struts2-Struts1-plugin an excellent step by step tutorial on Struts2-Struts1-plugin is available at http://www.slideshare.net/mraible/migrating-from-struts-1-to-struts-2-presentation Maven is a build environment which outputs distros based on version specific plugins although l/t you'll want to use it for development it can be a bit daunting to setup properly HINT: I use localRepository always to avoid disconnect probs with main maven plugin remoteRepositories fairly intuitive tutorial is located at http://maven.apache.org/guides/getting-started/index.html hth 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: Thu, 23 Jul 2009 07:51:37 -0500 Subject: Re: studying struts2 framework, ActionInvocation question From: dimi@gmail.com To: user@struts.apache.org Just another thought I had this morning. Usually the framework is rather transparent to the struts user who only creates actions with their corresponding results and run the application on a server. I mean if the user doesn't have to customize anything, create an interceptor, or even bother with session objects, they might not encounter Proxy, Action Invocation, or Invocation Context at all in their own code. But, of course, those objects are part of the framework, and they must be instantiated and initialized without such user even knowing about it. Which means that initialization happens within the framework itself, and not in the user's code necessarily, right? So putting a breakpoint in the constructor of my intercept(ActionInvocation actionInvocation) method, possibly won't show me much, right? I have yet to try it, but this was just a thought. On Wed, Jul 22, 2009 at 8:59 PM, Musachy Barrosomusa...@gmail.com wrote: an easier way, is to install the maven plugin for eclipse, and then checkout the struts 2 code, and import apps/blank/pom.xml as a maven project. Then you can run and debug it from eclipse without having to download any code. musachy On Wed, Jul 22, 2009 at 6:23 PM, Dimitrios Christodoulakisdimi@gmail.com wrote: Thanks Dave and Martin. I learn something new every time! I was able to attach the source to struts2-core-2.1.6.jar and xwork-2.1.2.jar by first downloading the source code and pointing to the it from within eclipse. project-right click-properties-Java build path-Libraries-select jar-Source Attachment-edit I will try the breakpoint next. I hope eclipse can trace a breakpoint all the way to at least classes within those jars. Attaching code to each and every jar in the project sounds a bit tedious. I mean I manually downloaded the source and attached it. So for all other jars, spring, hibernate, commons, etc -- should take a long time. Unless it could be done automatically by eclipse, but I am not sure. Probably not On Wed, Jul 22, 2009 at 8:11 PM, Martin Gaintymgai...@hotmail.com wrote: unless someone redesigned Eclipse
Is 'expression' a keyword in 2.1.6?
Hi - this may be a dumb question, but I'm having a validation issue since upgrading to 2.1.6 (at least I think that's when it started). Saving an entity called 'Expression' fails - always fails the validation for field-validator 'requiredstring'. Here is the validator definition: !DOCTYPE validators PUBLIC -//OpenSymphony Group//XWork Validator 1.0.2//EN http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd; validators field name=expression.expression field-validator type=requiredstring message key=errors.required/ /field-validator /field field name=expression.expressionType field-validator type=requiredstring message key=errors.required/ /field-validator /field field name=expression.returnType field-validator type=requiredstring message key=errors.required/ /field-validator /field /validators and the debug result while saving, showing that there is data in all 3 fields: DEBUG [btpool0-4] ParametersInterceptor.debug(57) | Setting params expression.createDate = [ 07/21/2009 ] expression.createUser = [ -2 ] expression.deleteDate = [ ] expression.deleteUser = [ ] expression.expression = [ test ] expression.expressionId = [ 3 ] expression.expressionType = [ FTL ] expression.lastUpdate = [ 07/22/2009 ] expression.lastUpdateUser = [ -2 ] expression.returnType = [ Number ] method:cancel = [ Cancel ] questionId = [ 545 ] All 3 required fields fail with messages XXX is a required field. Changing the field-validator to just required doesn't help. Before I rename this entity and all it's relatives, I thought I'd ask here to see if anyone knows if this has become a keyword. I'm pretty darn sure this worked for me before I upgraded to 2.1.6, at least when I originally built it back in April/May. Thanks for ideas - Kent -- View this message in context: http://www.nabble.com/Is-%27expression%27-a-keyword-in-2.1.6--tp24629754p24629754.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
action does not declare serialversionuid warning
when Action extends Action Support i get a warning action does not declare serialversionuid. Please excuse my ignorance if this was basic questions... 1) what is advantage of declaring serialversionuid in action class? 2) when does the action class gets serialized.Even in Clustered Environment i don't see action needs serialization. Please tell any scenario where action needs to be serialized.? 3) If my action does not get serialized why do i need to add unnecessary code(declare serialversionuid) to my action making it Big.? 4) I assume serialversionuid makes sense only when the action gets serialized.is this right? I will be really grateful if someone shares your ideas. -- View this message in context: http://www.nabble.com/action-does-not-declare-serialversionuid-warning-tp24629699p24629699.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: action does not declare serialversionuid warning
Adding that to your action classes would help to eliminate user sessions loosing state in between servletcontext restarts. Since action classes will most likely contain several POJO-like properties which are set from user input, it is not be a bad idea to add that variable to your classes. It would only add one line of code to your action classes. -Original Message- From: anand nandu [mailto:anand8...@gmail.com] Sent: Thursday, July 23, 2009 12:40 PM To: user@struts.apache.org Subject: action does not declare serialversionuid warning when Action extends Action Support i get a warning action does not declare serialversionuid. Please excuse my ignorance if this was basic questions... 1) what is advantage of declaring serialversionuid in action class? 2) when does the action class gets serialized.Even in Clustered Environment i don't see action needs serialization. Please tell any scenario where action needs to be serialized.? 3) If my action does not get serialized why do i need to add unnecessary code(declare serialversionuid) to my action making it Big.? 4) I assume serialversionuid makes sense only when the action gets serialized.is this right? I will be really grateful if someone shares your ideas. -- View this message in context: http://www.nabble.com/action-does-not-declare-serialversionuid -warning-tp24629700p24629700.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: action does not declare serialversionuid warning
when Action extends Action Support i get a warning action does not declare serialversionuid. Please excuse my ignorance if this was basic questions... 1) what is advantage of declaring serialversionuid in action class? 2) when does the action class gets serialized.Even in Clustered Environment i don't see action needs serialization. Please tell any scenario where action needs to be serialized.? 3) If my action does not get serialized why do i need to add unnecessary code(declare serialversionuid) to my action making it Big.? 4) I assume serialversionuid makes sense only when the action gets serialized.is this right? I will be really grateful if someone shares your ideas. I can answer the obvious part of this; You get the warning because your action is extending ActionSupport and ActionSupport implements Serializable. If needed you can read about serialVersionUID here [1] or just google serialVersionUID as there are lots of sites that explain it. So since your class is Serializable you should add serialVersionUID to comply with the 'interface' and stop the warnings. As for point 3) it's hard see how adding a single static final long can be blamed for making your action 'Big'. The more interesting question is; Why does ActionSupport implement Serializable? I believe your argument in 2) make sense, the action objects should never be serialized, or I'm I also missing something? [1] http://java.sun.com/j2se/1.5.0/docs/api/java/io/Serializable.html
RE: action does not declare serialversionuid warning
Adding that to your action classes would help to eliminate user sessions loosing state in between servletcontext restarts. I really didnt understand what exactly this means... You are talking abt the form fields parameters in jsp? -- View this message in context: http://www.nabble.com/action-does-not-declare-serialversionuid-warning-tp24629700p24631059.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: action does not declare serialversionuid warning
This is off-topic, so here's a high-level explanation of serializing. Imagine submitting a form, and in the middle of it being processed by struts2 some administrator decided it's time to restart the servletContext. What any decent appserver will do is serialize any in-memory objects, so that when the app server comes back up it can reconstitute those objects and the appserver can pick up where it left off. The alternative would be that your submission barfs, and you get to start all over again. Not very user friendly. What if the administrator restarted the context because the action class that was handing your submission was updated. What if the new version didn't contain the same variables as the one that was just serialized does? The ID helps the app server when re-constituting, so it doesn't try to populate obsolete variables. If this still doesn't make sense, try googling and reading up a bit. HTH, -dave -Original Message- From: anand nandu [mailto:anand8...@gmail.com] Sent: Thursday, July 23, 2009 1:49 PM To: user@struts.apache.org Subject: RE: action does not declare serialversionuid warning Adding that to your action classes would help to eliminate user sessions loosing state in between servletcontext restarts. I really didnt understand what exactly this means... You are talking abt the form fields parameters in jsp? -- View this message in context: http://www.nabble.com/action-does-not-declare-serialversionuid -warning-tp24629700p24631059.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: action does not declare serialversionuid warning
I think i got why it makes sense to add that extra line in my action. Appreciate ur time for explaining that -- View this message in context: http://www.nabble.com/action-does-not-declare-serialversionuid-warning-tp24629700p24631992.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
Prevent Initial Validation Struts 2
I am new to Struts 2 and use annotation driven validations and they are working correctly. The only issue I have is that the validations are performed even upon navigating to my action for the first time. Ie All the fields on the web form are initially blank and also all my error msgs from several @RequiredString fields are also displayed. Is there is simple way to prevent error msgs when the action is initially navigated to? -- This message was sent on behalf of tagged000...@yahoo.ca at openSubscriber.com http://www.opensubscriber.com/messages/user@struts.apache.org/topic.html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Prevent Initial Validation Struts 2
I am new to Struts 2 and use annotation driven validations and they are working correctly. The only issue I have is that the validations are performed even upon navigating to my action for the first time. Ie All the fields on the web form are initially blank and also all my error msgs from several @RequiredString fields are also displayed. Is there is simple way to prevent error msgs when the action is initially navigated to? If you have CRUD style actions you annotate the action methods that don't need validation with @SkipValidation. For example my CRUD actions might have doNew() , doCreate(), doEdit(), and doUpdate() methods and I will add the @SkipValidation to doNew() and doEdit() like this: @SkipValidation public String doNew(){...} public String doCreate(){...} @SkipValidation public String doEdit(){...} public String doUpdate(){...}
Re: studying struts2 framework, ActionInvocation question
Dimitrios Christodoulakis wrote: By the way I noticed that when I downloaded the s2 source code, it didn't come with the opensymphony packages... Does the xwork source has to be downloaded separately? Yes. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
custom tag development?
Hoping someone can give me some pointers on how to get started on developing my own tag. I want to develop a custom tag to use within Struts 2, kind of like s:iterator. What I have in mind is something like this: abc:mytag other stuff, including other struts tags /abc:mytag the tag would iterate over the stuff contained in the tag, based on non-trivial logic, and also generate output both before and after the other stuff. This may eventually turn into a tag to generate an HTML table. Any pointers on how to get started developing such an animal are appreciated. Mitch - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: tag syntax question
you need to read about the value stack. long story short, the VS stacks (duh) objects. When an expressions like: name is evaluated, struts will go from the top to the bottom of the stack, trying to find a name field or getName method, until one is found. Different things are placed in the stack, the last action executed is placed on the stack, the iterator tag pushes the current value into the stack and so on. Objects can be put in the stack by name, like the HttpServletRequest object. Theseobjects are accessed using the # notation, like #request. The set tag can add things to the stack by name(for example). About the %{}, this part is confusing, for the sake of saving a few key strokes. Certain attributes in the tags are expected to be strings literals, like id, so you can do: s:a id=myid / instead of the more verbose, but also correct: s:a id=%{'myid'} / other attributes are expected to be expressions, so you can do: s:property value=#request.something / instead of the more verbose, but also correct: s:property value=%{#request.something} / so how do you know which one is which? look at the tag documentation, as a general rule, for id or name attributes I use string literals, and for anything else I add %{...}, because I cant spent my insufficient memory remembering which one is which :) musachy On Thu, Jul 23, 2009 at 4:01 PM, Mitch Clabornmi...@claborn.net wrote: I'm a big confused about the syntax in struts tags. For example, I have the following: s:set var=category value=display.category / s:set var=you_are_here_path value=#category.path / display is a property on the action. The first one does not need the #, but the second one does. Why? What does the # signify? Some tags seem to need the ognl construct %{.}. What are the rules around when this construct is needed as opposed to one of the others above? Mitch - 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: custom tag development?
Look at the component tag, you might be able to create a tag without writing any code. musachy On Thu, Jul 23, 2009 at 3:50 PM, Mitch Clabornmi...@claborn.net wrote: Hoping someone can give me some pointers on how to get started on developing my own tag. I want to develop a custom tag to use within Struts 2, kind of like s:iterator. What I have in mind is something like this: abc:mytag other stuff, including other struts tags /abc:mytag the tag would iterate over the stuff contained in the tag, based on non-trivial logic, and also generate output both before and after the other stuff. This may eventually turn into a tag to generate an HTML table. Any pointers on how to get started developing such an animal are appreciated. Mitch - 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
tag syntax question
I'm a big confused about the syntax in struts tags. For example, I have the following: s:set var=category value=display.category / s:set var=you_are_here_path value=#category.path / display is a property on the action. The first one does not need the #, but the second one does. Why? What does the # signify? Some tags seem to need the ognl construct %{.}. What are the rules around when this construct is needed as opposed to one of the others above? Mitch - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Is 'expression' a keyword in 2.1.6?
Answer appears to be 'no' after renaming the object and fields. Looks like something else changed. wkbutler wrote: Hi - this may be a dumb question, but I'm having a validation issue since upgrading to 2.1.6 (at least I think that's when it started). Saving an entity called 'Expression' fails - always fails the validation for field-validator 'requiredstring'. Here is the validator definition: !DOCTYPE validators PUBLIC -//OpenSymphony Group//XWork Validator 1.0.2//EN http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd; validators field name=expression.expression field-validator type=requiredstring message key=errors.required/ /field-validator /field field name=expression.expressionType field-validator type=requiredstring message key=errors.required/ /field-validator /field field name=expression.returnType field-validator type=requiredstring message key=errors.required/ /field-validator /field /validators and the debug result while saving, showing that there is data in all 3 fields: DEBUG [btpool0-4] ParametersInterceptor.debug(57) | Setting params expression.createDate = [ 07/21/2009 ] expression.createUser = [ -2 ] expression.deleteDate = [ ] expression.deleteUser = [ ] expression.expression = [ test ] expression.expressionId = [ 3 ] expression.expressionType = [ FTL ] expression.lastUpdate = [ 07/22/2009 ] expression.lastUpdateUser = [ -2 ] expression.returnType = [ Number ] method:cancel = [ Cancel ] questionId = [ 545 ] All 3 required fields fail with messages XXX is a required field. Changing the field-validator to just required doesn't help. Before I rename this entity and all it's relatives, I thought I'd ask here to see if anyone knows if this has become a keyword. I'm pretty darn sure this worked for me before I upgraded to 2.1.6, at least when I originally built it back in April/May. Thanks for ideas - Kent -- View this message in context: http://www.nabble.com/Is-%27expression%27-a-keyword-in-2.1.6--tp24629754p24638252.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: tag syntax question
Musachy Barroso wrote: Objects can be put in the stack by name, like the HttpServletRequest object. Theseobjects are accessed using the # notation, like #request. The set tag can add things to the stack by name(for example). The only confusing bit about the way that was just described is that things put into scope are not added to the stack. There's both a stack of objects and a hash mapping names to objects. When you set something you're adding it to the hash table, not the value stack. To later address something in this hash table you prefix it with #. -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: tag syntax question
yes that's a good catch Dale, from the API point of view they are stored in a map in the ValueStack instance, but from a user point of view you could say they are stored in the valuestack context. musachy On Thu, Jul 23, 2009 at 9:03 PM, Dale Newfieldd...@newfield.org wrote: Musachy Barroso wrote: Objects can be put in the stack by name, like the HttpServletRequest object. Theseobjects are accessed using the # notation, like #request. The set tag can add things to the stack by name(for example). The only confusing bit about the way that was just described is that things put into scope are not added to the stack. There's both a stack of objects and a hash mapping names to objects. When you set something you're adding it to the hash table, not the value stack. To later address something in this hash table you prefix it with #. -Dale - 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