[s2] design problem

2009-12-07 Thread Tudor Andrei Raneti
i load up dataParams.jsp from main.jsp: [code]  c:when test=${param.dataParams == 'show' and param.data == null} s:action name=dataParams_input executeResult=true/s:action/c:when  [/code] i map it in struts.xml: [code]  action name=dataParams_* method={1} class=loto.action.DataParams    

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

Re: [s2] design problem

2009-12-07 Thread Wes Wannemacher
On Mon, Dec 7, 2009 at 3:03 AM, Tudor Andrei Raneti w0lfsh...@yahoo.com wrote: i load up dataParams.jsp from main.jsp: [code]  c:when test=${param.dataParams == 'show' and param.data == null} s:action name=dataParams_input executeResult=true/s:action/c:when  [/code] i map it in

param-Tag in action-Tag:differences in 2.1.2 and = 2.1.6

2009-12-07 Thread Hans Solo
Hi, I’m using the param-Tag in an action-Tag: action name=manageUserAttributes_* method={1} class=springManagedUserAttributesAction   param name=menuaccess/users/param   param name=actionMappingmanageUserAttributes/param   result

Re: param-Tag in action-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

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

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

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: 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 icord...@skios.es 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

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 but

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 yama...@gmail.com wrote: dear all I've written Connection conn = null; PreparedStatement pstmtname = null; pstmtname = conn.prepareStatement(sql); sql =

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 sushimsa...@gmail.com hi Nguyen Xuan Son use pstmtname.executeQuery() instead of pstmtname.executeQuery(); On Tue, Dec 8, 2009 at 11:29, Nguyen Xuan Son yama...@gmail.com wrote: dear all I've

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 yama...@gmail.com wrote: sorry saini but i dont see any different from your answer thank you 2009/12/8 Sushim Saini sushimsa...@gmail.com hi Nguyen Xuan Son use pstmtname.executeQuery() instead

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 Sushim Saini
sorry use executeUpdate On Tue, Dec 8, 2009 at 11:53, Nguyen Xuan Son yama...@gmail.com 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

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

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 yama...@gmail.com wrote: dear all I've written Connection conn = null; PreparedStatement

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