Re: Benefits of using Filter as front controller

2012-08-14 Thread Struts Two
y, interpretive" sections of spec in struts 2 much like IBM. There is no "interpretation" on whether a Servlet can/should be used to server resource but when it comes to filters there is. And quite rightfully so,  as there may be darn compelling reasons to do so, since things quit

Re: Benefits of using Filter as front controller

2012-08-14 Thread Struts Two
front Web server. WebSphere goes through web.xml files and uses Servlet URL mappings to generate the plugin file for resource mapping and filters are ignored. Even when I opened a pmr, I was told by support that struts 2 deviates from the Spec. when you pick a framework, you got to be aware

Regression from WW-3810? NPE in UrlSet.includeClassesUrl(UrlSet.java:199)

2012-06-08 Thread struts . rgm
Like I said a couple of days ago, this doesn't actually seem to hurt anything, but I thought that Łukasz might want to have a look at this exception. Has anyone else seen this with 2.3.4 or newer snapshots? -rgm On Jun 6, 2012, at 2:23 PM, struts@spamgourmet.com wrote: > Runnin

NPE at at xwork2.util.finder.UrlSet.includeClassesUrl(UrlSet.java:199)

2012-06-06 Thread struts . rgm
Running Struts 2.3.4 build #481 on JBoss 5 I'm getting the following NullPointerException on startup. It seems benign, and happens with devMode either true or false. 2012-06-06 12:50:18,539 INFO [com.opensymphony.xwork2.config.impl.DefaultConfiguration] (HDScanner) Overriding pro

Re: Dynamic Attributes can't be boolean? StrutsUtil.translateVariables exception

2012-05-25 Thread struts . rgm
berModel.unwrapArguments(SimpleMemberModel.java:123) at freemarker.ext.beans.SimpleMemberModel.unwrapArguments(SimpleMemberModel.java:100) at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:106) On May 25, 2012, at 1:58 PM, struts@spamgourmet.com wrote: > After installing Struts 2.3.4, it appears that dynamic attr

Dynamic Attributes can't be boolean? StrutsUtil.translateVariables exception

2012-05-25 Thread struts . rgm
After installing Struts 2.3.4, it appears that dynamic attributes must be strings now? I've modified text.ftl in my custom theme like this (diff output): 23c23 < --- > 46,54d45 < <#if parameters.required?default(false)> < required="true"<#rt/> <

Bug? 2.3.3 struts2-blank.war fails to deploy on JBoss 5

2012-05-07 Thread struts . rgm
I recently tried to upgrade our app from 2.3.1.2 to 2.3.3, but got an error in startup. To determine if it was "just me" I tried deploying the struts2-blank.war file in my JBoss 5.1 system, but got the attached error. It seems that the application cannot load "struts-defau

Re: Fuzz testing and ognl.MethodFailedException - Freemarker results can't use integer types in compare operations?

2012-03-15 Thread struts . rgm
Errors() && fieldErrors?keys?seq_contains("userGroupId")) > ... do something with userGroupId as an integer ... Sincerely, rgm On Mar 15, 2012, at 11:09 AM, struts@spamgourmet.com wrote: > I've got accessor/mutators on my action for an integer ID parameter

Fuzz testing and ognl.MethodFailedException - Freemarker results can't use integer types in compare operations?

2012-03-15 Thread struts . rgm
I've got accessor/mutators on my action for an integer ID parameter like this: NewUserAction { int _userGroupId = -1; // execute, validate, other methods setUserGroupId( int id ) { this._userGroupId = id; } getUserGroupId() { return _userGroupId; } } But when I

Re: File download fails in Firefox and Chrome

2012-01-13 Thread Struts Two
Thank you very much for your reply. Your suggestion worked though in IE the file is opened in a new tab as opposed to save but it works on Firefox. - Original Message - From: Eric Lentz To: Struts Users Mailing List Cc: Sent: Friday, January 13, 2012 11:22:02 AM Subject: Re: File

Re: File download fails in Firefox and Chrome

2012-01-13 Thread Struts Two
)); in the action as opposed to configuration. I was working with no issue until a month ago for over a year and suddenly it has stopped working - Original Message - From: Eric Lentz To: Struts Users Mailing List Cc: Sent: Friday, January 13, 2012 11:22:02 AM Subject: Re: File dow

File download fails in Firefox and Chrome

