Re: Internalization problem: two internalizations for the same key

2008-05-08 Thread Toni Lyytikäinen
Which version of Struts 2 are you using? 2.0.11.1 works fine for me in the same situation. Are you using the i18n interceptor? Also, how did you name your resource files? On Wed, May 7, 2008 at 11:30 AM, Jukka Välimaa [EMAIL PROTECTED] wrote: Hi everyone, I have the following lines in my

Re: html:multibox read but not write

2008-05-08 Thread houser
Thanks for your reply.. I have already changed it by using tag and the JSP pieces of code are displayed.. can give it another look please? houser Laurie Harper wrote: None of the JSP code made it out of your mail client into the message I'm afraid. Try re-posting with your mail program

Re: html:multibox read but not write

2008-05-08 Thread houser
By the way.. to which email address should I post my message using the email program? is it: [EMAIL PROTECTED] or [EMAIL PROTECTED] thanks Laurie Harper wrote: None of the JSP code made it out of your mail client into the message I'm afraid. Try re-posting with your mail program set for

Re: dojo 1.1 in struts 2.0.11 portlets

2008-05-08 Thread tom tom
dojo 1.1 Grid looks very good, but it is still under dojox project, because of that we are thinking twice How flexible the YUI datagrid and how about the integration with Struts 2, Is that grid in beta like dojo grid or ready for production support Thanks, --- Jeromy Evans [EMAIL PROTECTED]

Re: Internalization problem: two internalizations for the same key

2008-05-08 Thread Jukka Välimaa
We're using Struts 2.1.1 and i18n interceptor. Resource files are named ApplicationResources_??.properties . The following values are set for i18n constants: constant name=struts.i18n.encoding value=UTF-8/ constant name=struts.custom.i18n.resources value=ApplicationResources,errors/ It seems like

Re: dojo 1.1 in struts 2.0.11 portlets

2008-05-08 Thread Jeromy Evans
tom tom wrote: dojo 1.1 Grid looks very good, but it is still under dojox project, because of that we are thinking twice How flexible the YUI datagrid and how about the integration with Struts 2, Is that grid in beta like dojo grid or ready for production support Thanks, The YUI datagrid

OGNL

2008-05-08 Thread Adam Hardy
Hi, when the Params interceptor populates my entity beans, it must be setting the member variables directly without using the setters. Is there a way to tell it to use the setters? There is some logic in the setters which it would be good if it executed. Thanks Adam

Re: OGNL

2008-05-08 Thread Jeromy Evans
Adam Hardy wrote: Hi, when the Params interceptor populates my entity beans, it must be setting the member variables directly without using the setters. Is there a way to tell it to use the setters? There is some logic in the setters which it would be good if it executed. Hi Adam, It

Re: OGNL

2008-05-08 Thread Adam Hardy
Jeromy Evans on 08/05/08 09:26, wrote: Adam Hardy wrote: Hi, when the Params interceptor populates my entity beans, it must be setting the member variables directly without using the setters. Is there a way to tell it to use the setters? There is some logic in the setters which it would be

Re: How to build Struts 2.0.11.1?

2008-05-08 Thread Hans-Georg
Thanks for the help! The hint with the property -Dmaven.test.skip=true was sufficient for me to come forward I'm unsatisfied that not all tests are ok but I'll look for that separately. Hans-Georg -- View this message in context:

Re: OGNL

2008-05-08 Thread Jeromy Evans
Adam Hardy wrote: Jeromy Evans on 08/05/08 09:26, wrote: Adam Hardy wrote: Hi, when the Params interceptor populates my entity beans, it must be setting the member variables directly without using the setters. Is there a way to tell it to use the setters? There is some logic in the

Re: s:select problem

2008-05-08 Thread Arpan Debroy
Without listKey and listValue, it just display the whole list. But while displaying doesn't get selected according to the value attribute. My result list directly comes from the JPA query list(please refer the first mail). On Wed, May 7, 2008 at 9:51 PM, Rushikesh Thakkar [EMAIL PROTECTED]

Re: OGNL

