I have added devmode to my struts.xml:
.
If I go to a action that is not maped I get a very detailed error message.
But that is about it.
For example in a jsp I have:
But the action does not have any getter for the list. If I run
Nguyen,
On 12/13/2009 11:04 PM, Nguyen Xuan Son wrote:
dear all
im using PreparedStatement.setNString(int, String)
to insert the japanese characters into my MySQL database
but the result is all in "?" characters
PreparedStatement pstmt = conn.prepareStatement(sql5);
pstmt.setNString(3,
Greetings and Happy Holidays --
I am sitting down to unwind the Essential Dependencies Only jar
(struts-2.1.8.1-lib.zip) in preparation for the litany of questions the
lawyers are going to ask before accepting the Struts 2.1.8.1 upgrade in
house. Now either I have a different understanding of t
Is it possible to upload a file to a server, process the data as it needs to
be, and then write the file back to the local machine from which it
originally was uploaded all in a single execute method of a single action
class? Or, am I required to have an action for uploading it to the server,
and
I think that's possible. For example processing an excel file with POI, in
your form you choose the file, then submit form and in the action you
process the excel file with POI libraries, you edit the excel file with
something like adding rows or something like that, then you write the stream
of th
Scott, take a look at the mailreader and blank apps. You can also read
through the struts2-core pom (annotated and easier to read here -
http://jarvana.com/jarvana/inspect-pom/org/apache/struts/struts2-core/2.1.8/struts2-core-2.1.8.pom,
that points to 2.1.8, they haven't indexed 2.1.8.1 yet, but th
Fantastic! The error that I'm getting is,
"org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory ([Microsoft][ODBC Driver Manager] The
specified DSN contains an architecture mismatch between the Driver and
Application." Ever seen that?
TG
Neil Aggarwal w
Oh, and a relevant follow-up question: do you use JDBC-ODBC to connect
to MySQL?
TG
Neil Aggarwal wrote:
Let me simplify the question: Has anyone out there managed to
create a
working connection to the latest version of MySQL 64-bit via
JDBC from
Struts 2?
I am sure many people h
Todd Grigsby wrote:
Fantastic! The error that I'm getting is,
"org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory ([Microsoft][ODBC Driver Manager] The
specified DSN contains an architecture mismatch between the Driver and
Application." Ever seen that?
Manos Batsis wrote:
Todd Grigsby wrote:
Fantastic! The error that I'm getting is,
"org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory ([Microsoft][ODBC Driver Manager] The
specified DSN contains an architecture mismatch between the Driver
and Applicatio
Hello,
I just recently switched to c3p0 and it fixed some other issues I
was having with dbcp, but another has arisen.
It seems to be a combination of using the c3p0 data source along
with the JSON plugin. Here's my (slightly shortened) stacktrace:
Caused by: org.apache.struts2.json.JSO
What do you mean by "I need to use ODBC to abstract the database connection."??
In most (all?) web containers I know about, there is a standard way of
abstract out the database connection and it is by declaring a
javax.sql.DataSource, which you can get it from JNDI (which is pretty
standard too.)
Wild guess you are trying to serialize (with JSON plugin) a
Hibernate proxy object.
Maybe your object has a reference to another lazy loaded object or collection.
Using reflection on a proxy object is usually a bad idea.
You may need to clone the object (to get a real one) first before
serial
Ill give this a whirl, and you're probably right, but this used to work
while using DBCP. Any idea as to why this would be broken in c3p0? I
tried to do some digging under the hood but couldn't find sources the
classes that were breaking.
Thanks,
-Tim
Greg Lindholm wrote:
Wild guess you
Hi,
I am trying to get JSON response from struts2 action.
My struts.xml contains the fallowing:
Class JSONAction.java is empty at the moment:
package tutorial.example;
import com.opensymphony.xwork2.ActionSupport;
public class JSONAction extends ActionSupport {
So changing this around seems to correct it. I'm not sure why though, to
my knowledge it shouldn't have been using a proxy.
public class ChangeProcessAction {
private StatusService statusService;
private OrderService orderService;
private Status status;
private Integer orderId;
> Oh, and a relevant follow-up question: do you use JDBC-ODBC
> to connect
> to MySQL?
I never used ODBC to talk to MySQL. I am not sure how well
that would work.
Thanks,
Neil
--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
Host your MySQL database on a CentOS virtual server
Here is the best checklist for Java webdev + UTF-8
http://stackoverflow.com/questions/138948/how-to-get-utf-8-working-in-java-webapps
Nguyen Xuan Son-2 wrote:
>
> dear all
> im using PreparedStatement.setNString(int, String)
> to insert the japanese characters into my MySQL database
> but the r
Works great, Neil, thanks for asking.
TG
Neil Aggarwal wrote:
Oh, and a relevant follow-up question: do you use JDBC-ODBC
to connect
to MySQL?
I never used ODBC to talk to MySQL. I am not sure how well
that would work.
Thanks,
Neil
--
Neil Aggarwal, (281)846-8957, http://Un
Not that I wanted to get into a debate about the usefulness of ODBC, but
the Java-based web services we have aren't the only things that connect
to these databases, and going through ODBC has been, for the last 10
years, a very nice and consistent way to connect across all our
applications a
Not to sound like a jerk, but have you gotten JDBC (MySQL Connector/J)
working with a MySQL 64-bit server? Or is this specifically a Struts issue?
If so, what message/condition do you receive?
Or are you merely asking if MySQL 64-bit is compatible with ODBC [OT]?
-Original Message-
From
Perhaps try using a 64-bit JVM or installing the 32-bit ODBC driver...
The first couple of Google hits when searching for the error message
provided seem to suggest hints for installing the 32-bit ODBC driver
under 64-bit Windows. You are likely to get more traction on this
question asking it
(Beating head on keyboard...)
"So one more time for the folks at home: Is there anyone out there who
has managed to get MySQL 64-bit to work via ODBC?"
For those who aren't aware, MySQL has an ODBC connector called, oddly
enough, Connector/ODBC. In previous versions it was called MyODBC.
Have you tried asking over at the MySQL forum? I don't think this is
related to Struts 2.
Nils-H
On Tue, Dec 15, 2009 at 8:26 AM, Todd Grigsby wrote:
>
>
> (Beating head on keyboard...)
> "So one more time for the folks at home: Is there anyone out there who has
> managed to get MySQL 64-bit to
I'm trying to get an all 64-bit environment going, but if I have to step
down to 32 bit, then that's what I have to do to get going. As for
addressing the right crowd, I think you may be right. Except for you,
it's been a frustrating exercise. I'm already going through the MySQL
forums, bu
25 matches
Mail list logo