Thanks for the reply
but my problem is not solved,
i had a jsp page in which user enter japanese char there has to use client
side validation so that validation message has to be in japanese and if all
are correct that has to enter in the mysql db's table in that i'm not sure
what the encoding used
Gotcha, so in that case, yes, that properties file is exactly what you want.
Don
On Wed, Jul 14, 2010 at 11:31 AM, Rohan Ranade wrote:
> IDE integration. I maintain the NetBeans Struts2 plugin (
> http://nbstruts2support.dev.java.net). To quote one use case: When creating
> a new project, the us
IDE integration. I maintain the NetBeans Struts2 plugin (
http://nbstruts2support.dev.java.net). To quote one use case: When creating
a new project, the user has a choice of selecting Struts 2.0.x or
Struts2.1.x libraries to be added to the classpath from a location specified
by the user. Depending
On Wed, Jul 14, 2010 at 8:08 AM, Rohan Ranade wrote:
> Hi all,
>
> I want to find out the version of Struts2 (2.0.x or 2.1.x) by introspecting
> the struts2 core jar file. Is there a class which can be introspected to
> find this out? (similar to
> http://static.springsource.org/spring/docs/2.0.x/
Thanks for the response. I've been actually looking into the json
plugin but having problems...
I'm using the json plugin that comes with struts 2 (json-lib-2.1.jar)
and trying to follow the website to set it up.
Here's my struts.xml
b
Yeah I was hoping I did not need to. Not at midnight though. Will look
tomorrow now haha.
Thanks very much for the help.
Chrid
- Original Message -
From: "Chris Pratt"
To: "Struts Users Mailing List"
Sent: Wednesday, July 14, 2010 12:10 AM
Subject: Re: Currency Formatting
That's
You can do this via the json plugin
(https://cwiki.apache.org/WW/json-plugin.html - bundled with struts
2.1.7+) that provides the json result type, i.e., @Result(name="foo",
type="json", ...) or you could set the contentType in your @Result
params as application/json and have your associated templa
That's weird I've never experienced anything like that were rendering stops
without putting anything into the logs. Looks like you'll have to dig into
the code.
(*Chris*)
On Tue, Jul 13, 2010 at 4:05 PM, Chris Miles wrote:
> HTML rendering just completely stops at that point. I get the follow
HTML rendering just completely stops at that point. I get the following:
This is a product name
And nothing else for the rest of the page. Nothing in the logs. Nothing :)
Chris
- Original Message -
From: "Chris Pratt"
To: "Struts Users Mailing List"
Sent: Wednesday, July 14, 2010 1
Define "fails", you get a stack trace? you don't get the output you
expected? If so, what were you expecting vs. what did you get? I've used
that code a thousand times, so I'm not sure what could be going wrong...
(*Chris*)
On Tue, Jul 13, 2010 at 3:56 PM, Chris Miles wrote:
> Thanks Chris. T
Thanks Chris. The reason I use this method in my iterators is there are a
few places where I use nested iterators so the # notation is the only way to
access the current iterator but also the parent iterator.
This specific iterator is not nested so I have changed it for learning and
trial sake
I've never used the iterator tag like that, the standard way to use the
Struts 2 Iterator would be:
http://product.name/>
"/>
£
Since the iterator tag puts the current value on the top of the stack,
there's no reason to define a variable to hold it. It's much simpler to
just use the value
Chris,
I have a list of products which contain a double price.
I now have.
£name="format.currency">
Chris
- Original Message -
From: "Chris Pratt"
To: "Struts Users Mailing List"
Sent: Tuesday, July 13, 2010 11:04 PM
Subject: Re: Currency Formatting
puts the value on
Hi all,
I want to find out the version of Struts2 (2.0.x or 2.1.x) by introspecting
the struts2 core jar file. Is there a class which can be introspected to
find this out? (similar to
http://static.springsource.org/spring/docs/2.0.x/api/org/springframework/core/SpringVersion.htmlin
Spring)? Having
puts the value on the top of the stack, so if you have a list
of doubles, we'll call it amounts, it would look something like this:
(*Chris*)
On Tue, Jul 13, 2010 at 2:43 PM, Chris Miles wrote:
> Chris,
>
> Hi that works perfectly for
>
>
>
> where total is public Double getTotal
>
>
Chris,
Hi that works perfectly for
where total is public Double getTotal
but causes all rendering to stop at the following within an iterator.
where List getProducts (for the iterator), public Product
getProduct and public Double getPrice
and also fails just on
where public Product g
One thing I find odd is that you're creating a static reference to an
instance of your class, from an instance of your class, why? Spring has
already created and is managing an instance for you, there's no reason to
instantiate a second singleton instance (kinda defeats the whole singleton
thing a
Thanks for the input. The default scope is Singleton anyway. Also I am not
calling getStartUPService() method in my application. I have deleted this
method. But keeping the scope to singleton and init-method="init". The init
method is called twice. Not able to figure that out.
I know something i
I am looking for documentation for the struts.xml configuration file.
Are there different tags for different versions of struts.xml?
I'm using struts 2.1.8.1
I was trying to use the json plugin that's bundled with struts but I'm
running into a few snags. Firstly, I like using annotations whenever
possible so this is what my struts.xml looks like:
type="redirect">/authenticate/login-page
/error/error
Umm, no I'm saying let Spring manage the singleton, you don't need to do it
yourself. Especially since the original question was how to have it created
at initialization time. If you remove scope=prototype, it won't be
auto-created for you, and you will have defeated the whole point.
(*Chris*)
So basically you are saying is that remove scope="singleton" right?
Chris Pratt wrote:
>
> It's being called twice because, since you defined it as scope=singleton,
> Spring is creating a singleton instance for you automatically on start-up.
> Then your code is creating another instance in you
try instead of .
(*Chris*)
On Tue, Jul 13, 2010 at 12:11 PM, Chris Miles wrote:
> At the moment I have in my struts.xml
>
> />
>
> ApplicationResources.properties is being packaged within WEB-INF\classes
> within a WAR within an EAR.
>
> The file contains: format.currency={0,number,currency}
At the moment I have in my struts.xml
/>
ApplicationResources.properties is being packaged within WEB-INF\classes
within a WAR within an EAR.
The file contains: format.currency={0,number,currency}
In my JSP I have value="product.price"/>
Without the s:text the price is displayed (a Double
It's being called twice because, since you defined it as scope=singleton,
Spring is creating a singleton instance for you automatically on start-up.
Then your code is creating another instance in your getStartupService()
method. You don't need to explicitly instantiate one, just let Spring
inject
Thanks for the suggestion. I have implemented it, but the issue is that the
bean is called twice.I am using websphere server 6.1. Do you have any idea
why its happening?
Here is the code in ApplicationContext.xml
and StartUPService.java class looks l
I don't think I can use in my requirement. The checkboxs are
created inside . Is this not possible using ??
--- On Tue, 7/13/10, Chris Pratt wrote:
From: Chris Pratt
Subject: Re: Pre-selected s:checkbox problem.
To: "Struts Users Mailing List"
Date: Tuesday, July 13, 2010, 12:07 PM
Look a
Hi All,
Say I have an "String[] colors" which is populated with thse
values{"red","blue","green","yellow","white","black"}, the colors are declared
in action class.
I have an colorList(java.util.List) which is having all colors. In
UI when I use for looping colorList, when color value
Look at the instead, it automatically handles maintaining
state.
(*Chris*)
On Tue, Jul 13, 2010 at 9:04 AM, sharath karnati wrote:
> Hi All,
>
>Say I'm declaring in
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
Hi All,
Say I'm declaring in
Select Division:
Select User:
in action class "selected_rows" is selected as String[]
When user selects
2010/7/13 Johannes Geppert :
> is version 2.2.0 also available with maven?
Not yet, still in stagging repo only and still under the Vote :-(
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Kapituła Javarsovia 2010 http://javarsovia.pl
--
Hi,
thanks for the comments, i will check but i get this error only at times,
and not always.
Can this still be the cause of the problem.
thanks
abhishek
On Tue, Jul 13, 2010 at 6:39 PM, Robert Taylor wrote:
> Greetings,
>
> Does the Customer object implement Serializable interface?
> If not, try
The problem is: When he pass through interceptor and go to action
"cadastrarOrdemServico" my var cdProjetoOS are set with null :(
thanks, follow my all code:
CLASS LoginClienteInterceptor .java
---
package br.com.dnasolution.site.interceptor;
im
I'm fairly new to this myself so maybe someone else can jump in. First
things first, put a print statement in the intercept methods of your
interceptors so you at least know if the interceptor is even getting
called.
Secondly, I didn't ever use a line like this:interceptorRefs = {
@Intercept
Hey man, did u see the email i send? with my class and struts.xml??
tks
- Original Message -
From: "JP Cafaro"
To: "Struts Users Mailing List"
Sent: Monday, July 12, 2010 2:38 PM
Subject: Re: Javascript issues
I think the problem has to do with this line:
When I use firefox, and
is version 2.2.0 also available with maven?
Johannes
Meder Kydyraliev-2 wrote:
>
> There's a critical remote commands execution vulnerability in XWork(used
> by
> Struts2), which fixed in 2.2.0, which isn't released yet but can be
> downloaded here: http://people.apache.org/builds/struts/2.2.0
Thanks for pushing this, your right it is critical and needs to be fixed asap.
On Sat, Jul 10, 2010 at 4:02 AM, Meder Kydyraliev wrote:
> There's a critical remote commands execution vulnerability in XWork(used by
> Struts2), which fixed in 2.2.0, which isn't released yet but can be
> downloaded
Greetings,
Does the Customer object implement Serializable interface?
If not, try modifying Customer to implement Serializable and see if the
error still persists.
/robert
- Original Message -
From: "abhishek jain"
To: "Struts Users Mailing List"
Sent: Tuesday, July 13, 2010 4:33 A
You can use the fieldexpression validator. See
http://struts.apache.org/2.1.8.1/docs/fieldexpression-validator.html for
details.
On Tue, Jul 13, 2010 at 05:39:52AM -0700, kisja wrote:
>
> I have two textfield and I would like to validate that at least one of both
> have data.
> How I can do?
I have two textfield and I would like to validate that at least one of both
have data.
How I can do?
(I apologize for my bad English)
Thanks
--
View this message in context:
http://old.nabble.com/Struts2-validation-tp29149892p29149892.html
Sent from the Struts - User mailing list archive at
Is it possible to declare result-type using annotations? For example,
when trying to return an object, that gets serialized to json, is it
possible to move away from the struts.xml and do it via
annotations
-
To unsubscribe,
UTF-8 wont handle dbcs or tbcs languages
i would suggest change all encodings (parameter and file,input and output) to
UTF-16
change all XML declaration tags for all XML files to UTF-16 e.g.
freemarker and velocity have their language specific scripts which you will
need to modify or
Dear List members,
I have implemented model driven & prepare able interface in S2, also
included interceptor stack
My method call flow is
1.prepare 2.getModel 3.getModel
Why does getModel gets called twice. Is it to useful to call it twice or is
my config setting wrong somewhere.
Also I cre
Hi friends,
I am using tomcat 5.5 , struts 1.x and i encounter the following error:
I actually store the object in session and retrieve that(for a shopping cart
application), pl. advice what i can do to remove this error:
Exception loading sessions from persistent
storagejava.io.WriteAbortedExcept
Hi all
I'm facing a problem ,
in a sample there is a username and password there two has to show in
japanese if the user didnt enter the values the validation also has also be
shown in japanese i had changed the page encoding ,changed to validation.xml
to property file there also on saving eclise
45 matches
Mail list logo