2008-05-08 Thread Adam Hardy
Jeromy Evans on 08/05/08 11:41, wrote: Adam Hardy wrote: Jeromy Evans on 08/05/08 09:26, wrote: Adam Hardy wrote: Hi, when the Params interceptor populates my entity beans, it must be setting the member variables directly without using the setters. Is there a way to tell it to use the

Re: Can you set parameters in s:submit using s:param in the tag body?

2008-05-08 Thread Jeromy Evans
Eduardo Dela Rosa wrote: Hi, I was trying to use the s:submit and invoke it with *some *parameters using s:param. i.e., *s:submit ... s:param ../ s:param ../ s:param ../ /submit* However, the parameters don't seem to be getting through to the HttpServletRequest object when interrogated

Re: Can you set parameters in s:submit using s:param in the tag body?

2008-05-08 Thread Steve Akins
Are these parameters static? If they are you could set them up in struts config and get the submit button to direct to a specific action mapping with these parameters defined. Cheers, Steve On Thu, May 8, 2008 at 9:24 PM, Jeromy Evans [EMAIL PROTECTED] wrote: Eduardo Dela Rosa wrote: Hi,

Re: Can you set parameters in s:submit using s:param in the tag body?

2008-05-08 Thread Jeromy Evans
Jeromy Evans wrote: No, that's not supported. It would have to append the parameters to the query string or create post parameters after the specific submit button is pressed. That would need to be implemented using a javascript listener attached to the click or submit event. It's a nice

Re: Struts 2 file upload size validation

2008-05-08 Thread Rubbinio
Yes if the file size is OK everything is fine. At first we used the default stack. Then we took the default and modified it by moving the fileUploadInterceptor below the params interceptor so it would look something like this: interceptor-stack name=ourUploadStack interceptor-ref

Re: How to build Struts 2.0.11.1?

2008-05-08 Thread Lukasz Lenart
Hi, I'm unsatisfied that not all tests are ok but I'll look for that separately. Probably you have problem with DataTimePickerTagTest, if yes, don't borrow, there is some problem with Locale settings to parse data. I've tried to figure what it is, but till now I don't know how to solve the

Injecting Spring Services into Struts 2 Actions

2008-05-08 Thread Asleson, Ryan
Hello, I found this guide to injecting Spring beans into Struts 2 Actions: http://cwiki.apache.org/WW/spring.html According to the red box at the bottom of the document, the Struts 2 Action does not need to be registered with Spring. So far so good. However, I'm a little unclear as to

RE: Injecting Spring Services into Struts 2 Actions

2008-05-08 Thread Relph,Brian
The actions are auto-wired by name by default - so if any of its properties match bean-ids in your spring config, and they have setters, then those properties will get set. The part about declaring the dependencies means you disable the auto-wiring, and declare your actions as spring beans.

Re: tomcat/struts --- flash/.swf hang problem

2008-05-08 Thread john lee
Laurie, tks for your advise. hang forever, browser lockup if use IE but, if use firefox, just nothing happen(return blank screen), but browser not freeze. above test under regular Tomcat, which is http://localhost:8080/sample.html ( it contains sample.swf inside)

Re: Injecting Spring Services into Struts 2 Actions

2008-05-08 Thread Alberto A. Flores
Related to this question, I'm leveraging Spring's use of the @Resource annotation to the private member variable (no setter needed), thus fully relying on Spring's injection mechanism. I supposed it all depends on tight coupling to Spring you want to add. Relph,Brian wrote: The actions are

Re: OGNL

2008-05-08 Thread Adam Hardy
Adam Hardy on 08/05/08 12:21, wrote: when the Params interceptor populates my entity beans, it must be setting the member variables directly without using the setters. Is there a way to tell it to use the setters? There is some logic in the setters which it would be good if it executed. It

html:link and javascript

2008-05-08 Thread umainb
Hello, I have a link in my jsp html:link page=/doNotVerifyList.do?action=delete paramId=phone paramName=resultsList paramProperty=phoneNumberbean:message key=admin.console.verify.numbers.delete//html:link which deletes a record from the list of numbers. When the user clicks on the link

Re: OGNL

2008-05-08 Thread Chris Pratt
How about adding a specific list implementation rather than using a generic list. Then your list implementation can maintain the relationships instead of the action. (*Chris*) On Thu, May 8, 2008 at 7:04 AM, Adam Hardy [EMAIL PROTECTED] wrote: Adam Hardy on 08/05/08 12:21, wrote: when the

