Inject RequestGlobals into the EntityInterceptor and do requestGlobals.getHTTPServletRequest().getRemoteAddr() to get the ip.
2008/1/20, Sven Homburg <[EMAIL PROTECTED]>: > thats were my next question: > > how can i realize the transfer of the clientip from tapestry session to the > interceptor ? > > 2008/1/20, Ted Steen <[EMAIL PROTECTED]>: > > > > Or clientIp, good stuff! > > > > 2008/1/20, Davor Hrg <[EMAIL PROTECTED]>: > > > Very nice :) > > > user_id: created_by, modified_by can also be added this way :) > > > > > > Davor Hrg > > > > > > On Jan 19, 2008 8:09 PM, Chris Lewis <[EMAIL PROTECTED]> wrote: > > > > Hello all. > > > > > > > > I'm writing to share a link to a wiki I just posted about getting some > > > > auto-magic behavior for entities via tapestry-hibernate. Using this > > > > quick method you can simply add 'created' and/or 'modified' fields (of > > > > type java.util.Date) to your entity classes and they will be updated > > > > properly when needed - no matter their entity type. This was inspired > > by > > > > the similar feature found in RoR which I found to be a great time > > saver. > > > > Anyway the code is yours to modify as needed, so if you need more > > > > restrictions and/or sophistication, hack away! > > > > > > > > http://wiki.apache.org/tapestry/Tapestry5BrainlessEntityTimestamping > > > > > > > > sincerely, > > > > chris > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > /ted > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > with regards > Sven Homburg > -- /ted --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]