RE: [S2] doubt working with dates in brazilian format (dd/MM/yyyy)

2007-02-24 Thread Wesslan
 I really like -MM-DD because that's the way we always write dates in
Sweden... :)

-Original Message-
From: Stefan [mailto:[EMAIL PROTECTED] 
Sent: den 24 februari 2007 22:40
To: Struts Users Mailing List
Subject: Re: [S2] doubt working with dates in brazilian format (dd/MM/)

Daniel Amadei schrieb:
> Hi All,
>
> I'm working with dates but I'm not able to convert dates to be 
> displayed automatically using the brazilian format (e. g. dd/MM/).
> Also I'd like to know how to validate my dates using this format and 
> not the standard.
>
> If somebody could point me to the docs where I can find some info 
> about those 2 items it would be great!
>
> BTW: I`m not using the datetimepicker.
>
> Thanks,
> Daniel
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
Hi Daniel,

not exactly what you asked. Just as an idea/opinion about international date
formats:
http://www.w3.org/QA/Tips/iso-date

Regards
Stefan

-- 

Stefan Riegel
TELIG GmbH



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Internationalization -- Issue with Japanese Characters

2007-02-24 Thread jacob skariah
Hi All,

  I am developing an Internatinalized application
based on struts frame work. But while displaying
Japanese character, I am getting Junk data. I am
getting issue with only multibyte characters (Japanese
..) Other laguages are working fine.



I have done the following things

1. Storing the Japanese text as Unicode in property
files
2. Set the pageEncodeing and charset as UTF-8 in JSP's
3. Set Encoding as UTF-8 in web.xml and tomcats
conf/web.xml
4. Added the javaEncoding param as UTF-8  in tomcats
conf/web.xml

Please let me know if I am missing anything or do I
need to do any additional settings.

Enviornment
---
Windows, Tomcat 5, Struts, JSTL


Regards
manoj






__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Forums, Message Boards, Threaded Discussions

2007-02-24 Thread Martin Gainty
Hi Joe-

are you're looking for a MessageBoard

M-
> Hello everyone,
> 
> I need a good forum solution to integrate with strut1 (action).
> 
> Anyone got a favorite to share?
> 
> 
> Thanks,
> 
> Joe
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Forums, Message Boards, Threaded Discussions

2007-02-24 Thread Joseph McGranaghan


Hello everyone,

I need a good forum solution to integrate with strut1 (action).

Anyone got a favorite to share?


Thanks,

Joe

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] Integrating Struts 2 and Groovy

2007-02-24 Thread Mark Menard
On 2/24/07 10:23 AM, "Mark Menard" <[EMAIL PROTECTED]> wrote:

> At this point I have scripted actions and service beans in Groovy, with
> automatic reloading working. (http://www.vitarara.org/cms/node/98)

A brief update. I have this working in a simple environment. I tried adding
Spring declarative transactions using its aop pointcut support. This causes
an exception when attempting to load the Groovy action because AspectJ can't
get the type from its class loader and therefore can not determine what
aspects to apply.

This additionally makes me wonder if Spring's scripting support supports
using pointcuts to configure transactions. I'm doing more research.
Hopefully this will work.

As an experiment I again tried creating a plugin that would create a
GroovyClassLoader. In this plugin I make the servlet context classloader the
parent of the GroovyClassLoader, then make the GroovyClassLoader the parent
of the Spring class loader. With this class loader config I can load an
action from a script and have Spring wire it, with pointcut support. (The
AspectJ class loader is down stream from the Groovy one so it works.)

This is quite messy, and only save a restart if you change an action. (If I
could get Jetty to ignore the new .groovy file being copied into its
classpath. Right now Jetty sees a new file on its classpath and restarts the
container. I can turn this off, but it leads to a manual restart anytime I
recompile a Java class. It's just not optimal.)

Mark

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] doubt working with dates in brazilian format (dd/MM/yyyy)

2007-02-24 Thread Stefan

Daniel Amadei schrieb:

Hi All,

I'm working with dates but I'm not able to convert dates to be
displayed automatically using the brazilian format (e. g. dd/MM/).
Also I'd like to know how to validate my dates using this format and
not the standard.

If somebody could point me to the docs where I can find some info
about those 2 items it would be great!

BTW: I`m not using the datetimepicker.

Thanks,
Daniel

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Hi Daniel,

not exactly what you asked. Just as an idea/opinion about international 
date formats:

http://www.w3.org/QA/Tips/iso-date

Regards
Stefan

--

Stefan Riegel
TELIG GmbH



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] doubt working with dates in brazilian format (dd/MM/yyyy)

2007-02-24 Thread Dariusz Wojtas

Hi Daniel,

Maybe this will help.
You may create converters for any type.
Here is one I use for dates.
You also need to put 'xwork-conversion.properties' file in classpath,
something like:

java.util.Date=aaa.utils.typeconverter.DateConverter

And the converter class:

public class DateConverter extends DefaultTypeConverter {
public static final String DATE_FORMAT = "-MM-dd";

@Override
public Object convertValue(Map ctx, Object o, Class toType) {
if (toType == Date.class) {
String val = ((String[]) o)[0];
if (val != null && val.length() > 0) {
SimpleDateFormat sdf = new 
SimpleDateFormat(DATE_FORMAT);
try {
return sdf.parse(val);
} catch (Exception e) {
System.out.println("Problem z konwersja daty: " + 
val + ", " +
e.getMessage());
}
}
} else if (toType == String.class) {
return o.toString();
}
return null;
}
}

Regards
Dariusz Wojtas

On 2/24/07, Daniel Amadei <[EMAIL PROTECTED]> wrote:

Hi All,

I'm working with dates but I'm not able to convert dates to be
displayed automatically using the brazilian format (e. g. dd/MM/).
Also I'd like to know how to validate my dates using this format and
not the standard.

