how to use contains function with arraylist in jstl tags

2007-11-12 Thread ashish shrivastava
i want to check whether my arraylist contains a particular value or not, i dont want to use scriplets , how it can be done using JSTL/struts tags. Thanks Ashish - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [S2] vertical checkboxlist

2007-11-12 Thread SudarshanP
I too have the same problem anybody could figure out the solution Thanks in advance Filippo De Luca wrote: Dear Strtuts users It is possible, in checkboxlist, to arrange checkboxes vertically? Thanks -- Filippo De Luca [EMAIL PROTECTED] http://www.filosganga.it

Problems calling an Action using link

2007-11-12 Thread Stefan Meisner Larsen
Hi all I would really appreciate a little help here... ;-) I am trying to call an Action using a link: http://localhost:8080/bjo/user/list.action The Action is defined as: struts package name=user namespace=/user extends=struts-default action name=create

Re: [S2] vertical checkboxlist

2007-11-12 Thread Dave Newton
theme=simple removes the table formatting. http://struts.apache.org/2.x/docs/themes-and-templates.html --- SudarshanP [EMAIL PROTECTED] wrote: I too have the same problem anybody could figure out the solution Thanks in advance Filippo De Luca wrote: Dear Strtuts users It is

Re: Problems calling an Action using link

2007-11-12 Thread Dave Newton
Is there any validation being run on the UserAction class? d. --- Stefan Meisner Larsen [EMAIL PROTECTED] wrote: Hi all I would really appreciate a little help here... ;-) I am trying to call an Action using a link: http://localhost:8080/bjo/user/list.action The Action is defined as:

Re: Problems calling an Action using link

2007-11-12 Thread Dave Newton
Is there any validation being run on the UserAction class? d. --- Stefan Meisner Larsen [EMAIL PROTECTED] wrote: Hi all I would really appreciate a little help here... ;-) I am trying to call an Action using a link: http://localhost:8080/bjo/user/list.action The Action is defined as:

Re: Problems calling an Action using link

2007-11-12 Thread Stefan Meisner Larsen
Hi Dave Thanks a lot - it was the validation that caused me problems.. :-) /Stefan 2007/11/12, Dave Newton [EMAIL PROTECTED]: Is there any validation being run on the UserAction class? d. --- Stefan Meisner Larsen [EMAIL PROTECTED] wrote: Hi all I would really appreciate a little

RE: Problems calling an Action using link