Re: s:select problem

2008-05-08 Thread Laurie Harper
Arpan Debroy wrote: I have a JPA query like that Query query = em.createQuery(*SELECT c.name, c.id FROM Group c ORDER BY c.name*); List resultList = query.getResultList(); Have you verified that the query is returning a non-empty list -- i.e. resultList really contains data to

Re: tomcat/struts --- flash/.swf hang problem

2008-05-08 Thread Laurie Harper
That doesn't answer most of my questions. You need to determine what is being sent to the browser (if anything) when it requests the .swf file from your web application, then post details of what you find out along with the relevant configuration details (including web.xml and struts.xml

Re: html:multibox read but not write

2008-05-08 Thread Laurie Harper
Sorry, I don't see a repost with the JSP readable so there's still nothing to take another look at :-/ L. houser wrote: Thanks for your reply.. I have already changed it by using tag and the JSP pieces of code are displayed.. can give it another look please? houser Laurie Harper wrote:

Re: html:multibox read but not write

2008-05-08 Thread Laurie Harper
[EMAIL PROTECTED]; [EMAIL PROTECTED] would be the customer support channel for the Nabble list browser/forum system. L. houser wrote: By the way.. to which email address should I post my message using the email program? is it: [EMAIL PROTECTED] or [EMAIL PROTECTED] thanks Laurie Harper

Transfer user to login page on session timeout

2008-05-08 Thread bhaarat Sharma
Hello I am using struts 1 I am working on some legacy code. Have a requirement where the user should be fwded to the login page after session times out. Currently there are 100's of action classes and it wont be feasible to touch each one and check if the session exists. Can we do something in

Re: tomcat/struts --- flash/.swf hang problem

2008-05-08 Thread Doug Lochart
John, Install Live HTTP Headers / Header Monitor plugin into Firefox and then watch the HTTP traffic between your browser and the server. Your answer will most likely be there. My assumption is that the MIME Type .swf is not enabled in your Tomcat but that is just a wild guess. regards, Doug

Re: Transfer user to login page on session timeout

2008-05-08 Thread Vivek Rana
Hi, You should be able to use servlet filters to block the request from going to the actions: http://java.sun.com/products/servlet/Filters.html I would do it your way and check for timeout by checking for the presence of session objects. There may be better ways, but I can't think of any

Re: OGNL

2008-05-08 Thread Adam Hardy
I initially shied away from doing that because I figured that later on in the show we might want to use Collection sub-class x, y or z. However the alternatives were too time-consuming, so I have done just what you said. I am now the proud owner of BidirectionalChildList() which takes the

Re: Struts 2.1.2 action url fails (possible bug)

2008-05-08 Thread Struts Two
I did one more test to verify the problem [I also changed the context root - just to get crazy] and the problem is there [you will find the server partial dump beflow]:  I first typed: https://localhost:9445/ccol/index.html  The url got redirected to the following url [after I was prompted to

Re: Injecting Spring Services into Struts 2 Actions

2008-05-08 Thread Laurie Harper
Asleson, Ryan wrote: Hello, I found this guide to injecting Spring beans into Struts 2 Actions: http://cwiki.apache.org/WW/spring.html According to the red box at the bottom of the document, the Struts 2 Action does not need to be registered with Spring. So far so good. Er, that's not

Re: html:link and javascript

2008-05-08 Thread Laurie Harper
umainb wrote: Hello, I have a link in my jsp html:link page=/doNotVerifyList.do?action=delete paramId=phone paramName=resultsList paramProperty=phoneNumberbean:message key=admin.console.verify.numbers.delete//html:link which deletes a record from the list of numbers. When the user

s:doubleselect problem