If somebody could point me to the docs where I can find some info
about those 2 items it would be great!

BTW: I`m not using the datetimepicker.

Thanks,
Daniel


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] model driven versus domain object property

2007-02-24 Thread Mark Menard
On 2/24/07 3:41 PM, "Dave Newton" <[EMAIL PROTECTED]> wrote:

> Isn't that an issue with *any* session-based
> methodology?

Absolutely. It just amazes me how many people still run into it and are
baffled by the strange behavior.

Mark

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] model driven versus domain object property

2007-02-24 Thread Dave Newton
--- Mark Menard <[EMAIL PROTECTED]> wrote:
> Be careful with the ScopedModelDriven method. Have
> you checked that it works with a user running two 
> concurrent copies of your wizard, if you allow it?
> (Think tabbed browsing.)

Isn't that an issue with *any* session-based
methodology?

d.



 

Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[S2] doubt working with dates in brazilian format (dd/MM/yyyy)

2007-02-24 Thread Daniel Amadei

Hi All,

I'm working with dates but I'm not able to convert dates to be
displayed automatically using the brazilian format (e. g. dd/MM/).
Also I'd like to know how to validate my dates using this format and
not the standard.

If somebody could point me to the docs where I can find some info
about those 2 items it would be great!

BTW: I`m not using the datetimepicker.

Thanks,
Daniel

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



s2 - Client Validation in simple theme

2007-02-24 Thread Pedro Herrera

I have a little legacy system to migrate to struts2. I want do use validation
features from struts2. I need to use the theme =  simples because I don´t
want to change in the layout(tags tr´s, divs in other themes). The
validation on server side is fine, but how I put the validation on cliente
side(browser) ??

Thanks in advanced

Pedro Herrera
-- 
View this message in context: 
http://www.nabble.com/s2---Client-Validation-in-simple-theme-tf3284328.html#a9135675
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



how to read request parameter in windows-1257 encoding

2007-02-24 Thread ros

Hi!

I have to read form post in windows-1257 encoding:



  

http://localhost:8080/myStruts2Action.html";
method="post">






the request field AAA should be PAĻIV but it is PA?V

How I can read special characters like Ļ Ā Ī and others?

I use Jetty web server and struts2.

Thanks!

-- 
View this message in context: 
http://www.nabble.com/how-to-read-request-parameter-in-windows-1257-encoding-tf3284137.html#a9135097
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[s2] Integrating Struts 2 and Groovy

2007-02-24 Thread Mark Menard
I have spent the last week working on integrating Struts 2 and Groovy. I
started writing my actions in Groovy last week. This is great, but I want to
eliminate the compile restart cycle for general editing and debugging.

My first attempt was to extend the Struts 2 Spring plugin, to use a
GroovyClassLoader to load my action scripts. This failed due to issues with
AspectJ. (Spring uses AspectJ to do declarative transactions.) (Thread on
Spring forum: http://forum.springframework.org/showthread.php?t=33896)

So, I abandoned that and decided to patch Spring to allow for "prototype"
script beans. (The default implementation of Spring scripting only has
support for singleton beans.) This works fine. I have submitted the patch
via the Spring JIRA, so we'll see what happens there.
(http://opensource.atlassian.com/projects/spring/browse/SPR-3161)

At this point I have scripted actions and service beans in Groovy, with
automatic reloading working. (http://www.vitarara.org/cms/node/98)

Now, I'd like to work on the development environment a bit. Right now I have
to run 'mvn compile' to copy my .groovy files from my src/main directory to
the target/classes directory for Jetty to see them. I'd prefer that Jetty
add src/main/groovy to its classpath. This way I could just edit my groovy
file, save, then reload in my browser. Quick, clean, and easy.

I have looked at the Jetty docs
(http://www.mortbay.org/maven-plugin/howto.html), but nothing here seems
obvious. I've tried setting the classesDirectory, but I need it to watch
both target/classes and src/main/groovy, and this option seems to only take
one directory. I've also tried scanTargets, but that doesn't actually seem
to be added to the classpath.

If anyone has ideas I'd be happy to hear them.

Thanks,

Mark

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] model driven versus domain object property

2007-02-24 Thread Mark Menard
On 2/23/07 7:31 PM, "Dave Newton" <[EMAIL PROTECTED]> wrote:

> --- bob <[EMAIL PROTECTED]> wrote:
>> For instance, if my domain object is Customer, what
>> would be the consequences and benefits of using
>> modelDriven with a getModel() that returns an
>> instance of Customer, versus having a getCustomer()
>> property on my action object?
> 
> The model is put on the stack so you can directly
> access its properties. ScopedModelDriven is handy as
> well; it allowed me to implement some minor wizard-y
> funtionality very easily. If your model changes the
> presentation side doesn't (except for property
> changes, obviously, and the Action may change).
> 
> I liked it for ScopedModelDriven, although I
> discovered it after I had already implemented the
> exact same functionality in one of my apps :/
> 
> I'd also like to know of any other advantages of
> ModelDriven; I've had the same question in the back of
> my mind for awhile.

Dave,

Be careful with the ScopedModelDriven method. Have you checked that it works
with a user running two concurrent copies of your wizard, if you allow it?
(Think tabbed browsing.)

Mark

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ANN] Struts 2.0.6 GA release available

2007-02-24 Thread Mark Menard
On 2/23/07 8:22 PM, "Ted Husted" <[EMAIL PROTECTED]> wrote:

> The Apache Struts group is pleased to announce that Struts 2.0.6 is
> available as a "General Availability" release. The GA designation is
> our highest quality grade.

Congratulations to all! I have been happily using S2 since 2.0.1. It's been
a pleasure.

Mark

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]