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
Post a Comment