2012-01-13 Thread Struts Two
Hi everyone: I have an application in Struts 2.1.8 that has been running for the past two years with no issue. However; recently I have noticed the all file downloads on Firefox and Chrome fails while IE is okay. I know it has something with content-dispositon but  I have not been able to fix

Re: struts2 in weblogic 10.3

2011-11-01 Thread Struts Two
Hi: I know based on my experience that I had quite some trouble running struts 2 on WebSphere which led to opening quite a few PMRS with IBM. And in many occasions it happened to be the issue with existing struts 2 design that breaks the Spec such as  using filters to server resources and etc

freemarker radio tag with map literals [solved, kind of]

2011-10-13 Thread struts . rgm
I'm having a hard time using the freemarker syntax radio tag. This works fine: <@s.radio name="cars" list=[ "ford", "toyota" ] /> But using a literal map does not: <@s.radio name="cars" list={ "ford" : "mustang", "toyota":"prius" } /> The web page renders: "freemarker.ext.beans.HashAdapter$1$1$

Example for optgroup doesn't work

2011-09-19 Thread struts . rgm
Regarding: http://struts.apache.org/2.2.3/struts2-core/apidocs/org/apache/struts2/components/OptGroup.html and http://struts.apache.org/2.2.3.1/docs/optgroup.html The example given at the bottom, when translated in to Freemarker tag syntax, doesn't work. Here's my FM version: <@s.select label=

Documentation: Checkbox "false" injection

2011-07-20 Thread struts . rgm
The "using checkboxes" page at http://struts.apache.org/2.2.3/docs/using-checkboxes.html says: The framework automatically tracks the checkboxes used by a form (so you don't have to). If a checkbox is missing, a default value for the checkbox (usually false) is injected. The checkbox

FieldErrors for a specific form ID

2011-07-19 Thread struts . rgm
form-specific data structure for value and error info. --> <#list [ 1, 2, 3 ] as idx > <@s.form id="ff${idx?c}"> <#-- Struts does not generate unique IDs automatically in this case, so for valid HTML you must provide the ID explicitly. No

Using string literals or references to objects in @s.url?

2011-07-12 Thread struts . rgm
Which of these is more correct when using Struts2 freemarker tag dynamic attributes for @s.url: <@s.url action="viewitem" itemid="${item.itemid?c}" /> or <@s.url action="viewitem" itemid=item.itemid /> I've been favoring the second example, since it doesn't require me to remembe

Documentation styles missing some classes?

2011-07-11 Thread struts . rgm
This could be intentional, but I believe the "space.css" style stylesheet lost the CSS class definition for ".tipMacro." This makes the docs look a little less nice in v2.2.3 than in v2.0.14. Compare the green package heirarchy tip boxes between: http://struts.apache.org/2.0.14/docs/loca

Re: Namespace sitemesh decorators? Namespace from freemarker result?

