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
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
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
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.
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)
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()
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
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
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
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
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
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
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
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
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
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
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
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
18 matches
Mail list logo