2007-11-12 Thread Rajagopal_Yendluri
Hi Dave, can you post your Action code here... Regards, Rajagopal Y HCU-Consulting Enterprise Solutions. Phone: (C) +91-9886876114 / (W) 6658 3685. -Original Message- From: Stefan Meisner Larsen [mailto:[EMAIL PROTECTED] Sent: Monday, November 12, 2007 5:53 PM To: Struts Users Mailing

Problem in session

2007-11-12 Thread Nilay Ozcelikkan
I can't close session in whole project. The code doesn't let me to close the session because I pass variables from action files to jsp files in the whole project. Do you have any suggestions to close the sessions or manage the session in whole project. I think, because of sessions being open,

Validation and optiontransfer

2007-11-12 Thread Starshy
Hi all, I try to apply validation in project and I have a problem with saving optiontransfer lists (List): when form is submitted and validator returns error, my lists with data for optiontransfer are empty. How can I save this data? Please help me with it. -- View this message in context:

Re: how to use contains function with arraylist in jstl tags

2007-11-12 Thread Wes Wannemacher
s:if test=arrayList != null arrayList.size() 0 /s:if That should work. -Wes On 11/12/07, ashish shrivastava [EMAIL PROTECTED] wrote: i want to check whether my arraylist contains a particular value or not, i dont want to use scriplets , how it can be done using JSTL/struts tags. Thanks

Re: how to use contains function with arraylist in jstl tags

2007-11-12 Thread Wes Wannemacher
oops, didn't read the message fully. Should read - s:if test=arrayList != null arrayList.contains('yourValue') On 11/12/07, Wes Wannemacher [EMAIL PROTECTED] wrote: s:if test=arrayList != null arrayList.size() 0 /s:if That should work. -Wes On 11/12/07, ashish shrivastava [EMAIL

s2 and DispatchAction

2007-11-12 Thread Jim Theodoridis
Hello In struts 1.x was using the DispatchAction and with a parameter like action choosed wich action executed. Is there a way to do thiw in S2? tnx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: s2 and DispatchAction

2007-11-12 Thread acogoluegnes
using wildcard: action name=/home_* method={1} /action action URL for method login: /home_login see : http://struts.apache.org/2.x/docs/wildcard-mappings.html Hello In struts 1.x was using the DispatchAction and with a parameter like action choosed wich action executed. Is there a way

RE: Problems calling an Action using link

2007-11-12 Thread Dave Newton
--- Rajagopal_Yendluri [EMAIL PROTECTED] wrote: Hi Dave, can you post your Action code here... Hi, What action code? d. Regards, Rajagopal Y HCU-Consulting Enterprise Solutions. Phone: (C) +91-9886876114 / (W) 6658 3685. -Original Message- From: Stefan Meisner Larsen

Re: Display tags within one line

2007-11-12 Thread Emi Lu
The default struts2 tags use themes that determine how they are formatted as html[1]. The default theme 'xhtml' wraps each form input inside a table cell and prepends it with a label to the left or above. The css_xhtml theme uses the same layout with divs. You have two options: - use

updownselect features

2007-11-12 Thread Julia.Petkau
Hello, I am using Struts 2.0.9. Updownselect sent to action ALL its options.(Throgh javascript on submissions all options are set to selected. Can I change it so, that it will send only selected by user option? I think I must change something in javascript, but where? Thanks Julia

Re: Display tags within one line

2007-11-12 Thread Dave Newton
Probably not, but you can create your own theme that does whatever you want, or you can do the grunt work that the existing themes do for you by hand. d. --- Emi Lu [EMAIL PROTECTED] wrote: The default struts2 tags use themes that determine how they are formatted as html[1]. The

Re: Display tags within one line

2007-11-12 Thread Emi Lu
Use s:form theme=simple. This will allow you to have 100% control over the form html. Notice that by dong this you will have to handle all the formatting of the table by yourself. I'd like to use all nice features of the new tags, such as label, tooltips, etc. Even on the tutorial page:

Tiles-def.xml

2007-11-12 Thread Zhang, Larry (L.)
Can I define a constant in tiles-def.xml so that I can used it in all places inside this file? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: s2 and DispatchAction

2007-11-12 Thread Jim Theodoridis
How can i use a parameter to choose wich action executed? I have a crud action etc user.action is it possible to choose the action fires with a paramenter like user.action?action=list rather than user!list.action? [EMAIL PROTECTED] wrote: using wildcard: action name=/home_* method={1}

Re: Tiles-def.xml

2007-11-12 Thread Antonio Petrelli
2007/11/12, Zhang, Larry (L.) [EMAIL PROTECTED]: Can I define a constant in tiles-def.xml so that I can used it in all places inside this file? No, but probably you can do it in another way. What do you want to do exactly? Antonio P.S.: If you are using Tiles 2, please ask this question to

Re: Display tags within one line

2007-11-12 Thread Dave Newton
--- Emi Lu [EMAIL PROTECTED] wrote: I'd like to use all nice features of the new tags, such as label, tooltips, etc. Even on the tutorial page: http://www.roseindia.net/struts/struts2/struts2uitags/checkbox-tag.shtml If users want to display checkbox in new line, users can just add BR/,

RE: Tiles-def.xml

2007-11-12 Thread Zhang, Larry (L.)
My problem is: I have 10 (or more ) css files, some pages use 2 of those, some of those uses 5 of those, some pages use 6 of those, and this combination is totally random. Then we I create tiles template, I can't put all these css in the template, instead I thought I can do the following: My

Re: Tiles-def.xml

2007-11-12 Thread Antonio Petrelli
2007/11/12, Zhang, Larry (L.) [EMAIL PROTECTED]: tiles:getAsString name=myCss1 ignore=true/ tiles:getAsString name=myCss2 ignore=true/ tiles:getAsString name=myCss3 ignore=true/ tiles:getAsString name=myCss4 ignore=true/

Re: s2 and DispatchAction

2007-11-12 Thread acogoluegnes
as far as I know, no :-( How can i use a parameter to choose wich action executed? I have a crud action etc user.action is it possible to choose the action fires with a paramenter like user.action?action=list rather than user!list.action? [EMAIL PROTECTED] wrote: using wildcard:

Re: s2 and DispatchAction

2007-11-12 Thread Dave Newton
Not out of the box, correct (AFAIK, anyway :) I'd probably take a look at your implementation, however: if these are coming off of a link then they're built easily with s:url.../ tags, and submits can define a method attribute. (It's also a pretty no-brainer implementation, if you're dead-set on

Re: Formatting strings in Struts2/Freemarker

2007-11-12 Thread Scott Kingdon
This worked! Thank you, Wes!! @s.property value=@[EMAIL PROTECTED]('${Session.USER.customer.phone}')/ On Nov 9, 2007 9:29 PM, Wes Wannemacher [EMAIL PROTECTED] wrote: Have you tried to use a struts2 tag with OGNL? If I am understanding

Re: s2 and DispatchAction

2007-11-12 Thread Randy Burgess
In the action mapping you can also use the method attribute, so for a single action class you could have multiple actions, each using a different method. Here is one of my actions where I have a list method. action name=securitySelector class=securitySelectorAction method=list result

Re: s2 and DispatchAction

2007-11-12 Thread Ian Roughley
I wonder if you could use OGNL, i.e. ${paramName}, although I have not tested it. [EMAIL PROTECTED] wrote: as far as I know, no :-( How can i use a parameter to choose wich action executed? I have a crud action etc user.action is it possible to choose the action fires with a

Re: s2 and DispatchAction

2007-11-12 Thread Dave Newton
If you send in a param named method:${aMethodName} would that work? Isn't that how the submits (for example) work? I was looking at this a couple of weeks ago but forgot already :( d. --- Ian Roughley [EMAIL PROTECTED] wrote: I wonder if you could use OGNL, i.e. ${paramName}, although I have

Re: s2 and DispatchAction

2007-11-12 Thread Don Brown
Little known fact, but you can specify the method via: ?method:MY_METHOD_NAME This code exists to support the method attribute on the submit tag, allowing you to submit the form to different methods based on what button is clicked. Don On Nov 13, 2007 2:29 AM, Jim Theodoridis [EMAIL PROTECTED]

link href=html:rewrite page=/styles.css/ rel=stylesheet type =text/css error in jsp page

2007-11-12 Thread Emi Lu
Hello, Using Struts2.0.11, I have this line in my jsp, which always cause the exception? link href=html:rewrite page=/styles.css / rel=stylesheet type=text/css Did I do something wrong? Thanks! -e - To unsubscribe,

Re: Struts 2.1.x trunk Could not find property in tests and running ..

2007-11-12 Thread fergunet
But... how to remove them?? It prints thousand of warnings on my app. Jeromy Evans - Blue Sky Minds wrote: This is somehow connected to my question before on a migration guide, is it needed? There's no migration guide from 2.0.x to 2.1.x. I agree one will be needed because you can't

Re: Is directly setting the Action's fieldErrors map OK?

2007-11-12 Thread Gary Affonso
For posterity (and to embrace my schizo tendencies by continuing this conversation with myself)... It now turns out that setting the FieldErrors via getFieldErrors() may not be such a good idea after all. Reading the code makes it look OK, but the API docs for XWork's

RE: Tiles-def.xml

2007-11-12 Thread Zhang, Larry (L.)
That approach works except in your following note it should be tiles:importAttribute name=myList / c:forEach var=item items=${myList} c:out value=${item} / /c:forEach Thanks a lot. -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent:

Re: Is directly setting the Action's fieldErrors map OK?

2007-11-12 Thread Gary Affonso
Ted Husted wrote: Submit a patch :) I thought about it. But then I thought that I'm not feeling qualified to add generics support to a public API (and a heavily used one, at that). I'm pretty good at being a *user* of generic classes but I confess that creating generic classes/methods

Re: [struts] s2 and DispatchAction

2007-11-12 Thread Dale Newfield
Don Brown wrote: Little known fact, but you can specify the method via: ?method:MY_METHOD_NAME This code exists to support the method attribute on the submit tag, allowing you to submit the form to different methods based on what button is clicked. I wondered how the submit tag argument

Re: link href=html:rewrite page=/styles.css/ rel=stylesheet type =text/css error in jsp page

2007-11-12 Thread Dave Newton
--- Emi Lu [EMAIL PROTECTED] wrote: Using Struts2.0.11, I have this line in my jsp, which always cause the exception? link href=html:rewrite page=/styles.css / rel=stylesheet type=text/css Did I do something wrong? You didn't say what the exception was. Is html:rewrite.../ an S1 tag?

Re: Is directly setting the Action's fieldErrors map OK?

2007-11-12 Thread Wes Wannemacher
On 11/12/07, Gary Affonso [EMAIL PROTECTED] wrote: Ted Husted wrote: Submit a patch :) I thought about it. But then I thought that I'm not feeling qualified to add generics support to a public API (and a heavily used one, at that). I'm pretty good at being a *user* of generic classes but

Re: [struts] s2 and DispatchAction

2007-11-12 Thread Jeromy Evans
Dale Newfield wrote: Don Brown wrote: Little known fact, but you can specify the method via: ?method:MY_METHOD_NAME This code exists to support the method attribute on the submit tag, allowing you to submit the form to different methods based on what button is clicked. I wondered how the

Re: [struts] s2 and DispatchAction

2007-11-12 Thread Dave Newton
Does that deal with the submit button name thing? d. --- Jeromy Evans [EMAIL PROTECTED] wrote: Dale Newfield wrote: Don Brown wrote: Little known fact, but you can specify the method via: ?method:MY_METHOD_NAME This code exists to support the method attribute on the submit tag,

[S2] Help for Ajax Tabbed Panel

2007-11-12 Thread Raghuveer Rawat
Hi, I am using Struts2, Tile2, Spring2, Display Tag. I am implementing tabbed panel and all the tabs make remote calls. Each Tab will contain a table which are implemented using DisplayTag. I am implementing this table in a separagte JSP and want its content to be added to tab in the main jsp

Re: [struts] s2 and DispatchAction

2007-11-12 Thread Dale Newfield
Jeromy Evans wrote: I always use the following configuration to minimise the vulnerability:: action name=/home_* method=do{1} /action With that setting, only methods with the prefix do in their name can be executed. ie. ?method:update calls doUpdate() Even if that does exactly what you

Re: [struts] s2 and DispatchAction

2007-11-12 Thread Dale Newfield
Dave Newton wrote: Does that deal with the submit button name thing? --- Jeromy Evans [EMAIL PROTECTED] wrote: action name=/home_* method=do{1} /action I don't believe so. It just makes /home_update.do execute the doUpdate() method (assuming it does the camelcase stuff implied). It

Re: [struts] s2 and DispatchAction

2007-11-12 Thread Jeromy Evans
Dale Newfield wrote: Jeromy Evans wrote: I always use the following configuration to minimise the vulnerability:: action name=/home_* method=do{1} /action With that setting, only methods with the prefix do in their name can be executed. ie. ?method:update calls doUpdate() Even if that

Re: [struts] s2 and DispatchAction

2007-11-12 Thread Jeromy Evans
Dale Newfield wrote: Dave Newton wrote: Does that deal with the submit button name thing? --- Jeromy Evans [EMAIL PROTECTED] wrote: action name=/home_* method=do{1} /action I don't believe so. It just makes /home_update.do execute the doUpdate() method (assuming it does the camelcase

Re: [struts] s2 and DispatchAction

2007-11-12 Thread Dale Newfield
Jeromy Evans wrote: It would be simple enough for the DefaultActionMapper to check a flag as well except I think this would also prevent the method=METHOD_NAME notation from being used in struts.xml as well. Urk! I didn't realize that. If true, that definitely means the simple solution is

what login securityencription are good for struts...?

2007-11-12 Thread msg2ajay
hello friends, I am developing a struts+hibernate application which contains a login page. I am not sure of which tools or API's to use for logn Authentication and encription. Can any bady suggest me which is best for login Authentication and what way can i proceed

Re: what login securityencription are good for struts...?

2007-11-12 Thread Ingo Villnow
Hello, i had the same task and I did the following: - my loginAction starts a method loginService. My service method calls the dao (for example userDAO) to get the encrypted password, which is saved in the database. Now my service method calls a method to encrypt the form given password (i take