Simple Login Th

  • Published on
    01-Sep-2014

  • View
    2.762

  • Download
    3

DESCRIPTION

login form Grails Grails

Transcript

<ul><li> Grails login/logout Simple tutorial http://khomkrit.wordpress.com </li> <li> Part I View </li> <li> &gt; grails create-app simple-login controller user login logout &gt; grails create-controller user </li> <li> index.gsp grails-app/views/user/ Directory </li> <li> Login index.gsp </li> <li> Login index.gsp style form username password </li> <li> Login form </li> <li> Login HTML form Grails HTML form action request </li> <li> Login request action login controller ? controller Grails form request controller index.gsp /grails-app/user/ directory request user controller </li> <li> Login controller request </li> <li> Grails Application &gt; grails run-app http://localhost:8080/simple-login/user </li> <li> form Login Grails action </li> <li> action ? login.gsp action login action login request form </li> <li> Part II Action </li> <li> Tip , domain controller , restart web server restart web server controller action domain </li> <li> action action controller request controller user action name UserController.groovy action login </li> <li> controller controller /grails-app/controllers/ </li> <li> controller UserController.groovy action login </li> <li> controller http://localhost:8080/simple-login/user/ login </li> <li> controller Grails 404 ! ? </li> <li> action Grails action request http://localhost:8080/ simple-login/user/login, action login user controller Grails login.gsp / grails-app/views/user/ render ! </li> <li> controller login.gsp Grails render client method render Grails render client </li> <li> controller http://localhost:8080/simple-login/user/ login </li> <li> controller Grails :) </li> <li> controller logic login login session client logic </li> <li> Part III logic login </li> <li> login login parameter params code </li> <li> login login username admin password pass login login </li> <li> login user login Grails redirect user login (/user/ index) flash flash flash </li> <li> flash flash redirect login (index.gsp) </li> <li> flash redirect action index Grails index.gsp grails-app/ views/user/ directory. flash message action index index.gsp </li> <li> flash ${flash.message} login ${} </li> <li> flash login login flash message </li> <li> session login </li> <li> Logout action logout logout session.user logout </li> <li> Loginuser login logic login link logout , </li> <li> login : </li> <li> login link logout </li> <li> login HTML controller Grails controller </li> <li> Check Point! login login link logout form login login form login login flash message </li> <li> Grails CSS include CSS Grails class=message </li> <li> flash.message </li> <li> style /web-app/ css/ resource /web-app/images/ web-app/js/ </li> <li> Layout template Filter Tag Library Service URL Mapping </li> <li> Thank You Font: 2005_iannnnnGMO - http://www.f0nt.com </li> </ul>

Recommended

View more >