java - Accessing object fields added to model map in jsp page -
in spring
web project, have added class object in model map
. class
public class projectdetailsbean { private string title; private string type; private string addedby; private string status; private string updatedon; private string relavantbranch; // getters , setters here }
after setting attributes projectdetailsbean
object instance, add model map
in controller
class.
epb
instance.
model.addattribute("projectdetails", epb);
now need access fields of projectdetails
in jsp
page. values need assigned separate input fields. cannot figure out how that. please tell me how that.
thank you!
you need access through expression language
${projectdetails.title} ${projectdetails.addedby} ....... on
Comments
Post a Comment