2011-07-05 Thread struts . rgm
Dear Roland-from-last-week, The normal ConfigDecoratorMapper does what you want. Since namespaces in Struts look like a "path" in the URL, you can simply apply a decorator to the pattern for the namespace. For example, in your decorators.xml, do: /yournamespace/*

Namespace sitemesh decorators? Namespace from freemarker result?

2011-06-28 Thread struts . rgm
I have two namespaces, "admin" and " (the default namespace). I'd like to re-use the same result template for both, but decorate them differently. My templates declare their decorator using the meta tag, like this: Then, in decorators.xml, I have defined: I'd like to generalize this to h

RedirectAction supports "anchor" param

2011-06-21 Thread struts . rgm
I've opened this minor documentation issue as: https://issues.apache.org/jira/browse/WW-3652 Affected files will be: src/core/src/main/java/org/apache/struts2/dispatcher/ServletActionRedirectResult.java (needs javadoc updates) -Roland

Re: optgroup supporting cssClass? or dynamicAttributes?

2011-06-20 Thread struts . rgm
https://issues.apache.org/jira/browse/WW-3209 I wonder if I've just run into this unresolved issue. On Jun 20, 2011, at 5:37 PM, struts@spamgourmet.com wrote: > Is it possible for optgroup to support some of the attributes that other > UIBeans have, such as "cssClass&qu

optgroup supporting cssClass? or dynamicAttributes?

2011-06-20 Thread struts . rgm
Is it possible for optgroup to support some of the attributes that other UIBeans have, such as "cssClass" and "id" ? I created my own theme and edited optgoup.ftl to check for parameters.cssClass??, but it appears that this is not enough. Perhaps some of the universal HTML attributes should be

Re: jsp caching problem

2011-06-13 Thread struts . rgm
n 13, 2011, at 10:46 AM, Jason Pyeron - jpye...@pdinc.us wrote: >> -Original Message- >> From: Arpan >> Sent: Monday, June 13, 2011 11:41 >> To: Struts Users Mailing List >> Subject: jsp caching problem >> >> Hi All, >> >> Do any o

Re: Custom TextProvider -- fall-back not working?

2011-06-08 Thread struts . rgm
vide and correctly initialize a custom TextProvider." It could really benefit from a statement like ".. and here's how: Your text provider is injected " On Jun 8, 2011, at 2:17 PM, struts@spamgourmet.com wrote: > This is a question that has come up before, b

Custom TextProvider -- fall-back not working?

2011-06-08 Thread struts . rgm
ies" files, and gets its resources from the database. If the resource is not found, then fall-back to the normal Struts2 resolution chain of checking action, interface, package, global / defaults. Theory / Help: Struts 2 supports hooking your own TextProvider implementations in by registering

Re: Hash tags

2011-06-01 Thread struts . rgm
false, the location param will not be parsed for Ognl expressions * anchor - optional. Also known as "fragment" or colloquially as "hash." You can specify an anchor for a result. On Jun 1, 2011, at 12:24 PM, Jason Pyeron - jpye...@pdinc.us wrote: >> -Original

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

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

Re: Migration from 2.1.8 to 2.2.1.1

2011-03-30 Thread Struts Two
It is not the question whether it concerns me or not, it is the process that some (big) companies follow. When we started the projected in struts 2, we involved the legal team with regard to licenses involved, we got the approval. Now before I try to upgrade my struts 2 which involves a new

Re: Migration from 2.1.8 to 2.2.1.1

2011-03-30 Thread Struts Two
will cause quite a few issues at least from legal perspective. is there any version of javaassist or an alternative library with Apache 2 license? does existing javaassit licenses limits or puts extra restriction on Apache 2 license that comes with struts 2? - Original Message

Migration from 2.1.8 to 2.2.1.1

2011-03-29 Thread Struts Two
Hello All: is Migration from 2.1.8 to 2.2.1.1 straightforward involving only jar files replacement or there is more to it? I remember when I migrated from 2.0.14 to 2.1.8 I had to go through a wiki page for migration to work, is there such WIKI page? I am only using tiles plugin and no other pl

Localization for SiteMesh decorators

2011-01-28 Thread struts . rgm
This seems like a documentation bug. This page: http://struts.apache.org/2.2.1.1/docs/localization.html Says "Internationalizing SiteMesh decorators is possible, but there are quirks. See SiteMesh Plugin for more." Unfortunately, the link in the documentation is invalid. After using Google to f

Re: cssClass attribute with <@s.textfield> ignored when inputError happens

2010-12-13 Thread struts . rgm
I did try that -- but unless simple/text.ftl changes, there will *still* be an unwanted "class='inputError'" before my cssClass and cssErrorClass attributes are handled by css.ftl. Your example produces the following broken tag: It's closer -- but I believe that a change needs to be made in t

cssClass attribute with <@s.textfield> ignored when inputError happens

2010-12-13 Thread struts . rgm
cssClass="prop-port" /> When a validation error occurs, I end up with a form input element like: I would expect one single class attribute containing both class values separated by a space, like class="prop-port inputError" I'm using Struts 2.2.1. I do see code

Running external Javascript files through Struts/Freemarker -- access to ActionContext and ValueStack?

2010-11-12 Thread struts . rgm
nal files such that they are separate GET requests from the browser, but are still parsed through the Sitemesh-Freemarker filters and servlets, with access to the value stack? If I simply <#include "*/util.js.ftl" /> then the content is inlined -- this is not what I'm afte

export to excel - displaytag

2010-10-25 Thread Struts User
Hi all, I am trying to export data to excel using diplaytag. I am able to save the excel file but the file is empty. Any help is greatly appreciated. I am setting the export filter and display-tag properties as below. *web.xml:* ResponseOverrideFilter org.displaytag.filter.ResponseOver

