Re: Implementation of new row functionality of HTML table in Struts

2005-12-18 Thread atta-ur rehman
now i understand you're renaming the dynamically added textboxes thru Javascript? right? if that's the case your renaming looks good to me. can you do the trick in the form's reset() method; that is, set the a new Customer array to the forms's property with something like: String value = request.g

Re: Implementation of new row functionality of HTML table in Struts

2005-12-18 Thread Irfan Shaikh
No, user can add has many row he needed before submit... I had just added one row to handle this scenario... It should work for as many row user has added... On 12/19/05, atta-ur rehman <[EMAIL PROTECTED]> wrote: > > okay, so you're saying use can add only ONE row dynamically before submit? > and

Re: Implementation of new row functionality of HTML table in Struts

2005-12-18 Thread atta-ur rehman
okay, so you're saying use can add only ONE row dynamically before submit? and that the newly added row's HTML code is: if that's the case, in your ActionForm's reset method, detect that user has added a new row, maybe thru request.getParameter("cus

Re: Implementation of new row functionality of HTML table in Struts

2005-12-18 Thread Irfan Shaikh
Once again Generated HTML :

Re: Implementation of new row functionality of HTML table in Struts

2005-12-18 Thread Irfan Shaikh
JSP Page : row is hardcoded (with index) on JSP page for simplicity. Now, on submit it give me this error.. javax.servlet.ServletException: BeanUtils.populate org.apache.st

Re: Implementation of new row functionality of HTML table in Struts

2005-12-18 Thread atta-ur rehman
Irfan, By looking at the HTML source of the your page, please show me the name of textboxes added thru and name of the textboxes you've added thru Javascript. ATTA On 12/17/05, Irfan Shaikh <[EMAIL PROTECTED]> wrote: > > I am storing data objects into an Array for initial rows and when user >

Re: Implementation of new row functionality of HTML table in Struts

2005-12-18 Thread Irfan Shaikh
Thanks for the reply Michael, 1. Yes, I am adding a row into the browser's DOM. Basically, client requirement is to implement a table like structure where user can add a new row to save new record. i need to know how to handle scenario where client changes (adding a new row) gets notif

Re: Input validation and repair

2005-12-18 Thread Dakota Jack
Paul's solution, in this regard, seems more design consistent. On 12/18/05, Dakota Jack <[EMAIL PROTECTED]> wrote: > > I would think that doing validation in your action would be > contra-indicated as a design matter, if you are doing Struts struts rather > than one of the other struts. > > On 12/

Re: Input validation and repair

2005-12-18 Thread Dakota Jack
I would think that doing validation in your action would be contra-indicated as a design matter, if you are doing Struts struts rather than one of the other struts. On 12/18/05, Rick R <[EMAIL PROTECTED]> wrote: > > On 12/18/05, Josh McDonald <[EMAIL PROTECTED]> wrote: > > > > What's the best plac

Re: Struts Menu Vs Struts Layout

2005-12-18 Thread Yves Sy
Another option would be SiteMesh. If you like working on the fringes of technology though, I recommend AJAX or OpenLaszlo... Br, -Yves- On 12/18/05, Agnisys <[EMAIL PROTECTED]> wrote: > > Hi, > I need to create an application with lots of Dynamic GUI features (like > dynamic number of > Panes)

Re: Input validation and repair

2005-12-18 Thread Josh McDonald
Sweet, that's good to know. Not much use in an environment of such inertia and red tape tho :) I believe it'll be 1.1 for many moons after my contract is up -- "His comrades fought beside him, Van Owen and the rest... But of all the thompson gunners- Roland was the best." Josh McDona

Re: Input validation and repair

2005-12-18 Thread Paul Benedict
>>it should be an URL and patch it up (like > 'www.google.com' into >>'http://www.google.com/'). This is a bug which was fixed in Struts 1.2.8 by upgrading to commons validator 1.1.4. Paul __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the be

Re: Input validation and repair

2005-12-18 Thread Josh McDonald
Thanks for your feedback guys, what I've got is some URL validation (just regexes, nothing magic) but I've also got some smaller regexes to detect stuff that looks like it should be an URL and patch it up (like 'www.google.com' into 'http://www.google.com/'). For now I've just got it in the validat

Re: Input validation and repair

2005-12-18 Thread Rick R
On 12/18/05, Josh McDonald <[EMAIL PROTECTED]> wrote: > > What's the best place to put input validation and possible repair? I actually prefer to do the validation checks in my DispatchAction. The reason being is that, inevitably, you'll end up with a case where you'll have some Lists you'll wan

Re: Input validation and repair

2005-12-18 Thread Paul Benedict
Josh, You can use a combination of the Commons Validator plus any addition complex validation in the validate() method of the action form. No one forces you to use any method. However, the Commons Validator is sufficient for 95% of the data validation you need so make sure you take good advanta

Input validation and repair

2005-12-18 Thread Josh McDonald
What's the best place to put input validation and possible repair? Should I extend some struts validator and put it in the struts-config.xml attached to every form that uses it? Just wondering what's the "best practice" on that sort of thing, and if the strut validator framework allows me to change

Re: How to keep a request Attribute available (from first action) after second action is called

2005-12-18 Thread Paul Benedict
Neils, The only thing in common between request 1 and request 2 is the user session. If you want something to persist between requests, place it in the session; then clean the session when finished. Paul __ Do You Yahoo!? Tired of spam? Yahoo!

How to keep a request Attribute available (from first action) after second action is called

2005-12-18 Thread niels
An action (ActionOne with scope=request) is called which puts a result list on an attribute like: request.setAttribute("listResult", list); This result is displayed in a jsp. After that a second action (ActionTwo) is called which forward to another jsp. How can I make the "listResult" available in

Struts Menu Vs Struts Layout

2005-12-18 Thread Agnisys
Hi, I need to create an application with lots of Dynamic GUI features (like dynamic number of Panes). Which one is more suitable for the job: Struts Menu or Struts Layout? Or is there a more appropriate 3rd option? Thanks for any pointers. Anupam. ___

RE: Specify a file name when using DownloadAction

2005-12-18 Thread Vu, Thai
Sorry everybody. I don't understand why I didn't see the last part of that wiki page. Sorry again. Another question: I use a BaseAction to make sure that everybody who accesses all my actions in the application must login first. This is what I do: abstract class BaseAction extends Action { pu

Re: chinese characters and bean tags

2005-12-18 Thread news
Hello Jose, exactly! This solves my problem. Fortunately I do not have so many chinese fields in my allplication. So it should not be complicated to close all possible security holes. Thanks a lot, Milan > Have you tried using filter="false"/>? > > filter="false" means the tag will not "escape"