Hi Anoop,
YOu can use the JNDI context to get the Hibernate's SessionFactory.
1)
in hibernate-cfg.xml give the jndi name as below
2)
in one of your startup servlet or first class handling the request for
session factory creation (we had a start up servlet) , you can have the
session f
hI,
in your *.struts.xml file ( a subcontext struts configuration file)
Define a global mapping to jsp like
../Error.jsp
map the exception to the global mapping defined above
Note : I have kept this is in one of the sub context struts configuration
file which gets included in the str
2 matches
Mail list logo