Re: AW: [S2] trim textfield

2010-09-15 Thread mailtolouis2020-struts
Thanks! From: Adrian Ost To: Struts Users Mailing List Sent: Tue, September 14, 2010 4:26:55 PM Subject: AW: [S2] trim textfield This one worked for me. public class StringTrimInterceptor extends AbstractInterceptor { /* (non-Javadoc) * @see

Re: [S2] trim textfield

2010-09-14 Thread mailtolouis2020-struts
Hi Dave, Hope u can commit it when u free, it quite useful though From: Dave Newton To: Struts Users Mailing List Sent: Tue, September 14, 2010 3:55:03 PM Subject: Re: [S2] trim textfield Not by default. I'd probably just write an interceptor with opt

[S2] trim textfield

2010-09-14 Thread mailtolouis2020-struts
Hi, In struts2 is there anyway to set to trim the value in textfield or textarea when it set to action/model? Regards LV

redirect with parameter in struts

2010-08-23 Thread Struts User
Hi, Is it possible in struts1 to include a parameter in the action redirection. If I have a web application say, http://www..xyz.com/welcome.do and I want to redirect it to http://www.xyz.com/welcomeredirect.do?cmp=company1 while value of "cmp" will be assigned dynamically. how can I achieve this?

[S2] warning message

2010-08-20 Thread mailtolouis2020-struts
Hi, When using I got this warning message in the log WARN com.opensymphony.xwork2.ognl.OgnlValueStack.warn:60 - Error setting expression 'struts.token' with value '[Ljava.lang.String;@16b8a16c' WARN com.opensymphony.xwork2.ognl.OgnlValueStack.warn:60 - Error setting expression 'struts.token.

Re: [S2] 2.2.1 Appended .xhml to back of the url

2010-08-17 Thread mailtolouis2020-struts
rom: Dave Newton To: Struts Users Mailing List Cc: lukasz.len...@gmail.com Sent: Tue, August 17, 2010 11:23:34 AM Subject: Re: [S2] 2.2.1 Appended .xhml to back of the url Okay, so extrapolate, and try setting it to an empty string. On Tue, Aug 17, 2010 at 6:20 AM, wrote: > Hi, > >

Re: [S2] 2.2.1 Appended .xhml to back of the url

2010-08-17 Thread mailtolouis2020-struts
Hi, This solution not work for me, because it now append .action to back instead of xhtml. This causing all my spring security filter not work. Regards LV From: Lukasz Lenart To: Struts Users Mailing List Sent: Tue, August 17, 2010 10:41:19 AM Subject: Re

Re: [S2] 2.2.1 Appended .xhml to back of the url

2010-08-17 Thread mailtolouis2020-struts
Hi, Here is the constant I define in struts.xml In struts.xml I also have some global result/exception defined, and some default package define. Regards Louis From: Lukasz Lenart To: Struts Users Mailing List

[S2] 2.2.1 Appended .xhml to back of the url

2010-08-17 Thread mailtolouis2020-struts
Hi, After upgrade to 2.2.1, struts appended .xhtml to the url, is there anyway to turn it off like what 2.1.8.1 was? Thanks LV

Re: [ANN] Struts 2.2.1 GA release available

2010-08-17 Thread mailtolouis2020-struts
The struts-2.2.1-src.zip source link is wrong From: Lukasz Lenart To: Struts Users Mailing List ; em...@encs.concordia.ca Sent: Mon, August 16, 2010 8:12:01 PM Subject: Re: [ANN] Struts 2.2.1 GA release available 2010/8/16 Emi Lu : > Cannot find the f

[S2] validation short-circuit

2010-08-11 Thread mailtolouis2020-struts
Hi, In the validation, short-circuit is for when the validation failed, the following not get rules not get evaluate. Is there anything similar like this, but when one field validation pass, the rest no need to get evaluate? Regards LV

Re: Mix SpringMVC 3.0 with Struts2

2010-07-30 Thread Struts Two
And why do you want to mix Struts 2 with Spring 3.0MVC? It is understandable if you want to use Spring DI with struts 2, however; if you already have Spring 3MVC, I think you should stick to it. - Original Message From: Frans Thamura To: Struts Users Mailing List Sent: Thu, July

Struts2 + REST - how to include/exclude properties of the model

2010-07-26 Thread mailtolouis2020-struts
Hi, I know in json result type we can configure something like this total, page, records, gridData.*, userdata.* Can we do the same in rest controller using annotation?

Re: REST URLs

2010-07-26 Thread mailtolouis2020-struts
Thanks Kevin From: Kevin Jones To: Struts Users Mailing List Sent: Mon, July 26, 2010 3:05:30 PM Subject: Re: REST URLs I've heard back from Jeromy Evans. He's happy for me to post the code. Unfortunately it may not be until the weekend as I'm

Accessing scoped variables via tags

2010-07-14 Thread mailtolouis2020-struts
Hi, In this document https://cwiki.apache.org/WW/application-session-request-objects-in-jsp.html That is not work But and this are work. I think the doc need to update.

Re: [S2] post JSON to REST

2010-07-12 Thread mailtolouis2020-struts
From: Frans Thamura To: Struts Users Mailing List Sent: Mon, July 12, 2010 3:51:49 PM Subject: Re: [S2] post JSON to REST We use http post But dunno how to send via json rpc (m) -Original Message- From: mailtolouis2020-str...@yahoo.com Date: Mon, 12 Jul 2010 07:29:53 To: Struts

[S2] post JSON to REST

2010-07-12 Thread mailtolouis2020-struts
Hi, Sorry if this is double posted, because I didn't receive the mail which I post. I'm new to the struts2 rest plugin, I hope someone can help me. I'm trying to post a json data to a UserController, I can see create method is invoked, but the json data is not set to the UserController. He

Re: Struts time picker does not render in IE7/IE8

2010-06-29 Thread Struts Two
What is meant is do not use "struts dojo plugin". However, you can use dojo framework (which is a great framework) with struts 2 - Original Message From: Dale Newfield To: Struts Users Mailing List Cc: john.vargh...@smartonline.com Sent: Tue, June 29, 2010 10:36:08 AM S

Re: Upgrade from 1.2 to 1.3x

2010-05-25 Thread Struts Two
Look at the following page for migration from 1.2 to 1.3: http://wiki.apache.org/struts/StrutsUpgradeNotes12to13 - Original Message From: Søren Blidorf To: struts-u...@jakarta.apache.org Sent: Tue, May 25, 2010 6:23:51 AM Subject: Upgrade from 1.2 to 1.3x Hi. I am upgrading my

Re: Websphere/Struts issue with form based authentication

2010-05-15 Thread Struts Two
The problem should be due to the fact struts two breaks Servelt 2.4 spec by using a filter to access resources as opposed to servlet. I had a similar issue. Search for posting with title There is no Action mapped for namespace / and action name j_security_check I think I should have mentioned

RE: Struts2 on Websphere portal 6.1.0.0

2010-04-22 Thread Struts Two
http://old.nabble.com/Struts2-on-Websphere-portal-6.1.0.0-tp18761735p28325070.html > Sent from the Struts - User mailing list archive at > Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.a

RE: Struts2 on Websphere portal 6.1.0.0

2010-04-19 Thread Struts Two
When you run struts 2 on Websphere 6.1, there are a few properties you need to add to your Server custom properties. Without these properties set, you will not be able to run struts2. IBM portal server is bacisally and enterprise file that runs on Websphere application server, and I think you

STRUTS2 + REST + SPRING Problem

2010-04-13 Thread mailtolouis2020-struts
Hi All, Our requirement is use to use STRUTS + REST + SPRING. We are stuck with the below problem: Rest controllers are not able to autowire the spring beans. So i am not able to inject the spring beans to the rest controllers that are created using convention plugin. 1) We configured

Re: Websphere 6.1 and Struts 1.3

2010-04-05 Thread Struts Two
I am running 1.3.10 on WAS 6.1 with no issues. Have installed the latest Websphere fixpacks and test. However; if you struts version is 1.1 or 1.2, you may need to add the following property: prependSlashToResource = true to custom properties of your server. --- On Mon, 4/5/10, Darshan

Re: Struts 2 - Global Validation

2010-02-04 Thread mailtolouis2020-struts
A To: Struts Users Mailing List Sent: Wed, February 3, 2010 8:27:27 PM Subject: Struts 2 - Global Validation Hi, Any idea how to do global validation in Struts 2 ? For example, in Struts 1, I can define all global regular expression validations in a file called validation-regexpr.xml su

Re: [S2] Validation - globally define regex

2010-01-22 Thread mailtolouis2020-struts
Hi, Could someone tell me does struts2 support it? Regards LV From: "mailtolouis2020-str...@yahoo.com" To: Struts Users Mailing List Sent: Thu, January 21, 2010 12:24:13 PM Subject: [S2] Validation - globally define regex Hello, In struts 1, I

[S2] Validation - globally define regex

2010-01-21 Thread mailtolouis2020-struts
Hello, In struts 1, I can define the regex in one file like this alphaNumeric [A-Za-z0-9]* and use like this in mask ${alphaNumeric} Could anyone tell me how to achieve this in Struts 2 ? I've this in validation rule and I want to put the regex in another variable, I tried used

Re: [S2] Does global exception mapping work with interceptor?

2010-01-13 Thread mailtolouis2020-struts
Thanks Gabriel, it is working now! From: Gabriel Belingueres To: Struts Users Mailing List Sent: Tue, January 12, 2010 7:06:59 PM Subject: Re: [S2] Does global exception mapping work with interceptor? Is your custom interceptor _before_ the exception

[S2] Does global exception mapping work with interceptor?

2010-01-12 Thread mailtolouis2020-struts
Hello, I've defined a global exception mapping and global result, when Exception happen it will go to my custom error page. It work fine in Action if Action throw any exception. But if my interceptor throw exception, it won't go to my error page. Is there anyway to make it work? Thanks LV

Re: drop down list auto suggest feature using Struts1.1/JSP/Javascript

2010-01-11 Thread Struts Two
You can also use Dojo with Struts 1. I am currently using dojo 1.3.2 with struts 1.3.10 with no issues whatsoever. --- On Mon, 1/11/10, Paul Benedict wrote: > From: Paul Benedict > Subject: Re: drop down list auto suggest feature using > Struts1.1/JSP/Javascript > To: "Str

Re: Is there any way in Struts2 to handle session sharing accross browsers

2009-12-29 Thread Struts-User
ay-in-Struts2-to-handle-session-sharing-accross-browsers-tp26964416p26964689.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e

Is there any way in Struts2 to handle session sharing accross browsers

2009-12-29 Thread Struts-User
n, and session data is of admin. This problem is seen only when browser windows are opened by CTRL+N. Please suggest -- View this message in context: http://old.nabble.com/Is-there-any-way-in-Struts2-to-handle-session-sharing-accross-browsers-tp26964416p26964416.html Sent from the Struts - User m

Re: [S2] can't use ENUM type

2009-12-23 Thread mailtolouis2020-struts
Hi, Thanks,my getComboBox accepting ComboBoxType, and I use @package.path.comboboxt...@sex is working fine now. Regards LV From: Steven Yang To: Struts Users Mailing List Sent: Wed, December 23, 2009 1:26:48 AM Subject: Re: [S2] can't use ENUM type

[S2] can't use ENUM type

2009-12-22 Thread mailtolouis2020-struts
Hi, I got problem to using ENUM type in , here is my code: but if I change to use String (e.g: list="getComboBox('SEX')"), and do the conversion in the action then it working fine. Is it a bug? Regards LV

Re: [Struts 2.1.8] Dojo with Tiles: works or not ?

2009-12-17 Thread Struts Two
I am using struts 2.1.8 with Tiles 2.0.5 and Dojo toolkit 1.3.2 [not struts dojo plugin] and I have no problem. --- On Thu, 12/17/09, Celinio Fernandes wrote: > From: Celinio Fernandes > Subject: [Struts 2.1.8] Dojo with Tiles: works or not ? > To: "Struts Users Mailing Lis

Re: [S2] i18n not using default bundle

2009-12-11 Thread mailtolouis2020-struts
I think that is not how the resource bundle work, it is better always set the value without the language suffix resources is just a folder name where I store my properties file. From: Saeed Iqbal To: Struts Users Mailing List Sent: Fri, December 11, 2009 9

Re: [S2] i18n not using default bundle

2009-12-11 Thread mailtolouis2020-struts
yes, I did have so to make it work, what I do now is in my resources folder, I'll have global-message.properties, global-message_en.properties and global-message_zh_CN.properties (an empty file) From: Saeed Iqbal To: Struts Users Mailing List Sent

Re: [S2] i18n not using default bundle

2009-12-10 Thread mailtolouis2020-struts
Thanks. That is what I plan to do if that is nothing to do with struts. Regards LV From: Alex Siman To: user@struts.apache.org Sent: Thu, December 10, 2009 4:54:26 PM Subject: Re: [S2] i18n not using default bundle The trick is simple: create an empty file

Re: [S2] i18n not using default bundle

2009-12-10 Thread mailtolouis2020-struts
From: Saeed Iqbal To: Struts Users Mailing List Sent: Thu, December 10, 2009 2:01:43 PM Subject: Re: [S2] i18n not using default bundle Set the constant variable in struts.xml or struts.properties variable for i8nl On Thursday, December 10, 2009, carl ballantyne wrote: >

[S2] i18n not using default bundle

2009-12-10 Thread mailtolouis2020-struts
Hello, I got a doubt on struts 2 i18n. I'm using S2. 2.1.8.1. I got 2 properties in my application: global-message.properties(store Chinese Language) global-message_en.properties (store English Language) When I run my application, and set my browser language to Chinese (zh-CN), I e

Re: How to get the key name

2009-12-03 Thread mailtolouis2020-struts
Ok, now I know what you mean the key, you mean ${getText(label.name)} ? But that is not that I want, if I hard code the key name there, that defeat the whole reuse purpose. I want something similar like fieldName but for key. fieldName is a constant variable from struts, when I write the code

Re: How to get the key name

2009-12-03 Thread mailtolouis2020-struts
No, I changed my property to this error.required = ${getText(key)} is required. It is not working. From: Saeed Iqbal To: Struts Users Mailing List Sent: Thu, December 3, 2009 9:56:29 AM Subject: Re: How to get the key name Yes key is in struts. See the docs

Re: How to get the key name

2009-12-03 Thread mailtolouis2020-struts
From: Saeed Iqbal To: Struts Users Mailing List Sent: Thu, December 3, 2009 2:13:20 AM Subject: Re: How to get the key name You use the key attribute instead of label On Wednesday, December 2, 2009, Siddiq Syed wrote: > > Try this, > > > > > -siddiq. > >

Re: [S2] xhtml theme freemarker syntax

2009-12-03 Thread mailtolouis2020-struts
Thanks for the info. From: Greg Lindholm To: Struts Users Mailing List Sent: Wed, December 2, 2009 8:55:51 PM Subject: Re: [S2] xhtml theme freemarker syntax Easy to find in the Freemarker docs. http://freemarker.org/docs/ref_directive_t.html On Wed, Dec 2

[S2] xhtml theme freemarker syntax

2009-12-02 Thread mailtolouis2020-struts
Hi, I'm trying to modify xhtml theme to suite our need, but I'm not familiar with freemarker. Could someone explain these few tags mean? <#rt/> <#lt/> <#t/> Regards LV

Re: textfield label localized

2009-11-28 Thread mailtolouis2020-struts
Hi, Thanks for the answer, both are working now. Regards LV From: KamHon Eng To: Struts Users Mailing List Sent: Sat, November 28, 2009 9:41:32 AM Subject: Re: textfield label localized or shoud working On Sat, Nov 28, 2009 at 4:53 AM, wrote: >

Re: textfield label localized

2009-11-28 Thread mailtolouis2020-struts
Hi, Thanks, its work now by using key. Regards LV From: Saeed Iqbal To: Struts Users Mailing List Sent: Sat, November 28, 2009 1:54:48 AM Subject: Re: textfield label localized There are 2 ways to go about this 1) within Struts tags use key=""

textfield label localized

2009-11-27 Thread mailtolouis2020-struts
Hi, Can someone tell me how to make the label use my resource bundle value? I've tried this and both are not working. But this work: in my resource bundle properties file I've this label.name = Name THanks L.V

Re: RE: Adding Json to existing action

2009-10-27 Thread Struts Two
What I meant was either to use Json Plugin for struts 2. Read the following Wiki page: http://cwiki.apache.org/WW/json-plugin.html The JSON plugin is bundled with Struts since 2.1.7. Or you can write your customized Struts 2 Result type for JSON and register it in your struts2.xml for use

Re: Adding Json to existing action

2009-10-27 Thread Struts Two
Hi, > > I need to call an existing struts action within my > application from a > JavaScript function. I thought it might be possible to > create an additional entry in the struts mapping file like > this: > > class="com.mypackage.MyAction" method=&q

Testing Struts Restful Web Services

2009-10-22 Thread struts-restful
is message in context: http://www.nabble.com/Testing-Struts-Restful-Web-Services-tp26008963p26008963.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apac

Re: Struts2 on Websphere 6.1 : 404 errors

2009-10-16 Thread Struts Two
Yes, it is. If you plan to turn on container security, you need another flag as well. --- On Fri, 10/16/09, Raghuveer.V wrote: > From: Raghuveer.V > Subject: Struts2 on Websphere 6.1 : 404 errors > To: user@struts.apache.org > Received: Friday, October 16, 2009, 1:03 PM > Hi Struts2 Users, >

Parameters Interceptor

2009-10-16 Thread struts-restful
I am using the struts-restful default interceptor stack which uses the static params interceptor and the paramters interceptor. The result of using both interceptors is that it is calling setId twice. However if I remove the static params interceptor it does not call setId at all and if I remove

Re: warning from user@struts.apache.org

2009-10-11 Thread Struts Two
Can anyone says why am I getting this warning? What do you exactly mean "messages from you have been bouncing"? --- On Sun, 10/11/09, user-h...@struts.apache.org wrote: > From: user-h...@struts.apache.org > Subject: warning from user@struts.apache.org > To: struts...@

Re: Struts2 2.1.8 MD5 not found

2009-10-10 Thread mailtolouis2020-struts
Thanks Wes, is working fine to me now From: Wes Wannemacher To: Struts Users Mailing List Sent: Sat, October 10, 2009 2:47:19 AM Subject: Re: Struts2 2.1.8 MD5 not found On Monday 05 October 2009 07:37:25 am mailtolouis2020-str...@yahoo.com wrote: > Hi

Re: Servlet filter as front controller

2009-10-08 Thread Struts Two
. --- On Thu, 10/8/09, Wes Wannemacher wrote: > From: Wes Wannemacher > Subject: Re: Servlet filter as front controller > To: "Struts Users Mailing List" > Received: Thursday, October 8, 2009, 1:15 PM > I was thinking about this issue > recently and wondered if simply &g

Re: Servlet filter as front controller

2009-10-08 Thread Struts Two
resource. And anything other than a jsp page need to have a Servlet mapping in order to make it accessible (as per specification). Struts 1 had ActionServlet to which *.action or *.do mapping was done. This sort of deviation from sped is causing some folks issues when it comes to using some

Re: Struts2 2.1.8 MD5 not found

2009-10-05 Thread mailtolouis2020-struts
0-str...@yahoo.com" To: Struts Users Mailing List Sent: Fri, October 2, 2009 4:24:16 PM Subject: Re: Struts2 2.1.8 MD5 not found http://www.apache.org/dist/struts/binaries/struts-2.1.8-all.zip.md5 http://www.apache.org/dist/struts/binaries/struts-2.1.8-a

Re: Struts2 2.1.8 MD5 not found

2009-10-02 Thread mailtolouis2020-struts
http://www.apache.org/dist/struts/binaries/struts-2.1.8-all.zip.md5 http://www.apache.org/dist/struts/binaries/struts-2.1.8-all.zip.asc From: Wes Wannemacher To: Struts Users Mailing List Sent: Friday, October 2, 2009 4:05:39 PM Subject: Re: Struts2 2.1.8

Struts2 2.1.8 MD5 not found

2009-10-02 Thread mailtolouis2020-struts
Hello, Click on the MD5 link for Struts 2.1.8 in http://struts.apache.org/download.cgi#struts218 get this : Not Found The requested URL /dist/struts/binaries/struts-2.1.8-all.zip.md5 was not found on this server. Regards Louis

Re: restful URL issue

2009-09-30 Thread struts-restful
Is a possible reason that it may not be working that I am also using the convention plugin?? struts-restful wrote: > > I also tried this with a / in the namespace so > > @Namespace("test/{id}"} and > @Namespace("/test/{id}"} give a namespace with

Re: restful URL issue

2009-09-30 Thread struts-restful
I also tried this with a / in the namespace so @Namespace("test/{id}"} and @Namespace("/test/{id}"} give a namespace with "". struts-restful wrote: > > One more additional piece of information is that the namespaceMatcher does > contain the compiled

  1   2   3   4   5   >