i used oracle10g ,spring 2.5.4,hibernate 3.2.6.ga to set up my web application. I need to store image into my database. My config as following:
<bean id="sessionFactory"...
Type: Posts; User: minikiller; Keyword(s):
i used oracle10g ,spring 2.5.4,hibernate 3.2.6.ga to set up my web application. I need to store image into my database. My config as following:
<bean id="sessionFactory"...
when a user is logined, i want to prevent other user login my system using same user id and same password. how to process single user login in this condiction.thanks
thank for your reply! if i select spring as my object manager,so i can not use factory design pattern. Object that i want to create is a bean defined in spring. I do not want my code depend on...
i know implments FactoryBean interface can get object,but its getObject methods doesn't have an parameter. I don't know how to pass parameter to getObject methods. Anybody can give me example,thanks!
this problem is how to create object dynamic under spring. if i use getBeanName method , it just means to create new object.but i always need factory class to decide which object is return. how to...
public class Factory{
public static Sample creator(int which){
if (which==1)
return new SampleA();
else if (which==2)
return new SampleB();
}
i found the javadoc of MethodInvokingFactoryBean
"This use case is not supported by factory-methods, since a return value is needed to become the bean."
in my example, ABaseObject and BBaseObject...
public class BaseObjectFactory{
public static BaseObject createInstance(String type){
if (type.equals("a"))
return new ABaseObjce();
if (type.equals("b"))
return new...
i know that when you use getBeanName methods means to create a new object . but i wonder how to use static method in a bean.
i select WebWork as my web framework, i want to know if i can get user detail info from session. I woder where can i process in this situation.thanks