eclipse - Add label to JSP and change label text from java code? -


im new jsp. tried searching kind of function no luck. tried doing this doesn't work.

can 1 me on how declare label on jsp , change it's value java code. im getting value oracle database have no idea on how pass value front end? need pass string label :( appreciated.

in jsp page:

<% example c = new example(); %> <label><%=c.getname()%></label> 

your class example.java:

private string name="igarren";  public string getname() {     return name; }  public void setname(string name) {     this.name = name; } 

but should read ajax @gaurav said


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 -