struts2 - How to create database automatically using hibernate with struts 2 framework (Bootstrap file)? -
is there kind of bootstrap file in struts framework, file runs single time when gets started first time. because need insert default values in database when app runs first time.
q: there kind of bootstrap file in struts framework?
a: no. (not without doing atypical @ least... although think there room adding feature struts2 in prescribed way)
however @ higher level (the java ee environment) can need servletcontextlistener, illustration of utilize see: http://www.mkyong.com/servlet/what-is-listener-servletcontextlistener-example/
hibernate struts2 struts
No comments:
Post a Comment