Re: ognl can't handle converting from string to float?

2010-02-11 Thread BlackKnight
= 0 Struts2.1.8 is using xwork 2.1.6 so it didn't have this problem in dealing with 0.0:-) Frankie Cimballi 写道: Frankie, here it works also with "0.0" entered in the UI. Cimballi On Wed, Feb 10, 2010 at 11:32 AM, BlackKnight wrote: Hi Cimballi, Have you tried

Re: ognl can't handle converting from string to float?

2010-02-10 Thread BlackKnight
string to float quite well. Frankie Cimballi 写道: I have a working case with this declaration : private Float latitude; and getXxx setXxx. And in the JSP : Using Struts 2.1.8.1 Cimballi 2010/2/9 BlackKnight : Hi, Just curious, Lib Version: ognl 2.6.11/Struts2.1.6, Initial setting: I

ognl can't handle converting from string to float?

2010-02-09 Thread BlackKnight
Hi, Just curious, Lib Version: ognl 2.6.11/Struts2.1.6, Initial setting: I have a float variable utm1 in my java model class, the initial value is set to to 0f, Problem Desc: when submitting the form, struts2 throw a error something like "can't find the setter methods SetUtm1(String)". Debug a

Any good Open source project using Struts2 + Hibernate+Spring I can learn from ?

2009-10-02 Thread BlackKnight
Hi,Folks, I've been using SSH for a while and are hoping to learn from some open source code if there are any. As for .net there are petshop. and Ejb there are petstore. Are there any good open sourced project using SSH? Thanks! Frank -

Why submit didn't support param

2009-08-18 Thread BlackKnight
Hi, Just currious y struts didn't support in I am having a problem: A list of controls are produced using iterator, user can remove each of them by clicking submit near each of them. If i use , i can send the id of the row via , but the data user has inputed will be lost! Also the iterator wi

checkbox in an iterator!

2009-07-21 Thread BlackKnight
Hi guys, I have a checkbox in an iterator. However after the validation fail. The value of the varible "test" in the valuestack became "true, ", then after servral fail submit the value of the the varible "test" in the valuestack became "true, true,true,true,true,true..". Any Sugges

Struts2.16 Source Code study:Help! What happened in request.getParameterMap()?

2009-07-21 Thread BlackKnight
Hi, guys I am studying struts2 source code. I am wondering how struts2 get those parameters from a submitted webform. So I traced the program from filterdispatch.class into DefaultActionMapper.class(). I found a method public void handleSpecialParameters(HttpServletRequest request, ActionMapping

How to do pager with two select?

2009-07-05 Thread BlackKnight
Hi guys, I got a problem implementing a Pager with two select. I have 2 select, a submit button and an iterator in a s:form,. Once user hit submit, the content in select will send to a action as criterias and load the data. I have no problem with that. BUT, BUT how can I add a pager in this for

Re: Generating Dynamic radio button list

2009-06-25 Thread BlackKnight
Jim Kiley ??: You need to provide Struts with an actual List (or Set or the like). It looks like you are providing a single String. You will need to parse that String out into a List of Strings in order for to treat it as a List. jk 2009/6/24 BlackKnight Hi, I am trying to generate a

Generating Dynamic radio button list

2009-06-24 Thread BlackKnight
Hi, I am trying to generate a dynamic raido buttom list using where optionvalue is stored in database equal #{'Faculty':'Faculty','Staff':'Staff','Resident':'Resident','Intern':'Intern'} however struts2 doesn't generate the radio button list intead he generate only 1 radio button with value eq