Re: Struts access static list

2009-04-13 Thread Baran
Thanks Chris, It helped a lot in sorting things out. Also thanks to Dave for tossing up "SDO", it sounds interesting and I would certainly consider using it at some place. Thanks musomesa wrote: > > Yes, in between the or tags the object is sitting on > top of the value stack so you can a

Re: Struts access static list

2009-04-13 Thread Musomesa
Yes, in between the or tags the object is sitting on top of the value stack so you can access it with OGNL like you would a 'normal' action. Handy for things like populating combo boxes which crop up all over the place. Chris M **The Average US Credit Score is 692. See Yours in

Re: Struts access static list

2009-04-13 Thread Baran
Hello Chris, well this is what I was doing yesterday, I have this naive issue here...mainly because of the fact that I am new to it. If we have an action that does the the job for us. I use s:action with actionResult="false" for no html rendering, is there a way if I can use the output as an inpu

Re: Struts access static list

2009-04-13 Thread Musomesa
Why not write the code in its own action or pojo and use or wherever you want it? Chris M **The Average US Credit Score is 692. See Yours in Just 2 Easy Steps! (http://pr.atwola.com/promoclk/100126575x1221621489x1201450100/aol?redir=http:%2F%2Fwww.freecreditreport.com%2Fpm%2Fdefaul

Re: Multiple Logic iterate tags and setting indexed properties

2009-04-13 Thread Nikhil Walvekar
Hi Thanuja, Your checkbox tag should be rendered as I don't think logic:iterate supports property as "indexed". Probably you can create above tag using values you have. "bookLists[i].books[j].selected" will be converted as "getBookList().get(i).getBooks().get(j).setSelected(value)" you will hav

Re: Struts access static list

2009-04-13 Thread Baran
Thanks Guys. Being new to Struts is the only issue I have right now and this is the reason I am not able to use my own ideas to the fuller. Your suggestions have helped a lot. Baran newton.dave wrote: > > mitch gorman wrote: >> Baran wrote: >>> This is about implementing reusability in the a

Dealing with timezones and local time?

2009-04-13 Thread David Erickson
Hi all, I am storing a number of dates within my application internally as epoch, but I need to print them formatted for the local timezone of the client. Is there a standard way of doing this? Using the existing s:date tag is printing things in the timezone local to the server.. Thanks, David --

Multiple Logic iterate tags and setting indexed properties

2009-04-13 Thread thanuja
Hi, I am using one logic iterate tag inside another. The data set at the inner loop should update form bean. Following explains what i tried to do. This way the data displays as I expected. But when I select the check box it won't update the corresponding 'Book' object. (The form has list of 'Boo

Re: Struts Action Issue

2009-04-13 Thread Dave Newton
Martin Gainty wrote: agreed..docs maintainer please update the documentation ASAP! One way we can help keep the documentation up-to-date is by filing a CLA. When we run across an obviously ancient page we can then delete it, or at the bare minimum file a JIRA issue against the offending page

RE: Struts Action Issue

2009-04-13 Thread Martin Gainty
agreed..docs maintainer please update the documentation ASAP! Thanks Martin __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is confidential. If you should not be the intended r

Re: Struts Action Issue

2009-04-13 Thread Musachy Barroso
That doesn't make any sense. That link is outdated (very) from the webwork days. Forms can use either POST or GET. @original poster: add breakpoints to the ParametersInterceptor and see if your params are getting filtered out by it. musachy On Mon, Apr 13, 2009 at 4:18 PM, Martin Gainty wrote:

Re: Struts access static list

2009-04-13 Thread Dave Newton
mitch gorman wrote: Baran wrote: This is about implementing reusability in the actions. I am struggling to identify the ways how we can share some comming functionality between different actions. Lets say I got a list of users i need to use as a combobox list at multiple pages. Right now I have

RE: Struts Action Issue

2009-04-13 Thread Martin Gainty
except webwork forms expect method="POST" http://cwiki.apache.org/WW/webwork-2-ui-tag-guide.html is there any specific reason why you need to implement with method="get" did you use the FieldExpression-Validator as suggested earlier? what are the specific errors you are seeing with either scenar

RE: Struts access static list

2009-04-13 Thread Martin Gainty
I sent this to you already but apparently was lost you can use the spring plugin to create the necessary entities for you e.g. http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:bean="http://www.springframework.org/schema/util";

Re: Struts access static list

2009-04-13 Thread mitch gorman
Baran wrote: > Hi Guys, > > This is about implementing reusability in the actions. I am struggling to > identify the ways how we can share some comming functionality between > different actions. Lets say I got a list of users i need to use as a > combobox list at multiple pages. Right now I have to

RE: struts2.1.6 dojo ajax tags conflict with fileupload interceptor?

2009-04-13 Thread Security Management
Eric, It's listed at least here, I don't know where else it is, just FYI: http://struts.apache.org/2.0.14/docs/dojo-head.html M. -Original Message- From: Eric Zhao [mailto:z...@utsc.utoronto.ca] Sent: Monday, April 13, 2009 2:51 PM To: Struts Users Mailing List Subject: Re: struts2.1.6

RE: Struts Action Issue

2009-04-13 Thread riya
Hi, I followed the replies but could not resolve the issue. Another update I have is this request is an Ajax.Request with method = 'get'. Can this cause any trouble? Changing get to post however does not help. Please advise. Thanks! mgainty wrote: > > > agree with Rommel > a FieldValid

Re: Designing application using Struts

2009-04-13 Thread Charlesmel Carino
Niklas, I've answered that question from my previous employer and what I did was to basically reuse the form because it was used everywhere in the application. The persistent evil of copy and pasting whoever coded it possessed him because he replicated the same form 17 times. Which means the for

Re: struts2.1.6 dojo ajax tags conflict with fileupload interceptor?

2009-04-13 Thread Eric Zhao
Thanks, Mike: Just google into this link myself a few minutes ago. Things change quickly with struts :-( http://www.nabble.com/-PROPOSAL--Deprecate-or-remove-Dojo-plugin-td18573704.html It seems for ajax, better learn another tool like JQuery or something. Quite confusing they still have t

RE: struts2.1.6 dojo ajax tags conflict with fileupload interceptor?

2009-04-13 Thread Security Management
I think those tags are deprecated, so I'd be cautious of using them. Mike. -Original Message- From: Eric Zhao [mailto:z...@utsc.utoronto.ca] Sent: Monday, April 13, 2009 1:19 PM To: Struts Users Mailing List Subject: struts2.1.6 dojo ajax tags conflict with fileupload interceptor? repos

Designing application using Struts

2009-04-13 Thread Niklas Johansson
Hello, I got some design questions when using Struts. If this is not the right place to post this kind of questions please let me know and I can create a QuickTopic. I am creating an application that contains several forms. Two of the forms belongs to two different parts which can be conside

struts2.1.6 dojo ajax tags conflict with fileupload interceptor?

2009-04-13 Thread Eric Zhao
repost, since last one went as a reply under another topic I am trying to use struts2.1.6 dojo tags (<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>) within a multipart form which also uses fileupload interceptor, but with no success. My dojo tags is to populate a second drop down based on

Re: Aw: [s2] Using UTF-8 in .properties files

2009-04-13 Thread Cristian Peraferrer
Thank you very much, I think it resolves my problem :) Cristian. On 09/04/2009, at 12:28, Paweł Wielgus wrote: Hi all, try this: http://sourceforge.net/projects/eclipse-rbe/ Best greetings, Paweł Wielgus. 2009/4/9 Cristian Peraferrer : So, is it possible to *really* develop internationalize

struts2.1.6 dojo ajax tags conflict with fileupload interceptor?

2009-04-13 Thread Eric Zhao
Hello: I am trying to use struts2.1.6 dojo tags (<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>) within a multipart form which also uses fileupload interceptor, but with no success. My dojo tags is to populate a second drop down based on selection of first dropdown. This works fine on re

Re: [Help] I cannot make the Validation in struts 2.0 works.....

2009-04-13 Thread Dave Newton
白鹏 wrote: > *The returned html file contains:* > > src="/LearnDataProject/struts/xhtml/validation.js"> > src="/LearnDataProject/struts/utils.js"> > > but *There isn't the folder 'struts' in my App /LearnDataProject .* > ** > *Why this happens??? * Client-side validation requires JavaScript.

Re: hi,guys! I wonder the validation framework is ok in the Struts 2.1.6 .

2009-04-13 Thread Dave Newton
?? wrote: Has anyone use the validation framework of struts 2.1.6?? Yes. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: hi,guys! I wonder the validation framework is ok in the Struts 2.1.6 .

2009-04-13 Thread Paweł Wielgus
Hi, mabe You should try to run struts blank app, the one that comes from downloaded zip file, there evrything should work fine and You will have a chance to see what differs from Your app. Best greetings, Paweł Wielgus. 2009/4/13 白鹏 : > Has anyone use the validation framework of struts 2.1.6?? >