creating list in dropdown using struts

2009-04-19 Thread kunla
creating list in dropdown using struts : In action class list.add(new LabelValueBean("ID","Name")); In Jsp * Select Item Select In Form : getter and setter for selectedItem. query : Now I want to retrieve ID and Name both in action class.I am able to retrieve ID,But i want to r

Re: Struts 2.1 book

2009-04-19 Thread Yanto
thanks wes for the information...will try the MEAP version then Rgds Yanto On Mon, Apr 20, 2009 at 9:55 AM, Wes Wannemacher wrote: > On Sunday 19 April 2009 21:47:24 Yanto wrote: > > Hi, > > > > Just wondering currently is there any book that cover Struts 2.1 ? > > try to google but so far

Re: Struts 2.1 book

2009-04-19 Thread Bhaarat Sharma
wow. books from both dave and wes. maybe now S2 will get that push rails has been getting :) On Sun, Apr 19, 2009 at 10:39 PM, Chris Pratt wrote: > I'm sure there would be quite a few who would sign up for that deal (me > included). > (*Chris*) > > On Sun, Apr 19, 2009 at 7:28 PM, Martin Gaint

file upload interceptor alternative

2009-04-19 Thread Andy
It seems there are some big holes in the file upload interceptor. Validation doesn't work as stated and and max file size configs are not being used properly. I verified by checking the 2.1.6 JIRA list. Is there any "robust" alternative that people are using? Thanks ___

Re: Struts 2.1 book

2009-04-19 Thread Chris Pratt
I'm sure there would be quite a few who would sign up for that deal (me included). (*Chris*) On Sun, Apr 19, 2009 at 7:28 PM, Martin Gainty wrote: > > is anyone proofreading?..i'll sign up for a free copy > .. > Martin > _ > Disclaimer and Confidentiality/Ve

RE: Struts 2.1 book

2009-04-19 Thread Martin Gainty
is anyone proofreading?..i'll sign up for a free copy .. 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 receiver, then we ask

Re: Struts 2.1 book

2009-04-19 Thread Wes Wannemacher
On Sunday 19 April 2009 22:07:00 Dave Newton wrote: > Yanto wrote: > > Just wondering currently is there any book that cover Struts 2.1 ? > > try to google but so far not found yet. > > Struts 2 Web Application Development includes S2.1, but is more of an > S2.1-based end-to-end webapp development

Re: Struts 2.1 book

2009-04-19 Thread Dave Newton
Yanto wrote: Just wondering currently is there any book that cover Struts 2.1 ? try to google but so far not found yet. Struts 2 Web Application Development includes S2.1, but is more of an S2.1-based end-to-end webapp development book rather than S2.1 reference, for which we have the documen

Re: Struts 2.1 book

2009-04-19 Thread Wes Wannemacher
On Sunday 19 April 2009 21:47:24 Yanto wrote: > Hi, > > Just wondering currently is there any book that cover Struts 2.1 ? > try to google but so far not found yet. > > Thanks & Regards > Yanto Yes, my book is in the works and when published, it will cover 2.1. You can find a link to it in my sig

Struts 2.1 book

2009-04-19 Thread Yanto
Hi, Just wondering currently is there any book that cover Struts 2.1 ? try to google but so far not found yet. Thanks & Regards Yanto

Re: Struts2 Validation not working with theme simple

2009-04-19 Thread Dave Newton
Bhaarat Sharma wrote: thanks dave! worked fine. I was trying too many things so got confused. I have one further question regarding validation. Is it possible to validate a text field only when certain strings are selected from the multiple drop down box. Basically I want to make the text f

Re: Struts2 Validation not working with theme simple

2009-04-19 Thread Bhaarat Sharma
thanks dave! worked fine. I was trying too many things so got confused. I have one further question regarding validation. Is it possible to validate a text field only when certain strings are selected from the multiple drop down box. Basically I want to make the text feild required only when

Re: Struts2 Validation not working with theme simple

2009-04-19 Thread Dave Newton
Bhaarat Sharma wrote: by the way. I can do without having errors right beside the textfield. I can have them grouped up top Are you saying the tag doesn't render field errors in the "simple" theme? The template file sure makes it look like it does. Dave --

Re: Struts2 Validation not working with theme simple

2009-04-19 Thread Dave Newton
Bhaarat Sharma wrote: At this time I cant afford to change the theme of the site. Because that breaks the html on a lot of pages and would require a lot of effort to correct those pages. Changing to show field error messages by hand would most likely entail significantly more work. show fi

Re: Struts2 Validation not working with theme simple

2009-04-19 Thread Bhaarat Sharma
by the way. I can do without having errors right beside the textfield. I can have them grouped up top On 4/19/09, Bhaarat Sharma wrote: > Stop using the "simple" theme. > > The "simple" theme tags don't display error messages--they're simple. > You'll either need to switch themes, show field err

Re: Struts2 Validation not working with theme simple

2009-04-19 Thread Bhaarat Sharma
Stop using the "simple" theme. The "simple" theme tags don't display error messages--they're simple. You'll either need to switch themes, show field error messages by hand (if you want the messages near the fields), or modify/extend/create a theme to emit the HTML you want. At this time I cant af

Re: Struts2 Validation not working with theme simple

2009-04-19 Thread Dave Newton
Bhaarat Sharma wrote: However, If i have the following line in my struts.properties then the validation stops happening and I do not see any errors. struts.ui.theme=simple Technically, the validation does not stop happening. Has someone seen something like this before? Yes, anybody using th

Struts2 Validation not working with theme simple

2009-04-19 Thread Bhaarat Sharma
I have a very weird error. I am trying to do a very simple basic validation like this example: http://struts.apache.org/2.x/docs/basic-validation.html However, If i have the following line in my struts.properties then the validation stops happening and I do not see any errors. struts.ui.theme=sim

Re: Query regarding optional method attribute in action tag - struts.xml

2009-04-19 Thread Dave Newton
HariniKaushik wrote: getUserList would just return the List(java.util.List) And its just the method that 'll get called when the action Register_getUserList action is triggered. I have combined two actions together through Register_* action names. And no validation is done for getUserList method.

Re: Query regarding optional method attribute in action tag - struts.xml

2009-04-19 Thread HariniKaushik
Thanks for the reply. getUserList would just return the List(java.util.List) And its just the method that 'll get called when the action Register_getUserList action is triggered. I have combined two actions together through Register_* action names. And no validation is done for getUserList method.

Re: Query regarding optional method attribute in action tag - struts.xml

2009-04-19 Thread Dave Newton
HariniKaushik wrote: Hi All, I feel this is the correct Forum where in my doubts 'll be cleared. I've created Login,UserRegistration page and UserView page(where in admin only can view the users) And this is my action tag for Register_createUser and Register_getUserList common/{1}.jsp

Query regarding optional method attribute in action tag - struts.xml

2009-04-19 Thread HariniKaushik
Hi All, I feel this is the correct Forum where in my doubts 'll be cleared. I've created Login,UserRegistration page and UserView page(where in admin only can view the users) And this is my action tag for Register_createUser and Register_getUserList common/{1}.jsp common/usersLis