[s2] How to pass param to actions from Struts.xml

2007-03-14 Thread Harring Figueiredo
on the Map provided by the setParameter() IoC call. 2) Is this the same functionality as the the Struts ActionMapping? Thanks in advance Harring Figueiredo

Re: initialize java form bean

2007-03-14 Thread Harring Figueiredo
. Harring On 3/14/07, Lim Hock-Chai [EMAIL PROTECTED] wrote: is there a way to set a property of a java form bean from struts-config.xml? I try to use set-property and it is not working. -- Sincerely, Harring Figueiredo Sr. Software Engineer Email: [EMAIL PROTECTED] Telephone: 941-256-0600

Re: Forward a action from one action programmatically in STruts 2.0

2007-03-16 Thread Harring Figueiredo
The way I solve this is by returning the value you want and setting up the action chain on struts.xml file: Example: class MyAction 1 .. { public String execute(){ if(foo) return foo; else return bar; } Then on the Strutus XML file:

Re: A suggestion for struts.xml!

2007-03-20 Thread Harring Figueiredo
version?I think I can deploy my struts application easier if so. -- Sincerely, Harring Figueiredo Sr. Software Engineer Email: [EMAIL PROTECTED] Telephone: 941-256-0600 We never become truly spiritual by sitting down and wishing to become so. You must undertake something so great that you cannot

Re: [BEER] Ruby Roundup (was Is there a mailing list for S2 only?)

2007-03-20 Thread Harring Figueiredo
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sincerely, Harring Figueiredo Sr. Software Engineer Email: [EMAIL PROTECTED] Telephone: 941-256-0600 We never become truly spiritual by sitting down and wishing to become so. You

Re: Class path basic question and FileInputStream

2007-03-20 Thread Harring Figueiredo
); % - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sincerely, Harring Figueiredo Sr. Software Engineer Email: [EMAIL PROTECTED] Telephone: 941-256-0600 We never become truly spiritual by sitting down and wishing

Re: [S2 Tip] Use namespaces to organize your application into logical modules

2007-03-23 Thread Harring Figueiredo
Ted, Thank you so much for sending this out. I was wandering what was the difference between namespace and package. I guess this explain well. Thanks ! hff On 3/23/07, Ted Husted [EMAIL PROTECTED] wrote: Many Struts applications contain hundreds of pages. To help organize large

S2: Design Input suggestion

2007-04-05 Thread Harring Figueiredo
Folks: I have a form that is rendered by calling an action from a get or a put. In edit mode, the fields are pre-populated from the POJO (param to get the POJO is passed on the URL GET). In create mode, the fields are, of course, empty. The design issue I am having has to do with the

Re: S2: Design Input suggestion

2007-04-06 Thread Harring Figueiredo
Joey, Thank you so much for you input. I will take a look again at the showcase application code and see the detail of it. I was not aware that we could setup interceptors like that -- Your input on this is greatly appreciated. Regards, Harring Figueiredo On 4/5/07, joey [EMAIL PROTECTED

Re: S2 Action Validation

2007-04-09 Thread Harring Figueiredo
(); return INPUT ; /* or ERROR */ and display the same .jsp on the struts .xml file } } Please let me know if you still need more clarification/ help. -- Sincerely, Harring Figueiredo Sr. Software Engineer Email: [EMAIL PROTECTED] We never become truly spiritual by sitting down and wishing to become

S2 Formattion output with S:tags

2007-04-10 Thread Harring Figueiredo
Folks, I read http://struts.apache.org/2.x/docs/text.html and could not make sense on how to display currency format with s:tags I have an iterator, during the iteration, I would like to set the currency with the correct format. If I use: s:iterator ... s:property value=amount /s:iterator

Re: what version of struts is better?

2007-04-10 Thread Harring Figueiredo
! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sincerely, Harring Figueiredo Sr. Software Engineer Email: [EMAIL PROTECTED] Telephone: 941-256-0600 We never become truly

S2 s:text Currency Format

2007-04-10 Thread Harring Figueiredo
not work. s:iterator ... s:texts:param name=amount value=amount//s:text /s:iterator What am I doing wrong? Thank you. -- Sincerely, Harring Figueiredo Sr. Software Engineer Email: [EMAIL PROTECTED] Telephone: 941-256-0600 We never become truly spiritual by sitting down and wishing to become so

Re: S2 s:text Currency Format

