Hello Friends,
I am new to
struts & jsp.I am developing a project in struts.I have 1
jsp page called editProfile.jsp.On submitting this page it will call 1 action class.The action class in turn will call the Plain old
java class where I have written the logic for updating User Profile.
I have created context-param in web.xml for database connection information like dbURL , dbUserName , dbPassword , jdbcDriver.Now I want to use these connection information in my Business logic(Plain Old Java Class).As we can use context parameter only in jsp &
servlets , I am setting the variables of my business logic class with these context param in jsp itself.
now when I am calling the updateProfile method of Business logic class from Action class it is giving error as all the connection variables which I set in jsp for my business logic class has become null again.
I am not getting.If once I have set those variables how come they are becoming null again???Please help me.Any Help will be highly appreciated.Thank you in advance.
[ May 11, 2008: Message edited by: Neha k Agrawal ]