Struts 2

2009-08-28 Thread Sonu S
Hi, i am using struts 2. i want to check some condition in my jsp and based on result i want to perform some task. i have written //DO something // Do Something else for this i have created one hidden field also in JSP named status and have getter and setter method in Action class.

[S2] how to use multiple resource files in struts2

2009-05-06 Thread Sonu S
Hi, I am trying to use two or more resource files in struts2, like this struts.custom.i18n.resources=Resources1 struts.custom.i18n.resources=Resources2 but it is not working (in JSP pages only values from Resource2 are being displayed and for keys are being displayed from resource1) please tell

ArrayList in tag

2009-01-12 Thread Sonu S
Hi all, I am using Struts 1.2. I have one ArrayList and one HashMap in my form bean. Name of these collection are myList and myMap. Form bean name is myForm and scope is request. I would like to know how to display values from arraylist and hashmap to tag for creating drop down list. Thank you

Struts list

2008-06-25 Thread Sonu S
HI, I have to show list in my jsp page. I am using i am getting two lists from data base and it is in employee form bean: first list is for employee no and second list is for name. i want to display employee name in and want to use employee no as VALUE in so list would have employee no as val

struts- validation messages

2008-03-29 Thread Sonu S
Hi, I am using struts in my application. to validate users entry in jsp i have my validation method. and i am calling that method in action class. code is below:(I am not using struts' validations ) // in action class, calling validate method ActionErrors errors = myForm.validate(mapping,request

html:radio in struts

2008-03-19 Thread Sonu S
Hi, I have something like this in JSP : MALE FEMALE 1) i want to know how to make "Male" to be default selected when page is loaded 2) I would set the value in form bean and on second page i would display radio buttons to change the value. i would like to know how to make one radio button selec

struts 1.2 html:select and submit button

2008-03-17 Thread Sonu S
HI, I am using struts 1.2 in my web application. I have to display one list list will be build dynamically. User can select any option. base on the user's selection page will be refreshed (need to hit the database and display information in other fields on same page.) I need to know two th

reset() method

2006-09-01 Thread Sonu S
Hi, I am using struts in my application. i am using reset and validation. i am not writing any validation method. i am using struts' validation framework. validation is working. reset also works fine in application if i enter some values in form (text box) and press reset, it clears form values.

email valodation

2006-08-27 Thread Sonu S
hi all, i am using struts' validation. i want to validate fields for required, mask and email. required and mask validation works fine but email validation is not working.it gives error like validateEmail method not found.. i have given pls tell me how to

error in mapping

2006-08-25 Thread Sonu S
hi 2 all, I am using dynaValidatiorForm in my application. i am getting some error related to mapping. i checked my code everything seems to be ok. My code is. in struts config: in JSP i am giving in web browser i am getting 400 Invalid path was

accssing object in JSP

2006-06-14 Thread Sonu S
Hi 2 all I am using struts in my application. In my application i am getting array of objects of MyClass. This Class has methods like getName(), getId(),. I am getting this array of object in Action class. I want to use these array in JSP. For this i am doing in Action Class i am doing.

Accessing List in JSP

2006-05-11 Thread Sonu S
Hi 2 all I am using Struts 1.2 in my action class i am writing List testList = new ArrayList(); testList.add("str 1"); testList.add("str 2"); testList.add("str 3"); MyForm myForm = (MyForm) form; myForm.setMyList(testList); In Action Form i have done public class myForm extends ActionForm{