RE: which method is better

2006-02-28 Thread R.Vijayaraghavan
Service Locator then handles the > rest, calling > all the related model classes. > > > > On 2/28/06, R.Vijayaraghavan <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > > I usually have set and get methods for all properties in my Model class. > >

RE: which method is better

2006-02-28 Thread R.Vijayaraghavan
makes testing > simpler. You not > going to have test 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.

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 m

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 form.sub

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? rega

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 wil

RE: query string parameters problem

2005-10-21 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 submitt

RE: query string parameters problem

2005-10-21 Thread R.Vijayaraghavan
struts-config.xml ActionForm has the setter and getter methods for name, age and description. Action: public final class QueryParamsAction extends Action { public ActionForward

RE: query string parameters problem

2005-10-21 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-21 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 i

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 >

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=xyz&age=22 I have a form that sets the values of age and name which is then accessed in a html pag

[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 t

RE: Display checkbox

2005-09-30 Thread R.Vijayaraghavan
> Hi all, > > I've this JSP code: > > requestURI="wul_search.do?method=search" pagesize="10" > export="true" defaultsort="8" defaultorder="ascending"> > > select > >href="wul_search.do?method=load" paramId="id" sortable="true" > headerClass="sortable" media=

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: The problem is that I am not able to set a unique value for each checkbox. I am having a column in the recordset stored in a RowSetDynaClass that has the unique values fo

RE: e-mail address validator

2005-09-28 Thread R.Vijayaraghavan
> > Never mind. I found this one on an ASP.Net page: > > [EMAIL PROTECTED],3} This wont verify the mailid: [EMAIL PROTECTED] This will. This can be made more strict by checking the length, like Bryon has done. (\\S+)(@)(\\S+)(\\.)(\\S+)((.)(\\S+))* regards, vijay. -