Insertion Values not get stored in sql server using stored procdure in struts2
bugsnow nowbugs
Greenhorn
Joined: Jun 07, 2010
Posts: 1
posted
0
Help me,
AM using struts2 frame work, am sending the values to db method and i have written code, my try block executed no err msg in console, I get the msg Stored procedure exe succ, but my values are not get insert into table. In sql stored procedure 4 input params and 4 output param has been given. I get values in debug mode for the values for input params, which i get that form bean, but not for output params, here with i add my code please help me with this bug.
//output params in sql
cstmt.registerOutParameter(5, Types.INTEGER);
cstmt.registerOutParameter(6, Types.INTEGER);
cstmt.registerOutParameter(7, Types.VARCHAR);
cstmt.registerOutParameter(8, Types.VARCHAR);
cstmt.execute();
}
//now that the input parameters are set, we can proceed to execute the insertTheForm stored procedure
Please UseCodeTags when posting code or configuration. Unformatted code and configuration is unnecessarily difficult to read. You can edit your post by using the button.
Is this actually a Struts 2 question, or a JDBC question? Assuming the values are getting to the action correctly, it seems more the latter, thus in the wrong forum.