Re: tag syntax question

2009-07-23 Thread Musachy Barroso
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 Newfield wrote: > Musachy Barroso wrote: >> >> Objec

Re: tag syntax question

2009-07-23 Thread Dale Newfield
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

Re: Is 'expression' a keyword in 2.1.6?

2009-07-23 Thread wkbutler
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 'Express

Re: custom tag development?

2009-07-23 Thread Musachy Barroso
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 Claborn 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 Stru

Re: tag syntax question

2009-07-23 Thread Musachy Barroso
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 s

tag syntax question

2009-07-23 Thread Mitch Claborn
I'm a big confused about the syntax in struts tags. For example, I have the following: "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 ar

custom tag development?

2009-07-23 Thread Mitch Claborn
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 . What I have in mind is something like this: other stuff, including other struts tags the tag would iterate over the stuff contained in

Re: studying struts2 framework, ActionInvocation question

2009-07-23 Thread Dave Newton
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 unsubscri

Re: Prevent Initial Validation Struts 2

2009-07-23 Thread Greg Lindholm
> 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 f

Prevent Initial Validation Struts 2

2009-07-23 Thread tagged000013
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 seve

Re: action does not declare serialversionuid warning

2009-07-23 Thread anand nandu
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 Nabbl

RE: action does not declare serialversionuid warning

2009-07-23 Thread Kawczynski, David
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 w

RE: action does not declare serialversionuid warning

2009-07-23 Thread anand nandu
"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-

Re: action does not declare serialversionuid warning

2009-07-23 Thread Greg Lindholm
> > > 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 Cluster

RE: action does not declare serialversionuid warning

2009-07-23 Thread Kawczynski, David
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 wou

action does not declare serialversionuid warning

2009-07-23 Thread anand nandu
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

Is 'expression' a keyword in 2.1.6?

2009-07-23 Thread wkbutler
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: http://www.op

Re: studying struts2 framework, ActionInvocation question

2009-07-23 Thread Dimitrios Christodoulakis
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

action does not declare serialversionuid warning

2009-07-23 Thread anand nandu
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

RE: studying struts2 framework, ActionInvocation question

2009-07-23 Thread Martin Gainty
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-presen

RE: Struts w/Ajax with Struts again

2009-07-23 Thread Martin Gainty
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 co

Re: s2 currency and internationalization

2009-07-23 Thread Bhaarat Sharma
Thanks!! this helps! On Wed, Jul 22, 2009 at 10:08 PM, kaphilmore wrote: > 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!! > >

Re: Struts w/Ajax with Struts again

2009-07-23 Thread Dave Newton
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

Re: s2 and default locale/language

2009-07-23 Thread Marsman
I'm simply using a text-tag like this one on my JSP: 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

Re: s2 and default locale/language

2009-07-23 Thread Pascal
Hm, ok. Could you post your resource bundle initialization/usage? Pascal On Thu, 23 Jul 2009 04:18:50 -0700 (PDT), Marsman 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

Re: studying struts2 framework, ActionInvocation question

2009-07-23 Thread Dimitrios Christodoulakis
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 s

RE: Struts w/Ajax with Struts again

2009-07-23 Thread cpanon
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

Re: Setting HTTP Headers in SOAPMessage

2009-07-23 Thread Marsman
...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 l

Re: Setting HTTP Headers in SOAPMessage

2009-07-23 Thread Paweł Wielgus
Hi Neil, You can try to use Axis as as a web services client. Best greetings, Paweł Wielgus. 2009/7/23 Neil Meyer : > 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 receiv

RE: Upgrading xWork??

2009-07-23 Thread Hoying, Ken
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 so

Setting HTTP Headers in SOAPMessage

2009-07-23 Thread Neil Meyer
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.*

Re: s2 and default locale/language

2009-07-23 Thread Marsman
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 cor

Re: s2 and default locale/language

2009-07-23 Thread Pascal
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 wrote: > Hi! > > I got a p

s2 and default locale/language

2009-07-23 Thread Marsman
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: packa