Problem assiging elements in to list

2008-03-14 Thread Vamsi Gmail!
Hi all, I have a requirement where I need to assign a Objects to a list. I tried the example given in showcase there is working (in the site). But It is not assigning to that list I am also attaching code for your refernce. ---Vamsi /* * $Id: PersonAction.java 471756 2006-11-06

Question regarding OGNL

2008-03-14 Thread Thomas Ramapuram
Hi, I have query regarding OGNL Expression. Can the #name kind of expression be used anywhere? Or are they applicable only in certain attributes of struts tags Till now I was using the %{name} expression and that too in the some attribute of a tag I tried using #name expression but it

Re: Getting error in using tag library : The Tag class 'org.apache.struts.taglib.html.FormTag' has no setter method corresponding to TLD declared attribute 'acceptCharset', (JSP 1.1 spec, 5.4.1)

2008-03-14 Thread Antonio Petrelli
2008/3/14, kannan_307 [EMAIL PROTECTED]: I am using the struts version 1.2.4 It was a bug that seems to be fixed: https://issues.apache.org/struts/browse/STR-1636 It is fixed in 1.2 Family: I checked and it is fixed in Struts 1.2.9. I suggest you to upgrade to Struts 1.2.9 or, better, to

Re: struts wml

2008-03-14 Thread Antonio Petrelli
2008/3/13, CarloSilva [EMAIL PROTECTED]: Laurie Harper, email-me please. I think I have help to you. An emabrace WTF?

Re: struts wml

2008-03-14 Thread Al Sutton
I think it's a babelfish (babel.altavista.com) translation from another language. Anyway, isn't it nice to offer free embraces :). Al. - Original Message - From: Antonio Petrelli [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org; CarloSilva [EMAIL PROTECTED]

Re: Multiple Actions for a single page. Is this possible

2008-03-14 Thread Ralf Fischer
Hi, On 3/14/08, ravi_eze [EMAIL PROTECTED] wrote: We have two pages a.jsp and b.jsp developed with the action class mehods Ac.a() Ac.b() that render these pages. Now we need to develop a new page c.jsp which is combination of both a b.jsps. i can include the jsps into the c.jsp. But

Re: Multiple Actions for a single page. Is this possible

2008-03-14 Thread Bently Drake
Hi, Action class gets populated when you invoke them by clicking on any button or link or anywhere if you invoke the class a by clicking on a.jsp and same with b, and when you include then into c.jsp they will work as usual no change requires!! please correct me if I didnt get your

Issue In Autocompleter

2008-03-14 Thread Ankur Agar
Hi All, I am tryin to make an autocomplete work with its theme=ajax I am using struts 2.0.x The data coming from the action is in JSON format {Arizona:AZ,Arkansas:AR,Armed:AE,California:CA,Florida:FL} the jsp code is %@ taglib prefix=s uri=/struts-tags % html head s:head theme=ajax

Codebehind + zero config options

2008-03-14 Thread Alex Shneyderman
I am a bit confused by how it works maybe you guys could shed some light :-) I have a package structure and JSP pages structure that match. To be concrete actions are placed like this: /com/mypackge/my/namespace/IndexAction.java /com/mypackge/my/namespace/EditAction.java and pages are placed

Re: Question regarding OGNL

2008-03-14 Thread Rushikesh Thakkar
AFAIK you can use OGNL expression in any attribute of your struts2 tag. Your problem could be 'what is the proper syntax for using OGNL expression?'. Can you post your relevant code? I might get an idea of what you are trying to achieve. -Rushikesh On Fri, Mar 14, 2008 at 7:29 AM, Thomas

Struts2 - Validating several fields depending on values of other fields

2008-03-14 Thread Dirk Schumacher
Hello out there, I am relativley new to S2 and I got stuck on a validation problem. 2 fields/properties to be set on my Action: startDate(String) endDate(String) When setting a value first of all the String must be parsed into a Date object. I know how to handle that. The endDate must be

Re: Struts2 - Validating several fields depending on values of other fields

2008-03-14 Thread Dave Newton
--- Dirk Schumacher wrote: 2 fields/properties to be set on my Action: startDate(String) endDate(String) When setting a value first of all the String must be parsed into a Date object. FYI, that can be handled automatically by the framework via type conversion [1] unless there's some

Re: Problem assiging elements in to list

2008-03-14 Thread Cesar Arevalo
HI Vamsi, by the time you get to the for loop I don't see the list initialized, unless you are doing this from your jsp I don't think it will work as how you have it, a better way would be with a normal for like this : for (int index = 0; index someLimit; index++) {

Re: Problem assiging elements in to list

2008-03-14 Thread Dave Newton
--- Cesar Arevalo [EMAIL PROTECTED] wrote: by the time you get to the for loop I don't see the list initialized, unless you are doing this from your jsp I don't think it will work as how you have it, a better way would be with a normal for like this : for (int index = 0; index

Re: Problem assiging elements in to list

2008-03-14 Thread Cesar Arevalo
Just out of curiosity, when you say All of this is done automatically by the framework do you mean if you populate from a form? or how do you mean the framework does this automatically? Cesar - Original Message From: Dave Newton [EMAIL PROTECTED] To: Struts Users Mailing List

Re: Problem assiging elements in to list

2008-03-14 Thread Dave Newton
--- Cesar Arevalo [EMAIL PROTECTED] wrote: when you say All of this is done automatically by the framework do you mean if you populate from a form? Yes. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Problem assiging elements in to list

2008-03-14 Thread Dave Newton
--- Cesar Arevalo [EMAIL PROTECTED] wrote: when you say All of this is done automatically by the framework do you mean if you populate from a form? Actually, let me re-answer that: yes, with caveats. For example, in the source provided the list isn't genericized, so without a type conversion

Re: struts wml

2008-03-14 Thread Laurie Harper
lol true :) I keep a jar of them on my desk for people passing by to help themselves... oh, wait, that's Chup Chups ;-) Al Sutton wrote: I think it's a babelfish (babel.altavista.com) translation from another language. Anyway, isn't it nice to offer free embraces :). Al. - Original

Re: Latest Quickstart Sitemesh

2008-03-14 Thread Laurie Harper
Doug Pham wrote: Hi All, I took the current quickstart application and added sitemesh to the pom.xml and added all the necessary files for sitemesh, the dojo that listed the Persons broke. The decorator works but the ajax failed with Error loading '/quickstart/list.action' (200 OK) Is

[S2] DEBUG NPE

2008-03-14 Thread Hoying, Ken
I have created a template which utilizes parameters that are passed into it to generate HTML conditionally based on those parameters. For example: s:component theme=scaTheme templateDir=template template=Header.jsp s:param name=titleKey value=%{'title.appNpc'} /

should I learn struts 1 first before learning struts 2?

2008-03-14 Thread akoo
Hi, forgive me if this has been asked before. I am just starting on struts and wondering if I should first learn Struts 1 or just jump straight to struts 2? Will spending time on struts 1 help me with struts 2 or will it get in the way since everything in struts 2 is different from Struts 1? I

Re: should I learn struts 1 first before learning struts 2?

2008-03-14 Thread Antonio Petrelli
2008/3/14, akoo [EMAIL PROTECTED]: Hi, forgive me if this has been asked before. I am just starting on struts and wondering if I should first learn Struts 1 or just jump straight to struts 2? Will spending time on struts 1 help me with struts 2 or will it get in the way since everything

Re: should I learn struts 1 first before learning struts 2?

2008-03-14 Thread Musachy Barroso
I am starting to doubt about that, I was denied a job because I didn't have enough struts 1 experience, almost funny anyway :) musachy On Fri, Mar 14, 2008 at 2:53 PM, Antonio Petrelli [EMAIL PROTECTED] wrote: 2008/3/14, akoo [EMAIL PROTECTED]: Hi, forgive me if this has been asked

Re: Question regarding OGNL

2008-03-14 Thread Laurie Harper
Thomas Ramapuram wrote: Hi, I have query regarding OGNL Expression. Can the #name kind of expression be used anywhere? Or are they applicable only in certain attributes of struts tags Till now I was using the %{name} expression and that too in the some attribute of a tag I tried using

Re: Multiple Actions for a single page. Is this possible

2008-03-14 Thread matt.payne
chaining is one way to accomplish this. http://struts.apache.org/2.x/docs/action-chaining.html ravi_eze wrote: hi, We have two pages a.jsp and b.jsp developed with the action class mehods Ac.a() Ac.b() that render these pages. Now we need to develop a new page c.jsp which is

[OT] Re: should I learn struts 1 first before learning struts 2?

2008-03-14 Thread Antonio Petrelli
2008/3/14, Musachy Barroso [EMAIL PROTECTED]: I am starting to doubt about that, I was denied a job because I didn't have enough struts 1 experience, almost funny anyway :) Then you had to learn Struts 1 instead of 2 :-D Antonio

Re: Best practices to reduce execution time in struts

2008-03-14 Thread matt.payne
Also, include don't use Dojo or the Ajax theme unless you want to increase your request size by 400KB. Unfortunately for ajax, in the current form you need to roll your own if you want to avoid the Dojo penality. newton.dave wrote: --- Raghu varma bhupathiraju wrote: give me the list of

Re: Issue In Autocompleter

2008-03-14 Thread Laurie Harper
Ankur Agar wrote: Hi All, I am tryin to make an autocomplete work with its theme=ajax I am using struts 2.0.x The data coming from the action is in JSON format [...] But still the autocomplete is not working gives a syntax error on page when Including the actual error message would

Re: Question regarding OGNL

2008-03-14 Thread Dave Newton
--- Laurie Harper [EMAIL PROTECTED] wrote: AFAIK, %{#name} is equivalent to %{name} when there is a getName() on the action, i.e. OGNL will look at the action first then search the rest of the value stack. Mmm, I'm not sure about that. The # should look explicitly for a named object in the

Re: Struts2 - Validating several fields depending on values of other fields

2008-03-14 Thread Laurie Harper
Dirk Schumacher wrote: I know it would be solveable by the @FieldExpressionValidator where its expression can be filled with a complex OGNL-Expression. But if evaluating the expression internally throws an Exception, the evaluation does not terminate right. (I'd be fine with a negative

Re: should I learn struts 1 first before learning struts 2?

2008-03-14 Thread matt.payne
No, don't bother. Its not a chapter of book. Skip some of the stuff you don't need to know any longer and roll up your sleeves with struts 2. akoo wrote: Hi, forgive me if this has been asked before. I am just starting on struts and wondering if I should first learn Struts 1 or just

[OT] Complete List of Logged In Users

2008-03-14 Thread Mike Duffy
I marked this as other because this is probably sever specific (in my case I am using JBoss). Using the Struts framework is there some simple way to get a list of all the users logged into the server? Thx. Mike

Re: [OT] Complete List of Logged In Users

2008-03-14 Thread Dave Newton
--- Mike Duffy [EMAIL PROTECTED] wrote: Using the Struts framework is there some simple way to get a list of all the users logged into the server? Using the Struts framework? No; this doesn't have anything to do with Struts. You might use a SessionContextListener to provide a potentially

Re: [struts] Re: Question regarding OGNL

2008-03-14 Thread Dale Newfield
Laurie Harper wrote: The expressions %{name} and %{#name} have different meanings. Anywhere one is valid, the other is valid too but obviously each will only 'work' if the expression resolves to a value. Correct. I'm sorry to pick nits, but if you don't mind, I'll clarify your following

Re: struts wml

2008-03-14 Thread CarloSilva
Hi Laurie. I have the struts-wml.jar for struts 1.2. I´m sorry for my bad English. Other embrace. - Original Message - From: Laurie Harper [EMAIL PROTECTED] To: user@struts.apache.org Sent: Friday, March 14, 2008 3:24 PM Subject: Re: struts wml lol true :) I keep a jar of them on

redirection problem

2008-03-14 Thread matthieu martin
Hi all. I am handling login issue through an interceptor. Basically it looks in the session if a user entry exists before letting you go through to the administration panels. This works fine. In my admin, I use a lot of Ajax (with dojo) so I never have a single full page reload. I use submits or

Re: Question regarding OGNL

2008-03-14 Thread Martin Gainty
dave is is correct.. #foo.blah // returns foo.getBlah() #bar.blah // returns bar.getBlah() blah // returns foo.getBlah() because foo is the root http://struts.apache.org/2.x/docs/ognl-basics.html Martin- - Original Message - From: Dave Newton [EMAIL PROTECTED] To: Struts Users

Re: [struts] Question regarding OGNL

2008-03-14 Thread Dale Newfield
Martin Gainty wrote: dave is is correct.. The following example without the proceeding situation setup is quite misleading (so here it is) : For example, suppose we are using standard OGNL (not using XWork) and there are two objects in the OgnlContext map: foo - foo and bar - bar and that