SamranTim
อย่าสุไลลืมทิ้มพงศ์พันธุ์พี่น้องเก่า อย่าสุละเซื้อเหง้าหาญ้องผู้อื่นดี
วันพฤหัสบดีที่ 25 พฤศจิกายน พ.ศ. 2553
Groovy & Grails Get Value From Session
Step by Step for set and get variable
1. initial variable for user name on main.gsp :
....
g:set var="userId" value="UserName" scope="session"
...
2. get variable from var userId on Groovy :
...
println(session.userId)
...
userId is a variable on tag g:set var="userId"
3. result :
UserName
บทความที่ใหม่กว่า
บทความที่เก่ากว่า
หน้าแรก
สมัครสมาชิก:
ความคิดเห็น (Atom)