Search code examples
jakarta-eestruts2struts

struts2 : Invalid field value for field?


<s:iterator value="company.locations"  status="s" ><br>
<s:hidden name="company.locations[%{#s.index}].position.longitude" value="%{position.longitude}" ></s:hidden>
.....

i get position from google map, when i send them to struts action, they work fine as long as they are a positive numbers. otherwise (negative number) it give me this error:

Invalid field value for field "company.locations[0].position.longitude" in the

<s:fielderror />
 

the latitude and longitude are double

class graph:

company > List< Location >

Location > Position(latitude, longitude)

<s:hidden name="company.locations[%{#s.index}].position.longitude" value="%{position.longitude}" ></s:hidden>

i don't use validation for this fields i redefined validate method only for redirection purpose, no validation staff in it.

what could be the problem, help me please?


Solution

  • i have used a newer struts libraries, and this solved my problem.