Internationalization - identification of client request by request header - accept-language ??

2007-12-29 Thread Raghuveer
How the struts framework does identifies the client language and there by uses the Message Resources for Internationalization.. request.getHeader(accept-language) is giving the string as below accept-language-pl,en-us;q=0.7,de;q=0.3 I need to identify if my request is from polish

Re: Global Values and the Value Stack

2007-12-29 Thread Chris Pratt
On Dec 28, 2007 8:56 PM, Dave Newton [EMAIL PROTECTED] wrote: Just out of curiosity, why wouldn't you just put them in the application context? They're not global to the application. (*Chris*) - To unsubscribe, e-mail:

form submission doesn't work with ajax theme

2007-12-29 Thread Jeancarlo
Hello, I'm using struts version 2.0.11 and dwr. The field validation and form submission and everything work fine (I'm using the tag s:head / without any parameters). It did work until I wanted to use the autocomplete struts tag. To use that I need to add theme=ajax in the s:head tag, right?

Re: OGNL and action property

2007-12-29 Thread stanlick
I think this is a cleaner way to do this. s:hidden key=brand/ Scott Stanlick

Character encoding problems with Struts 2 and Freemarker or Velocity

2007-12-29 Thread Jonny Cavell
I am setting default_encoding=UTF-8 in freemarker.properties, and leaving the struts encoding in default.properties untouched (i.e. struts.i18n.encoding=UTF-8). When I use a struts action to forward to a test page with Spanish text, without specifying the type (thus defaulting to jsp), it outputs

RE: form submission doesn't work with ajax theme

2007-12-29 Thread Martin Gainty
JVM? TC version? Struts version? implemented DWR? pleas display servlet configurationalso it would be helpful to see contents of dwr.xml display the contents of JS functions available athttp://localhost:8080/[YOUR-WEBAPP]/dwr/ This troubleshhooting page may help somewhat with possible

RE: Character encoding problems with Struts 2 and Freemarker or Velocity

2007-12-29 Thread Martin Gainty
http://www.opensymphony.com/webwork/wikidocs/WebWork%20Freemarker%20Support.html default-encoding needs to be set to ISO-8859-1 in freemarker.properties more specifically: default_encoding=ISO-8859-1 template_update_delay=5 locale=no_NO

Re: Display tag and target div

2007-12-29 Thread Raghuveer Rawat
Hi, Looks like this issue can be resolve with s:div tags listenTopics like below.. s:div href=%{recMessages} theme=ajax label=Received Messages id=1 listenTopics=/recMessagesNext /s:div But how should I publish this topic for my DisplayTag Table... Any thought..If someone has resolve

Re: [S2] Action tag along with param tag

2007-12-29 Thread Laurie Harper
Justin Frost wrote: Am I writing this correctly? s:form action=LocationAddNode validate=false id=LocationAddNode name=LocationAddNode s:textfield name=locationNode.location.id label=Location Id maxlength=20 / s:action name=FillSelectBoxes executeResult=true s:param