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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -