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

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -