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:
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'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
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.*
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
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
...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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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,
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
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
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'
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
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
34 matches
Mail list logo