Re: OT: Arabic Website

2011-06-01 Thread tito
hi, struts Application Resources,Struts locale .. and UTF-8 encoding is the place to start.. also you also have take care of the RTL ( right to left ) layout in ur web app. this explains the RTL > http://www.w3.org/International/tutorials/bidi-xhtml/ regards, Tito Cheriachan http://about.me

OT: Arabic Website

2011-06-01 Thread Zoran Avtarovski
We have a multi-lingual website that we have developed using struts that only uses English and European languages. We'd like to add Arabic to the site and was hoping somebody might have some pointers for where to start. Z.

RE: JSON & ModelDriven

2011-06-01 Thread Martin Gainty
model is somehwhat analogous to the legacy struts1 formbean action contains processing artifacts (such as public String execute()) ModelDriven more closely represents a large bean which can be serialized/deserialized as JSON ResultType (application/json content-type) what does Action contain (th

JSON & ModelDriven

2011-06-01 Thread CRANFORD, CHRIS
>From what I have read; it appears that for an action that implements the ModelDriven interface that the JSON result type is going to attempt to serialized the model object to the JSON stream rather than the action. Is there anyway to override this so that the action is what is returned instead of

Re: Hash tags

2011-06-01 Thread Jeff Black
I would be happy to take on this task.  I recently was "upgraded" and looking for opportunties to dive in. From: "struts@spamgourmet.com" To: user@struts.apache.org Sent: Wednesday, June 1, 2011 12:45 PM Subject: Re: Hash tags Yes, I believe the document should be updated to add an anchor

RE: xwork validation dtd no longer on web (opensymphony.com is down)

2011-06-01 Thread Jonathan.Lewis
I just extracted the file from xwork-core-2.2.1.jar, copied it into WEB-INF and replaced the opensymphony dtd reference with 1. It seems to work like a champ. However, these dtds should be re-hosted somewhere PUBLIC since the opensymphony site is now defunct. Regards, Jonathan Lewis HHS

re: xwork validation dtd no longer on web (opensymphony.com is down)

2011-06-01 Thread Jonathan.Lewis
Hi all, I am wondering which url to point to for my struts 2 validations. The dtd that was hosted on opensymphony.com is no longer in existence. I know that the dtd is included in the xwork jar, but I don't know how to reference it from my xml validation files. http://www.opensymphony.com/xwo

Re: Hash tags

2011-06-01 Thread struts . rgm
Yes, I believe the document should be updated to add an anchor example. As Dave mentioned, I'll file a JIRA ticket for that. Explaining my other sentence, I saw that the extended class also supported the "location" and "parse" parameters in addition to "anchor." However, the constructor for the

Re: Hash tags

2011-06-01 Thread Dave Newton
On Wed, Jun 1, 2011 at 1:24 PM, Jason Pyeron wrote: >> From: struts@spamgourmet.com >> The example at the bottom is clearly intended to be a >> "complete" example, but ignores the attributes supported by >> the extended class: >> >> .../2.2.3/struts2-core/apidocs/org/apache/struts2/dispatcher/S

RE: Hash tags

2011-06-01 Thread Jason Pyeron
> -Original Message- > From: struts@spamgourmet.com > Sent: Wednesday, June 01, 2011 12:59 > To: user@struts.apache.org > Subject: Re: Hash tags > > I tried that first, but it yields > "viewuser#userPreferences.action." I found the answer by > diving into the source code. The key i

Re: Hash tags

2011-06-01 Thread Dave Newton
On Wed, Jun 1, 2011 at 12:59 PM, wrote: > The key insight is that this is called an "anchor" (not a hash). This works: Cool, I don't even know if I ever knew that. > This document should be updated: > http://struts.apache.org/2.2.3/docs/redirect-action-result.html Best ways to go about doing t

Re: Hash tags

2011-06-01 Thread struts . rgm
I tried that first, but it yields "viewuser#userPreferences.action." I found the answer by diving into the source code. The key insight is that this is called an "anchor" (not a hash). This works: viewuser userPreferences This document should be updated: http://struts.apache.org/2.2.3/d

Re: Hash tags

2011-06-01 Thread Dave Newton
On Wed, Jun 1, 2011 at 11:51 AM, wrote: > Does the redirectAction result support [...] a hash tag to append? > > For example, this: > hash="userPreferences">viewuser What happens when you try it? Did you try viewuser#userPreferences? I don't know if that'd work or not, but easy enough to find o

RE: JSON Result Behavior with Struts 2.2.3

2011-06-01 Thread CRANFORD, CHRIS
Please disregard. I found a discussion between Dave, Chris, and Jerry on this very issue and it appears my problem was due to an interceptor placing data on the stack incorrectly thus causing the action not to be on top of the stack which was a code change during the 2.2.3 JSON plugin. After thei

JSON Result Behavior with Struts 2.2.3

2011-06-01 Thread CRANFORD, CHRIS
I recently upgraded to Struts 2.2.3 and noticing that result types of JSON are not behaving the same way as they did before. For example, the following action is setup: --- Action Class --- package com.setech.dw.repair.web.ajax; public class StatusAction implements ActionSupport { private Ma

Hash tags

2011-06-01 Thread struts . rgm
Does the redirectAction result support a parameter or attribute defining a hash tag to append? For example, this: viewuser Might yield: /context/viewuser.action#userPreferences I don't see any such thing on the document: http://struts.apache.org/2.2.3/docs/redirect-action-result.html Tha