2007-04-10 Thread Harring Figueiredo
Newton [EMAIL PROTECTED] wrote: --- Harring Figueiredo [EMAIL PROTECTED] wrote: How can I format a number with the currency format? I have taken a look at http://struts.apache.org/2.x/docs/text.html and still cannot figure out the correct syntax. Is s:text name=format.money s:param name=value

[S2] s:text help on formatting output

2007-04-11 Thread Harring Figueiredo
Folks: It is clear that I MUST be doing something wrong, but I have tried all the options with the s:text to format a number. Here is what I have tried: lis:text name=currencys:param name=money value=%{#session.Account.balance}//s:text/li lis:text name=format.moneys:param name=money

Re: S2 life cycle

2007-04-11 Thread Harring Figueiredo
/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sincerely, Harring Figueiredo Sr. Software Engineer Email: [EMAIL PROTECTED] Telephone: 941-256-0600 We never become

Re: [S2] s:text help on formatting output

2007-04-11 Thread Harring Figueiredo
Hi Laurie, Thanks for the response. I tried what you suggested, and actually did not get a value back (empty). Where should I set the resource string? (I thought it was _smart_ enough to get from the Locale. Thank you. On 4/11/07, Laurie Harper [EMAIL PROTECTED] wrote: Harring Figueiredo

Re: [S2] s:text help on formatting output

2007-04-11 Thread Harring Figueiredo
}, at least that is what it says on the documentation page. I wish someone from the Struts team would give a better example on this. Thank you to all that have replied and will still reply. Solution NOT yet found. Harring On 4/11/07, Harring Figueiredo [EMAIL PROTECTED] wrote: Hi Laurie

Re: [S2] s:text help on formatting output

2007-04-11 Thread Harring Figueiredo
the brackets. Thank you ALL again for your patience, replies, and help! hf On 4/11/07, Dave Newton [EMAIL PROTECTED] wrote: --- Harring Figueiredo [EMAIL PROTECTED] wrote: [...] Dude, just type it in. In my properties file: format.money={0,number,currency} On my JSP: s:text name=format.money

[S2] Testing for size of Collection inside a s:if

2007-04-11 Thread Harring Figueiredo
Folks, How do I call the isEmpty() method (or any other non-bean conforming method) inside a s:if tag? I can test for null as: s:if test={collection == null } But, I also need to test for empty collection. Thank you in advance. hf

Re: [S2] Testing for size of Collection inside a s:if

2007-04-11 Thread Harring Figueiredo
Dave, Thank for the reply. I thought that this would call getIsEmpty(), from other examples I have seen. Let me try it again. hf On 4/11/07, Dave Newton [EMAIL PROTECTED] wrote: --- Harring Figueiredo [EMAIL PROTECTED] wrote: s:if test={collection == null } s:if test

Re: Problem passing form fields with autocompleter

2007-04-12 Thread Harring Figueiredo
] -- Sincerely, Harring Figueiredo Sr. Software Engineer Email: [EMAIL PROTECTED] Telephone: 941-256-0600 We never become truly spiritual by sitting down and wishing to become so. You must undertake something so great that you cannot accomplish it unaided.

Re: Problem passing form fields with autocompleter

2007-04-12 Thread Harring Figueiredo
: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sincerely, Harring Figueiredo Sr. Software Engineer Email: [EMAIL PROTECTED] Telephone: 941-256-0600 We never become truly spiritual by sitting down and wishing to become so. You must undertake something so great that you

[S2/S1] Missing Applocation web.xml - redeploy fails

2007-04-18 Thread Harring Figueiredo
, Harring Figueiredo Sr. Software Engineer Email: [EMAIL PROTECTED] Telephone: 941-256-0600 We never become truly spiritual by sitting down and wishing to become so. You must undertake something so great that you cannot accomplish it unaided.

Re: s:select with list from attributes hash map gives list key error

2007-04-19 Thread Harring Figueiredo
] For additional commands, e-mail: [EMAIL PROTECTED] -- Sincerely, Harring Figueiredo Sr. Software Engineer Email: [EMAIL PROTECTED] Telephone: 941-256-0600 We never become truly spiritual by sitting down and wishing to become so. You must undertake something so great that you cannot accomplish

Re: s:select with list from attributes hash map gives list key error

2007-04-19 Thread Harring Figueiredo
public Object getAttribute(String key){ return attributes.get(key); } s:select list=%{getAttribute('user.status.options')} ... Strange that I couldn't access the map values directly... Thanx guys. On Thu, 2007-04-19 at 09:33 -0400, Harring Figueiredo wrote: Try using the session notation

Re: Initializing Struts

