playframework - Play Framework: Page cannot be resolved -
im trying use method routing in controller class
public static result show(string page) { string content = **page**.getcontentof(page); response().setcontenttype("text/html"); return ok(content); }
but im getting import error ,page cannot resolved tried each import , got error
which api need import??
im using link referance
i accidentaly discovered, copied part of documentation, right ? :)
this sample, hypothetical case usage of method getcontntentof(string page)
class page
doesn't exist default in play. can simplify sample (for learning purposes) to:
public static result show(string page) { return ok(page); }
or, better put real logic there.
Comments
Post a Comment