which method is better

2006-02-28 Thread R.Vijayaraghavan
Hello, I usually have set and get methods for all properties in my Model class. After submitting a form, I pull out all the property values (form fields) in the Action class from the ActionForm object, set the values of all properties in the model from the action class and then call a particular

RE: which method is better

2006-02-28 Thread R.Vijayaraghavan
cases that span multiple layers. Let your Actions pull out data from the ActionForm, wrap it and pass it to the Service Locator, then the Service Locator then handles the rest, calling all the related model classes. On 2/28/06, R.Vijayaraghavan [EMAIL PROTECTED] wrote: Hello, I usually

RE: which method is better

2006-02-28 Thread R.Vijayaraghavan
, R.Vijayaraghavan [EMAIL PROTECTED] wrote: Hello, I usually have set and get methods for all properties in my Model class. After submitting a form, I pull out all the property values (form fields) in the Action class from the ActionForm object, set the values of all properties in the model

html:file clears after validate returns error

2006-02-21 Thread R.Vijayaraghavan
Hello, The html:file field clears after there is an error in the form's validate() method. The user then has to again select the file for upload. How do I retain the file selected by the user even after a validate error. I searched the internet but could not find anything. regards, vijay.

fill combo box based onClick of previous combo box

2006-01-19 Thread R.Vijayaraghavan
Hello, I have an application where I have 3-4 combo boxes. After selecting a particular value from the first combo box, the second combo box should be filled with values from the database. Likewise for other combo boxes. How can this be implemented in Struts. Will this be feasible: Call

RE: logout/Back Button problem

2005-11-23 Thread R.Vijayaraghavan
-Original Message- From: Michael Jouravlev [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 15, 2005 9:18 PM To: Struts Users Mailing List Subject: Re: logout/Back Button problem Firefox? Add no-store: This does not work in IE. Any other thing which can be tried? regards,

RE: query string parameters problem

2005-10-22 Thread R.Vijayaraghavan
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, October 21, 2005 7:01 PM To: user@struts.apache.org Subject: RE: query string parameters problem R.Vijayaraghavan asked: [snip] The action is set to /submit.do. Since I am only sending

RE: query string parameters problem

2005-10-22 Thread R.Vijayaraghavan
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, October 22, 2005 8:36 AM To: Struts Users Mailing List Subject: Re: query string parameters problem Hi, You should use request.getParameter(name)

RE: query string parameters problem

2005-10-22 Thread R.Vijayaraghavan
struts-config.xml form-beans form-bean name=QueryParamsForm type=app.QueryParamsForm/ /form-beans action-mappings action path = /QueryParams type = app.QueryParamsAction name = QueryParamsForm

RE: query string parameters problem

2005-10-22 Thread R.Vijayaraghavan
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, October 22, 2005 12:08 PM To: Struts Users Mailing List Subject: RE: query string parameters problem Are you able to see the 'age' and 'name' attributes in the address bar after submitting the

RE: query string parameters problem

2005-10-22 Thread R.Vijayaraghavan
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, October 22, 2005 12:25 PM To: Struts Users Mailing List Subject: RE: query string parameters problem The scope of the ActionForm is session means that the last submitted ActionForm will remain

query string parameters problem

2005-10-21 Thread R.Vijayaraghavan
Hello, I have 3 variables, namely age, name and description. I have the values for name and age before sending the request. That is, my URL would look like http://localhost:8080/vijay/submit.do?name=xyzage=22 I have a form that sets the values of age and name which is then accessed in a html

RE: Load datasource config without action classes

2005-10-21 Thread R.Vijayaraghavan
Configure a JNDI data-source. Different application servers do it differently. regards, vijay. -Original Message- From: M4RC0 [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 18, 2005 4:22 PM To: Struts Users Mailing List Subject: Load datasource config without action classes Hi

[OT] how actually to make a shoping cart

2005-10-10 Thread R.Vijayaraghavan
Hello, I am very new to struts, moreover new to web development. I have to make a shopping cart and I am using displaytag to display the search results. Problems I am facing: 1. What actually should happen when a user selects a set of products and then clicks on the 'add to cart' button. Should

display checkbox with unique value using displaytag

2005-09-29 Thread R.Vijayaraghavan
Hello, I am using displaytag to display a table of records. I am able to add a checkbox as the first column using: display:column html-el:checkbox property=checkbox_name value= / /display:column The problem is that I am not able to set a unique value for each checkbox. I am having a