2007-04-19 Thread Harring Figueiredo
Hi Joseph, Check the expanded directory of you web application (in Tomcat, it is under $CATALINA_HOME/webapps). See if the war file was indeed fully expanded (unzipped). This could be the cause of the problem. If you are using Windows, Tomcat has trouble re-deplying due to file locking. This

Re: Can we keep one action file for all jsp files?

2007-04-20 Thread Harring Figueiredo
You can do this by declaring the method that will handle the request. My suggestion on this is that you should see if you REALLY need only one action to handle everything. This might make maintenance more difficult and you might have to mingle member variable that deal with different requests and

Re: URL parameters separator

2007-04-20 Thread Harring Figueiredo
I am not sure if the DTD declares that (I did not take a look at it), but basically the way to pass param on a HTML URL is the way it was generated - Every single HTTP server will not parse the parameters correctly if it is in the form that you want. If you have some special parser or that is

Re: [s2] Difference between actionMessages and actionErrors

2007-04-24 Thread Harring Figueiredo
I was supposed to test the genereated HTML from both. (Laziness got the best of me). guess Here it goes, without testing. I think that the HTML generated is slightly different so that you may apply different CSS style sheets to it. /guess harringf On 4/24/07, Musachy Barroso [EMAIL PROTECTED]

Re: [S2] Formatting inside Iterator tag

2007-04-24 Thread Harring Figueiredo
Oh Boy, I am glad to see that I was not the only one to have this problem :-) Dave, Here is how I got it to work: Edit the struts.properties with the following entry struts.custom.i18n.resources=translations Edit the properties file translations.properties with the entry

Re: S2 Tag Properties

2007-04-24 Thread Harring Figueiredo
They can the different and serve different purposes. The name attribute that you have there means that the value will be picked from yourAction.getUser().getZip().getCity(); The key will be used to lookup the resources files using the literal string 'user.zip.city', of course. Hope this

[s2]theme=ajax for form/submit button

2007-04-24 Thread Harring Figueiredo
On the page itself, I have an IFrame with the div=RightPaneWindow; however, the updated div is the div in which the form is in. Any idea? Thank you in advance, Harring Figueiredo

Re: [s2]theme=ajax for form/submit button

2007-04-24 Thread Harring Figueiredo
like that, and see what happens. This is a dumb question, but are you using the same id for more than one div? musachy On 4/24/07, Harring Figueiredo [EMAIL PROTECTED] wrote: Folks, I have a form with a submit button as follows s:form action=member_login.action theme=ajax validate=true

Re: [s2]theme=ajax for form/submit button

2007-04-24 Thread Harring Figueiredo
, Harring Figueiredo [EMAIL PROTECTED] wrote: Musachy, Thanks for the reply. I am using only one div with the id. I now tried something else while waiting for the reply: s:set nameframe value=LoginWindow/ s:if test=hasActionErrors s:set nameframe value=RightPaneWindow/ /s:if I then tried

Re: [s2]theme=ajax for form/submit button

2007-04-24 Thread Harring Figueiredo
].document.getElementById(...). You can use the notifyTopics attribute and do it yourself inside the topic. regards musachy On 4/24/07, Harring Figueiredo [EMAIL PROTECTED] wrote: This is the generated code: td colspan=2div align=rightinput type=submit dojoType=struts:Bind event=onclick value

[s2] upgrade error

2007-04-25 Thread Harring Figueiredo
Did anyone get this error when moving from 2.0.5 to 2.0.6 ? Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/home/harringf/install/jakarta-tomcat-5.0.28 /webapps/bh-fl-wp/WEB-INF/lib/struts2- core-2.0.6.jar!/struts-default.xml:8:69 My stratus-default xml

Re: [BEER] Re: Books

2007-04-27 Thread Harring Figueiredo
By th eway he describes the whole thing, I think he meant it literaly, even though he should have used the adjective instead (sadistic). It is indeed very funny! hff On 4/27/07, Dave Newton [EMAIL PROTECTED] wrote: --- maestro [EMAIL PROTECTED] wrote: The sadist part to it, its the industry

Re: [BEER] Re: Books

2007-04-27 Thread Harring Figueiredo
I never thought of it that way.. but I believe it to be true... I think that they change so that it will break previous instalation. Sometimes OS can be a pain. :-) Hf On 4/27/07, Wendy Smoak [EMAIL PROTECTED] wrote: On 4/27/07, Harring Figueiredo [EMAIL PROTECTED] wrote: By th eway he