2008-05-08 Thread Leena Borle
Hi, I have struts 2.0.11. I am getting following exception when I use s:doubleselect tag. I referred to struts2-showcase example to use this tag in my application. Any ideas on what can be wrong ? Leena Exception is -- == ${parameters.formName} [on line 98, column 41 in

Re: Injecting Spring Services into Struts 2 Actions

2008-05-08 Thread Dave Newton
Is this a Spring 2.5 thing? I'm not using 2.5 yet and haven't had to do anything to get my actions to be injected with Spring beans (at least I don't think so; I remember having to set the object factory to spring in earlier days?) Dave --- Laurie Harper [EMAIL PROTECTED] wrote: Asleson, Ryan

Re: HashMap String, ArrayListString : Unable to populate the Array List from JSP

2008-05-08 Thread ravi_eze
hi, Thanks for he help. i am using as follows: s:checkboxlist name=mapOfList['key'] / I see that this is not working and the mapOfList is not getting populated at all. I tried out StrutsTypeConverter... then only convertToString() method is being called. Any ideas as how to go with this

UnknownHandler

2008-05-08 Thread kal stevens
I have been trying to implement an UnknownHandler, and I can not seem to find any documentation on how to integrate it into the framework. I am using spring for DependencyInjection, so I thought that I could just add a bean named unknownHandler, but that did not work. I could not find an example

Re: html:multibox read but not write

2008-05-08 Thread houser
Hi Laurie, thanks for your attempts.. I give up.. I cannot find in the help how to submit via email... I have tried.. and this is another attempt with no openning tag mark --- in JSP: (1) - table logic:iterate id=funPro name=funProForm property=functionProList

JSON Plugin - excludeProperties Issues

2008-05-08 Thread Hoying, Ken
I am trying to specify properties for the JSON plugin to ignore. However, this does not seem to be working. Am I specfiying something incorrectly? Does it not work in conjunction with specifying the root? result type=json param

Re: JSON Plugin - excludeProperties Issues

2008-05-08 Thread Musachy Barroso
The exclude properties are relative to the action, not the root. musachy On Thu, May 8, 2008 at 4:01 PM, Hoying, Ken [EMAIL PROTECTED] wrote: I am trying to specify properties for the JSON plugin to ignore. However, this does not seem to be working. Am I specfiying something incorrectly?

RE: JSON Plugin - excludeProperties Issues

2008-05-08 Thread Hoying, Ken
I thought that might be the case and tried to reference them that way (i.e. categoryChildren.createdTs). However, that did not seem to work either. -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: Thursday, May 08, 2008 4:06 PM To: Struts Users Mailing List

RE: JSON Plugin - excludeProperties Issues

2008-05-08 Thread Hoying, Ken
I see now. categoryChildren returns a collection so I need categoryChildren.*\.createdTs. However this only works if I do not specify root. If I specify root then it does not appear to work. I noticed that there was mention on the Wiki of an enhancement with an includeProperties param. Is

Re: JSON Plugin - excludeProperties Issues

2008-05-08 Thread Musachy Barroso
I see now. categoryChildren returns a collection so I need categoryChildren.*\.createdTs. However this only works if I do not specify root. If I specify root then it does not appear to work. Could you send me (or create a ticket with it) an small testcase? I will look into it I noticed

How to validate a checkboxlist?

2008-05-08 Thread mojoRising
I am trying to perform client side validation on a struts checkboxlist tag but nothing I try seems to work. ANy ideas? I do not want to submit the form and do a validation method in the action bean because obviously it would be ridiculous to post back to the server just to check that there is at

tomcat 5.5 migrate to 6.0.16, struts 1.x application not working any more

2008-05-08 Thread john lee
Hi, i installed Tomcat 6.0.16, and move existing application directory from tomcat 5.5 to tomcat 6.6. after doing so, then i make the change to server.xml(global) only, add the block of Context to reflect the existing/transfered application but when i do test, give the error

struts 2.1.2 - strange bug

2008-05-08 Thread Alec C4
Hi, all. I have a config with action name=Registration result/pages/register.jsp/result /action action name=Register class=UserAction result/pages/result.jsp/result result

Re: Can you set parameters in s:submit using s:param in the tag body?

2008-05-08 Thread Eduardo Dela Rosa
Thanks for your reply Jeromy. I've read Mark's Struts 2 Cookbook and it gave me good ideas. What I just did was the following: - Create an action in the struts.xml - Used that particular action in the s:submit tag - In the struts.xml, I've set some dynamic parameters along with the