Thanks for your reply, it's working fine But i have one doubt is it gives any problem to other user Objects in the other classes.
please suggest me. Harps wrote: > > Yes you are right. You need to add UserConverter to the > xwork-conversion.properties file. At which point your save should work. > > You need to create the directory under webapp called 'template' and then > 'simple' under it. > > Then get select.ftl out of the struts2-core jar and put it under there and > make the changes I suggested or something like them. > > The ftl files are freemarker which underlies struts2 tags. I just poked > around in there and worked it out myself. > > > sudhakargupta wrote: >> >> Hi Harps, >> >> Thanks for your reply, i written the UserConverter class as you said, >> but i am unable to find out the template/simple directory and the >> fileName called select.ftl >> >> I run the project without the select.ftl file and try to add or >> update the record then it gives an error like Invalid field value for >> field "purchase.user".. >> >> I found xwork-conversion.properties file and it contains the code like >> java.util.Date=org.appfuse.webapp.action.DateConverter is there any need >> to write the UserConverter in this file. >> >> Please suggest me and can you please explain me what is the .ftl files >> and uses or suggest any tutorials on that one. >> >> >> >> > > ----- --- Sudhakar -- View this message in context: http://www.nabble.com/Struts2-Many-to-one-New-Record-Save-problem-%28JSP-Drop-down%29-tp23442385s2369p23478468.html Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net For additional commands, e-mail: users-h...@appfuse.dev.java.net