I have tried the example with the last mercurial version and it works well.
By seeing the output screenshot it seems like (maybe) you have not created the corresponding view in the correct path: For web2py to use the view, it should be placed here: [application path]/views/default/first.html Also, you can set a specific view location with the response.view parameter that takes a url (to be placed at the controller or model section), although that is not the usual way of linking views to controllers On 12 feb, 04:12, codingstar <[email protected]> wrote: > Dear web2py users! > I am study on web2py. > I have a problem. > > I try to apply web2py example on official book > (http://web2py.com/books/default/chapter/29/3 > ) > > ######### example > ################################################################## > Write the corresponding actions in the default controller: > > def first(): > return dict() > > def second(): > return dict() > > Then create a view "default/first.html" for the first action, and > enter: > > {{extend 'layout.html'}} > What is your name? > <form action="second"> > <input name="visitor_name" /> > <input type="submit" /> > </form> > Finally, create a view "default/second.html" for the second action: > > {{extend 'layout.html'}} > <h1>Hello {{=request.vars.visitor_name}}</h1> > > ############################################################################# > > However, I got a different result on my browser. > > (http://web2py.com/books/static/books/29/document.source.bbc0fb2590824... > ) > > I have a no submission form on my browser, no input-box too. > > my case :http://codingstar.net/mycase.png > > Why it happens? > > Please tell me about that.. > > *. My working environment > - OS : win7 64bit > - python : 2.7.2 > - web2py : 1.99.4 > - browser : chrome 16.0.912.77 m

