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

javarouting

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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -