Exception while registering "AnnotationValidationInterceptor" Class in JBOSS 5.1.0 GA...

2009-12-07 Thread Muthu Velappan
Hi, I got a weird issue in my test environment today. So far, we have been using Tomcat 6.0.14 as our web server and everything works fine. Today, I moved that to JBOSS 5.1.0 GA for testing purpose and I got an exception trace as pasted below. It says that exception in registering "org.apache.s

Re: SQL ExcuteQuery

2009-12-07 Thread Saeed Iqbal
I dont see you make database connection like this for example. conn = DriverManager.getConnection ("jdbc:mysql://your_host:3306/dbName","dbUser","dbPass"); On Tue, Dec 8, 2009 at 10:59 AM, Nguyen Xuan Son wrote: > dear all > I've written > Connection conn = null; > PreparedStatement pstmtnam

RE: SQL ExcuteQuery

2009-12-07 Thread Vishnu Vyasan Nelliparmbil
Move your sql before the prepared statement. Sql =" sql = "UPDATE tbl_content_admin_accounts SET CA_PASSWORD = ? WHERE ROW_ID = ?"; pstmtname = conn.prepareStatement(sql); pstmtname.setString(1, "123456"); pstmtname.setString(2, UserID); pstmtname.executeQuery(); This will work for sure... BTB R

Re: SQL ExcuteQuery

2009-12-07 Thread Sushim Saini
sorry use executeUpdate On Tue, Dec 8, 2009 at 11:53, Nguyen Xuan Son wrote: > dear singgh > I've tried to user the excuteUpdate but the errors appear > detail is > > java.sql.SQLException: Can not issue executeUpdate() for SELECTs >at com.mysql.jdbc.SQLError.createSQLException(SQLError.

Re: SQL ExcuteQuery

2009-12-07 Thread Nguyen Xuan Son
dear singgh I've tried to user the excuteUpdate but the errors appear detail is java.sql.SQLException: Can not issue executeUpdate() for SELECTs at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)

Re: SQL ExcuteQuery

2009-12-07 Thread Avlesh Singh
Use #executeUpdate instead. Cheers Avlesh On Tue, Dec 8, 2009 at 11:37 AM, Nguyen Xuan Son wrote: > sorry saini but i dont see any different from your answer > thank you > > 2009/12/8 Sushim Saini > > > hi Nguyen Xuan Son > > use > > pstmtname.executeQuery() instead of pstmtname.executeQuery()

Re: SQL ExcuteQuery

2009-12-07 Thread Nguyen Xuan Son
sorry saini but i dont see any different from your answer thank you 2009/12/8 Sushim Saini > hi Nguyen Xuan Son > use > pstmtname.executeQuery() instead of pstmtname.executeQuery(); > > On Tue, Dec 8, 2009 at 11:29, Nguyen Xuan Son wrote: > > > dear all > > I've written > > Connection conn = nu

Re: SQL ExcuteQuery

2009-12-07 Thread Sushim Saini
hi Nguyen Xuan Son use pstmtname.executeQuery() instead of pstmtname.executeQuery(); On Tue, Dec 8, 2009 at 11:29, Nguyen Xuan Son wrote: > dear all > I've written > Connection conn = null; > PreparedStatement pstmtname = null; > pstmtname = conn.prepareStatement(sql); > sql = "UPDATE tbl_conte

SQL ExcuteQuery

2009-12-07 Thread Nguyen Xuan Son
dear all I've written Connection conn = null; PreparedStatement pstmtname = null; pstmtname = conn.prepareStatement(sql); sql = "UPDATE tbl_content_admin_accounts SET CA_PASSWORD = ? WHERE ROW_ID = " + UserID; pstmtname.setString(1, "123456"); pstmtname.executeQuery(); there is no error appear bu

Re: EJb 3.1 (dependency injection) and Struts2 actio ns ¿CDI/Weld needed?

2009-12-07 Thread Wes Wannemacher
On Mon, Dec 7, 2009 at 4:02 PM, Ignacio de Córdoba wrote: > > Hi there, > I'd like to know if there is a recommended approach to deal with dependency > injection on new EJB 3.1 EJBs. > I am using now a modified version of JBoss Struts2 plugin with works great > but it really does nothing more than

EJb 3.1 (dependency injection) and Struts2 actions ¿CDI/Weld needed?

2009-12-07 Thread Ignacio de Córdoba
Hi there, I'd like to know if there is a recommended approach to deal with dependency injection on new EJB 3.1 EJBs. I am using now a modified version of JBoss Struts2 plugin with works great but it really does nothing more than regular JNDI lookups on every action request call. I wonder if there

Re: [Struts 2 + EJB 3] injection of EJBs into struts 2 actions

2009-12-07 Thread Ignacio de Córdoba
Which appserver are you using? I use JBoss for struts2 plugin. I hace to modifyit as it didn't support JBoss 5 naming conventions (at least for me) and it only looked for annotations in current class, so if you injected a Session Bean in a super.execute() method in a parent class, it was not look

Mapping request to action object without actually defining action

2009-12-07 Thread Rafał Krupiński
Hi, everybody! I want to write a portlet that would take input from another portlet (struts2-portlet) and return pdf document. Binary data is available only with jsr286 portlet 2.0 and struts2-portlet2 is experimental in sandbox. All I need is to is to map HttpRequest object to properties of an a

Re: -Tag in -Tag:differences in 2.1.2 and >= 2.1.6

2009-12-07 Thread Musachy Barroso
Unfortunately this is a bug/enhancement dependent on your point of view (what created this problem fixed other bugs). The way to get it to work like you want is to add a "merge" param set to "false" in the "staticParams" interceptor. For reference: https://issues.apache.org/struts/browse/WW-2970 h

-Tag in -Tag:differences in 2.1.2 and >= 2.1.6

2009-12-07 Thread Hans Solo
Hi, I’m using the -Tag in an -Tag:   access/users   manageUserAttributes   /jsp/access/users/attributes/list.jsp The interceptor-stack is the defaultStack. I’ve also defined getter/setter for these parameters (menu/actionMapping). Now on some calls, I’d like to overwrite e.g

Re: [s2] design problem

2009-12-07 Thread Wes Wannemacher
On Mon, Dec 7, 2009 at 3:03 AM, Tudor Andrei Raneti wrote: > i load up dataParams.jsp from main.jsp: > [code]  > executeResult="true">  [/code] > i map it in struts.xml: > [code]  class="loto.action.DataParams"> >    /jsp/main.jsp >    /jsp/dataParams.jsp >     [/code] > and set up a DataPa

Re: Struts HTML taglib vs. Standard HTML tags

2009-12-07 Thread Dan Vargas
Dec 7, 2009 8:14:39 AM com.thomson.west.pubrec.optout.ui.servlet.FindRequestResetAction execute FINE: enter Dec 7, 2009 8:14:44 AM com.thomson.west.pubrec.optout.ui.servlet.SSNLookupResetAction execute FINE: enter Dec 7, 2009 8:14:50 AM com.thomson.west.pubrec.optout.sys.PrivacyEncryptor initialize

[s2] design problem

2009-12-07 Thread Tudor Andrei Raneti
i load up dataParams.jsp from main.jsp: [code]    [/code] i map it in struts.xml: [code]     /jsp/main.jsp    /jsp/dataParams.jsp     [/code] and set up a DataParams-validator.xml. The problem starts when i submit dataParams.jsp 's form: [code] [/code] because it's supposed to validate while