Re: Struts 1: how to use different parameter names from html field names

2009-05-03 Thread Paul Benedict
I believe HDIV (www.hdiv.org) provided something like this. On Tue, Dec 23, 2008 at 3:18 PM, Givler, Eric wrote: > Can't you do something like this: > >      StringBuffer sb = new StringBuffer(255); > >           Map fields = BeanUtils.describe( xmlbean ); >      Iterator iter = fields.keySet().i

RE: Struts 1: how to use different parameter names from html field names

2008-12-23 Thread Givler, Eric
Can't you do something like this: StringBuffer sb = new StringBuffer(255); Map fields = BeanUtils.describe( xmlbean ); Iterator iter = fields.keySet().iterator(); while (iter.hasNext()) { String key = (String) iter.next(); String value = String.value

Re: Struts 1: how to use different parameter names from html field names

2008-12-21 Thread farmer2008
Thanks Dave. I'll take your suggestions and re-consider how to do it. newton.dave wrote: > >> It's worth an effort as a web page quite possibly won't work >> properly if its query string is longer than 255 characters. > > It's not that I don't understand the problem, I just don't see it being

Re: Struts 1: how to use different parameter names from html field names

2008-12-21 Thread Dave Newton
> It's worth an effort as a web page quite possibly won't work > properly if its query string is longer than 255 characters. It's not that I don't understand the problem, I just don't see it being much of an issue. > JavaScript can achieve it but it's not a good choice because > clients may di

Re: Struts 1: how to use different parameter names from html field names

2008-12-21 Thread farmer2008
Thanks Dave for your quick response. It's worth an effort as a web page quite possibly won't work properly if its query string is longer than 255 characters. JavaScript can achieve it but it's not a good choice because clients may diable it. Struts 1 render "name" attribute of text field from t

Re: Struts 1: how to use different parameter names from html field names

2008-12-21 Thread Dave Newton
There's nothing like that built-in. Seems like it'd be trivial to implement via JavaScript, but I'd question whether or not it's worth the effort. --- On Sun, 12/21/08, farmer2008 wrote: From: farmer2008 Subject: Struts 1: how to use different parameter names from html field names To: user@str