Re: specified DSN contains an architecture mismatch

2009-12-15 Thread Patrick J Kobly

Todd Grigsby wrote:


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, but there don't seem to be a lot of posts there from 
people working with Java+Struts on Win7 64-bit.
Broaden your horizons a bit from Java+Struts with MySQL on Win7 
64-bit...  This is an error message from the ODBC system.  It is _not_ 
coming from Struts.  It is _not_ coming from MySQL.  It was present on 
64-bit versions of Windows prior to Win 7.


- The MSDN forums have some info on installing 32-bit ODBC drivers under 
a 64-bit platform.

- The Tomcat guys probably have info on running Tomcat in a 64-bit JRE.

Your solution will likely lie in one of those two places.

PK


Thanks for the suggestions.  I'll keep digging.

TG


Patrick J Kobly wrote:
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 of


a) Tomcat folks
b) Microsoft folks
c) Java folks
d) MySQL folks

Rather than Struts folks.

PK
Todd Grigsby wrote:


Configuration:
  Windows 7 64 bit
  Tomcat 6
  Struts 2
  MySQL 5.1.36 for Win64
  MySQL ODBC 5.1 Driver 5.01.06.00

I've created a valid ODBC alias that I can see from other Windows 
native applications with no problem.  When I attempt the following:


import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.sql.DataSource;
import java.sql.Connection;

...

   Context context = new InitialContext();
   DataSource ds = 
(DataSource)context.lookup(java:/comp/env/jdbc/odbc/tgecorp);

   Connection conn = datasource.getConnection();

...

The last line throws an exception with the following message:  The 
specified DSN contains an architecture mismatch between the Driver 
and Application.


I reinstalled the driver, redefined the System DSN's in the ODBC 
administrator, and I still get the same message.  Anybody have any 
idea how to fix this?


Todd

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org





-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org






-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org





-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: MySQL + JDBC

2009-12-15 Thread Todd Grigsby


Yes, thank you Nils-H, I have been digging around in there as well.  
Unfortunately, the problem only occurs from my Struts apps, and judging 
from the MySQL forums, not many other people experience this issue.


TG


Nils-Helge Garli Hegvik wrote:

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 strutsu...@tgrigsby.com 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 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.  It does
work, as evidenced by the fact that I can connect from Windows apps with
ease. What doesn't work, and the only thing I'm looking for an answer to is,
why do I get the error, The specified DSN contains an architecture mismatch
between the Driver and Application when connecting from within Struts 2?
 But at this point I'd be happy hearing from anyone that has gotten MySQL
64-bit to work via ODBC.

TG

Lee Clemens wrote:


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: Todd Grigsby [mailto:strutsu...@tgrigsby.com] Sent: Monday, December
14, 2009 9:57 PM
To: Struts Users Mailing List
Subject: Re: MySQL + JDBC



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 and
utilities.  We have, at one time or another, supported all of the following:

   MySQL
   Oracle
   SQL Server
   Informix
   DB2
   mSQL
   Pervasive SQL
   MS Access (pre-Jet)

And a few others, and we have connected to these databases via ODBC all
along the way.  Keeping the connection mechanism consistent has made
development work in a number of languages simple.  So while I certainly
appreciate everyone's enthusiasm for talking directly to MySQL, I have a
legacy code base that works *REALLY* well through ODBC, and I'd like to
stick with it.

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?

TG



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org




  

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org





-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



  




Re: MySQL + JDBC

2009-12-15 Thread Gabriel Belingueres
I don't think it is directly related to Struts.

From what I googled, seems more like a 32-bit/64-bit component
mismatch than a Struts issue.

On what JDK/JRE version are you running your app server? it is a 32
bit version of java? or a 64 bits version?

Your odbc driver is 32 bits or 64 bits? are you sure you installed it correctly?

I particularly don't know how the JDBC-ODBC bridge driver hooks on win
64 bits, but I would guess that it depends on the java vm version you
have installed...may be you can ask in a Sun support forum.

HTH
Gabriel

2009/12/15 Todd Grigsby strutsu...@tgrigsby.com:

 Yes, thank you Nils-H, I have been digging around in there as well.
  Unfortunately, the problem only occurs from my Struts apps, and judging
 from the MySQL forums, not many other people experience this issue.

 TG


 Nils-Helge Garli Hegvik wrote:

 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 strutsu...@tgrigsby.com
 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 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.  It
 does
 work, as evidenced by the fact that I can connect from Windows apps with
 ease. What doesn't work, and the only thing I'm looking for an answer to
 is,
 why do I get the error, The specified DSN contains an architecture
 mismatch
 between the Driver and Application when connecting from within Struts 2?
  But at this point I'd be happy hearing from anyone that has gotten
 MySQL
 64-bit to work via ODBC.

 TG

 Lee Clemens wrote:


 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: Todd Grigsby [mailto:strutsu...@tgrigsby.com] Sent: Monday,
 December
 14, 2009 9:57 PM
 To: Struts Users Mailing List
 Subject: Re: MySQL + JDBC



 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 and
 utilities.  We have, at one time or another, supported all of the
 following:

   MySQL
   Oracle
   SQL Server
   Informix
   DB2
   mSQL
   Pervasive SQL
   MS Access (pre-Jet)

 And a few others, and we have connected to these databases via ODBC all
 along the way.  Keeping the connection mechanism consistent has made
 development work in a number of languages simple.  So while I certainly
 appreciate everyone's enthusiasm for talking directly to MySQL, I have a
 legacy code base that works *REALLY* well through ODBC, and I'd like to
 stick with it.

 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?

 TG



 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org






 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org







-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: configuring json action

2009-12-15 Thread Milos Negovanovic
On Mon, Dec 14, 2009 at 09:31:02PM +, Milos Negovanovic wrote:
 Hi,
 
 I am trying to get JSON response from struts2 action.
 
 
 My struts.xml contains the fallowing:
 
 struts
   package name=example extends=json-default
 action name=testjson class=tutorial.example.JSONAction
   result type=json /
 /action
   /package
 /struts
 
 
 Class JSONAction.java is empty at the moment:
 
 
 package tutorial.example;
 
 
 import com.opensymphony.xwork2.ActionSupport;
 
 
 public class JSONAction extends ActionSupport {
 public String execute() throws Exception {
 //setMessage(getText(MESSAGE));
 return SUCCESS;
 }
 }
 
 
 When I try to access JSON action under
 http://localhost:8080/tutorial/testjson URL I get the fallowing error
 page:
 
 
 Struts Problem Report
 
 Struts has detected an unhandled exception:
 # Messages:   There is no Action mapped for namespace / and action name 
 testjson.
 
 
 Any suggestions on how to make JSON action work?
 

Fixed. Solution was to add json plugin dependency in pom.xml.

Regards
-- 
Milos Negovanovic
milos.negovano...@googlemail.com

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: MySQL + JDBC

2009-12-15 Thread Patrick J Kobly

Do you have other Java apps working, or just other native apps?

PK

Todd Grigsby wrote:



It's all 64-bit, installed correctly enough to work from other apps.  
I will try the Sun forums.


TG




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Unique Id creation

2009-12-15 Thread jayakumar ala
Hi All,
 I am using struts2 in my web application.
 Which is the best way to create unique Id for each file upload i do in my
application...?

Thanks
Ala


Re: Essential Dependencies Only

2009-12-15 Thread stanlick
Thanks Wes --

Have you or others discovered any software that could be used to decompose
an open source product into its constituent parts and then further decompose
each of those in turn.  Looking at a single POM rarely answers the real
questions.  The dependency/version graph is wicked to deal with by hand and
the licenses therein complicate matters even further.  I struggle when
thinking how many shops are each doing this over-and-over with each new
version release and it seems like a missing piece of the FOSS/legal puzzle.

Peace,
Scott


On Mon, Dec 14, 2009 at 10:44 AM, Wes Wannemacher w...@wantii.com wrote:

 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 there is
 no differences in dependencies).

 If you just want to cut to the chase, the essentials would be -

 struts2-core 2.1.8.1
 xwork-core 2.1.6
 freemarker 2.3.15
 ognl 2.7.3

 -Wes

 On Mon, Dec 14, 2009 at 10:36 AM, stanlick stanl...@gmail.com wrote:
 
  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 the word
 essential,
  or this version of our new Struts has really spread her arms.  There are
  seventy-one jars in the lib folder of the *essential dependencies only
 jar*
  and a quick glance suggests they are *not* all essential.  So does
 essential
  != core or required?  Is there a resource where an analysis can be made
 to
  determine compile, testing, run-time dependencies?  Untangling this ball
 of
  yarn by hand is going to burn up hours and lead an analyst down many
 rabbit
  holes.  Is there a POM that could save the man hours?
 
  Peace,
  Scott
  --
  View this message in context:
 http://old.nabble.com/Essential-Dependencies-Only-tp26779724p26779724.html
  Sent from the Struts - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 



 --
 Wes Wannemacher

 Head Engineer, WanTii, Inc.
 Need Training? Struts, Spring, Maven, Tomcat...
 Ask me for a quote!

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: Essential Dependencies Only

2009-12-15 Thread Musachy Barroso
mvn dependency:tree will give you all the dependencies nicely. I also
have to help with this task in my company, and we haven't found any
decent tool that does what you described. If all your projects use
maven, then there is probably a plugin for that, but that's not the
case for us.

On Tue, Dec 15, 2009 at 9:58 AM,  stanl...@gmail.com wrote:
 Thanks Wes --

 Have you or others discovered any software that could be used to decompose
 an open source product into its constituent parts and then further decompose
 each of those in turn.  Looking at a single POM rarely answers the real
 questions.  The dependency/version graph is wicked to deal with by hand and
 the licenses therein complicate matters even further.  I struggle when
 thinking how many shops are each doing this over-and-over with each new
 version release and it seems like a missing piece of the FOSS/legal puzzle.

 Peace,
 Scott


 On Mon, Dec 14, 2009 at 10:44 AM, Wes Wannemacher w...@wantii.com wrote:

 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 there is
 no differences in dependencies).

 If you just want to cut to the chase, the essentials would be -

 struts2-core 2.1.8.1
 xwork-core 2.1.6
 freemarker 2.3.15
 ognl 2.7.3

 -Wes

 On Mon, Dec 14, 2009 at 10:36 AM, stanlick stanl...@gmail.com wrote:
 
  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 the word
 essential,
  or this version of our new Struts has really spread her arms.  There are
  seventy-one jars in the lib folder of the *essential dependencies only
 jar*
  and a quick glance suggests they are *not* all essential.  So does
 essential
  != core or required?  Is there a resource where an analysis can be made
 to
  determine compile, testing, run-time dependencies?  Untangling this ball
 of
  yarn by hand is going to burn up hours and lead an analyst down many
 rabbit
  holes.  Is there a POM that could save the man hours?
 
  Peace,
  Scott
  --
  View this message in context:
 http://old.nabble.com/Essential-Dependencies-Only-tp26779724p26779724.html
  Sent from the Struts - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 



 --
 Wes Wannemacher

 Head Engineer, WanTii, Inc.
 Need Training? Struts, Spring, Maven, Tomcat...
 Ask me for a quote!

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Essential Dependencies Only

2009-12-15 Thread stanlick
Thanks brother.  Actually it's not our projects we analyze; it's the open
source projects.  We *do not* simply download/dump the OS project and begin
to use it.  We factor each project into as many constituent OS projects as
it made from and then recursively walk down the tree doing this at each
node.  It is a big PITA!

On Tue, Dec 15, 2009 at 12:03 PM, Musachy Barroso musa...@gmail.com wrote:

 mvn dependency:tree will give you all the dependencies nicely. I also
 have to help with this task in my company, and we haven't found any
 decent tool that does what you described. If all your projects use
 maven, then there is probably a plugin for that, but that's not the
 case for us.

 On Tue, Dec 15, 2009 at 9:58 AM,  stanl...@gmail.com wrote:
  Thanks Wes --
 
  Have you or others discovered any software that could be used to
 decompose
  an open source product into its constituent parts and then further
 decompose
  each of those in turn.  Looking at a single POM rarely answers the real
  questions.  The dependency/version graph is wicked to deal with by hand
 and
  the licenses therein complicate matters even further.  I struggle when
  thinking how many shops are each doing this over-and-over with each new
  version release and it seems like a missing piece of the FOSS/legal
 puzzle.
 
  Peace,
  Scott
 
 
  On Mon, Dec 14, 2009 at 10:44 AM, Wes Wannemacher w...@wantii.com
 wrote:
 
  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 there is
  no differences in dependencies).
 
  If you just want to cut to the chase, the essentials would be -
 
  struts2-core 2.1.8.1
  xwork-core 2.1.6
  freemarker 2.3.15
  ognl 2.7.3
 
  -Wes
 
  On Mon, Dec 14, 2009 at 10:36 AM, stanlick stanl...@gmail.com wrote:
  
   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 the word
  essential,
   or this version of our new Struts has really spread her arms.  There
 are
   seventy-one jars in the lib folder of the *essential dependencies only
  jar*
   and a quick glance suggests they are *not* all essential.  So does
  essential
   != core or required?  Is there a resource where an analysis can be
 made
  to
   determine compile, testing, run-time dependencies?  Untangling this
 ball
  of
   yarn by hand is going to burn up hours and lead an analyst down many
  rabbit
   holes.  Is there a POM that could save the man hours?
  
   Peace,
   Scott
   --
   View this message in context:
 
 http://old.nabble.com/Essential-Dependencies-Only-tp26779724p26779724.html
   Sent from the Struts - User mailing list archive at Nabble.com.
  
  
   -
   To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail: user-h...@struts.apache.org
  
  
 
 
 
  --
  Wes Wannemacher
 
  Head Engineer, WanTii, Inc.
  Need Training? Struts, Spring, Maven, Tomcat...
  Ask me for a quote!
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
 

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: Essential Dependencies Only

2009-12-15 Thread Musachy Barroso
yeah I know, so do we ;), right now grep is all I got

On Tue, Dec 15, 2009 at 10:09 AM,  stanl...@gmail.com wrote:
 Thanks brother.  Actually it's not our projects we analyze; it's the open
 source projects.  We *do not* simply download/dump the OS project and begin
 to use it.  We factor each project into as many constituent OS projects as
 it made from and then recursively walk down the tree doing this at each
 node.  It is a big PITA!

 On Tue, Dec 15, 2009 at 12:03 PM, Musachy Barroso musa...@gmail.com wrote:

 mvn dependency:tree will give you all the dependencies nicely. I also
 have to help with this task in my company, and we haven't found any
 decent tool that does what you described. If all your projects use
 maven, then there is probably a plugin for that, but that's not the
 case for us.

 On Tue, Dec 15, 2009 at 9:58 AM,  stanl...@gmail.com wrote:
  Thanks Wes --
 
  Have you or others discovered any software that could be used to
 decompose
  an open source product into its constituent parts and then further
 decompose
  each of those in turn.  Looking at a single POM rarely answers the real
  questions.  The dependency/version graph is wicked to deal with by hand
 and
  the licenses therein complicate matters even further.  I struggle when
  thinking how many shops are each doing this over-and-over with each new
  version release and it seems like a missing piece of the FOSS/legal
 puzzle.
 
  Peace,
  Scott
 
 
  On Mon, Dec 14, 2009 at 10:44 AM, Wes Wannemacher w...@wantii.com
 wrote:
 
  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 there is
  no differences in dependencies).
 
  If you just want to cut to the chase, the essentials would be -
 
  struts2-core 2.1.8.1
  xwork-core 2.1.6
  freemarker 2.3.15
  ognl 2.7.3
 
  -Wes
 
  On Mon, Dec 14, 2009 at 10:36 AM, stanlick stanl...@gmail.com wrote:
  
   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 the word
  essential,
   or this version of our new Struts has really spread her arms.  There
 are
   seventy-one jars in the lib folder of the *essential dependencies only
  jar*
   and a quick glance suggests they are *not* all essential.  So does
  essential
   != core or required?  Is there a resource where an analysis can be
 made
  to
   determine compile, testing, run-time dependencies?  Untangling this
 ball
  of
   yarn by hand is going to burn up hours and lead an analyst down many
  rabbit
   holes.  Is there a POM that could save the man hours?
  
   Peace,
   Scott
   --
   View this message in context:
 
 http://old.nabble.com/Essential-Dependencies-Only-tp26779724p26779724.html
   Sent from the Struts - User mailing list archive at Nabble.com.
  
  
   -
   To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail: user-h...@struts.apache.org
  
  
 
 
 
  --
  Wes Wannemacher
 
  Head Engineer, WanTii, Inc.
  Need Training? Struts, Spring, Maven, Tomcat...
  Ask me for a quote!
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
 

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: ognl method lookup failure

2009-12-15 Thread Dale Newfield

Musachy Barroso wrote:

I would suggest


Thank you.  After all my frustrations my bug was a typo in an EL 
expression.  Argh.


-Dale

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: MySQL + JDBC

2009-12-15 Thread Todd Grigsby



Other native apps.  The Java apps are being migrated from a 32-bit 
environment (WinXP and Java 32-bit + Struts 1.1), and they worked 
there.  I don't want to point to any one thing, since every part of the 
equation is a newer version of what was there before, but at this point 
the only things that can't use the connections are the web apps.  Have 
you tried an all 64-bit setup with ODBC?


TG

Patrick J Kobly wrote:

Do you have other Java apps working, or just other native apps?

PK

Todd Grigsby wrote:



It's all 64-bit, installed correctly enough to work from other apps.  
I will try the Sun forums.


TG




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org






-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Problem with jquery plugin

2009-12-15 Thread Oscar
Hi to all, i was exploring the jquery plugin of struts 2 because i read 
that you can do something like a grid with the tags that provides that 
plugin, something like displaytag or extremecomponents.


I follow an example that i found where they simply create a list in 
action and show the data in the jsp with the grid tags, but i have a 
problem, when i call the action, the method execute is called normally 
but finally it downloads the action, appears a dialog box in my 
browser asking if i want to save or open the file someAction.action. I'm 
using a json result, this is my struts.xml:


package name=default extends=struts-default,json-default 
   action class=com.datasoft.struts.actions.JsonTable 
name=jsontable

   result name=success type=json/tablaYeison.jsp/result
   /action
   /package

And this is the link with i'm trying to call the action:

a href=jsontable.actionShow me the data/a

I think that is something about the result.

Regards.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Unique Id creation

2009-12-15 Thread Todd Grigsby

jayakumar ala wrote:

Hi All,
 I am using struts2 in my web application.
 Which is the best way to create unique Id for each file upload i do in my
application...?

Thanks
Ala

  


I've always used the original filename with a time stamp, down to the 
millisecond formatted with leading zeros and without separators, 
appended to the end.  If a create fails, I wait a few milliseconds and 
regenerate the filename.  The nice part about the time stamp is that you 
have the date and time the file was uploaded in the name itself.


TG

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Trigger 2 actions

2009-12-15 Thread Jean-François Houzard
Hello, I'm new with Struts 2.
I'm actually using Struts 2 with the struts-dojo-tags.

Consider the following situation.
I would like to submit a form and to associate two distinct actions to
the form, for exemple MyAction1 and MyAction2. And I would like that
MyAction1 refresh the MyRes1 div and that MyAction2 refresh the MyRes2
div.

How can I do that?
Thank you :)

Not working code example
--

s:form namespace=/mynamespace action=MyAction1, MyAction2
targets=MyRes1, MyRes2
  input type=text name=data
  sx:submit /
/s:form

s:div id=MyRes1/
s:div id=MyRes2/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: MySQL + JDBC

2009-12-15 Thread Patrick J Kobly

Todd Grigsby wrote:
Other native apps.  The Java apps are being migrated from a 32-bit 
environment (WinXP and Java 32-bit + Struts 1.1), and they worked 
there.  I don't want to point to any one thing, since every part of 
the equation is a newer version of what was there before, but at this 
point the only things that can't use the connections are the web apps.  
But the web apps are the only things that use Java.  You don't have 
standalone Java apps or Java webapps built on a different framework than 
Struts...  The issue is almost certainly a 32-bit JRE trying to access a 
64-bit ODBC driver.

Have you tried an all 64-bit setup with ODBC?
Nope.  Have never had a need for ODBC.  Though I can sorta see its 
advantages in a mixed-language environment.

TG

PK


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Unique Id creation

2009-12-15 Thread Gabriel Belingueres
I use File.createTempFile:

http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html#createTempFile(java.lang.String,%20java.lang.String,%20java.io.File)

Then I relate the uploaded filename with the saved temp file name in a
database table.

Gabriel

2009/12/15 Todd Grigsby strutsu...@tgrigsby.com:
 jayakumar ala wrote:

 Hi All,
  I am using struts2 in my web application.
  Which is the best way to create unique Id for each file upload i do in my
 application...?

 Thanks
 Ala



 I've always used the original filename with a time stamp, down to the
 millisecond formatted with leading zeros and without separators, appended to
 the end.  If a create fails, I wait a few milliseconds and regenerate the
 filename.  The nice part about the time stamp is that you have the date and
 time the file was uploaded in the name itself.

 TG

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Anyone used jsTree with Struts2?

2009-12-15 Thread Michael Obster

Hi,

is there anyone who has used jsTree in a struts2 application? Having  
some problems using he component. First I don't get a JSON format  
generated with struts2 which the tree understands and the 2nd try is  
not even better where I changed from a JSON to XML-Code. The tree  
works with that but only on non-IE browsers :-(. IE have some problems  
with XML and the used Sarissa lib...


So if anyone knows a good alternative with a similiar format (xml is  
preferred), please tell me.


Regards,
Michael

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Unique Id creation

2009-12-15 Thread jayakumar ala
I am trying to upload multiple files in my application , So i am looking for
different approach to create unique Id for all the uploaded files. Any
suggestions are appreciated.



On Tue, Dec 15, 2009 at 1:54 PM, Gabriel Belingueres
belingue...@gmail.comwrote:

 I use File.createTempFile:


 http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html#createTempFile(java.lang.String,%20java.lang.String,%20java.io.File)

 Then I relate the uploaded filename with the saved temp file name in a
 database table.

 Gabriel

 2009/12/15 Todd Grigsby strutsu...@tgrigsby.com:
   jayakumar ala wrote:
 
  Hi All,
   I am using struts2 in my web application.
   Which is the best way to create unique Id for each file upload i do in
 my
  application...?
 
  Thanks
  Ala
 
 
 
  I've always used the original filename with a time stamp, down to the
  millisecond formatted with leading zeros and without separators, appended
 to
  the end.  If a create fails, I wait a few milliseconds and regenerate the
  filename.  The nice part about the time stamp is that you have the date
 and
  time the file was uploaded in the name itself.
 
  TG
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: Unique Id creation

2009-12-15 Thread Patrick J Kobly

java.util.UUID.randomUUID() ?

http://java.sun.com/j2se/1.5.0/docs/api/java/util/UUID.htm

PK

jayakumar ala wrote:

I am trying to upload multiple files in my application , So i am looking for
different approach to create unique Id for all the uploaded files. Any
suggestions are appreciated.



On Tue, Dec 15, 2009 at 1:54 PM, Gabriel Belingueres
belingue...@gmail.comwrote:

  

I use File.createTempFile:


http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html#createTempFile(java.lang.String,%20java.lang.String,%20java.io.File)

Then I relate the uploaded filename with the saved temp file name in a
database table.

Gabriel

2009/12/15 Todd Grigsby strutsu...@tgrigsby.com:
  jayakumar ala wrote:


Hi All,
 I am using struts2 in my web application.
 Which is the best way to create unique Id for each file upload i do in


my


application...?

Thanks
Ala




I've always used the original filename with a time stamp, down to the
millisecond formatted with leading zeros and without separators, appended
  

to


the end.  If a create fails, I wait a few milliseconds and regenerate the
filename.  The nice part about the time stamp is that you have the date
  

and


time the file was uploaded in the name itself.

TG

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


  

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org





  




Re: MySQL + JDBC

2009-12-15 Thread Todd Grigsby



Patrick J Kobly wrote:

Todd Grigsby wrote:
Other native apps.  The Java apps are being migrated from a 32-bit 
environment (WinXP and Java 32-bit + Struts 1.1), and they worked 
there.  I don't want to point to any one thing, since every part of 
the equation is a newer version of what was there before, but at this 
point the only things that can't use the connections are the web apps.  
But the web apps are the only things that use Java.  You don't have 
standalone Java apps or Java webapps built on a different framework 
than Struts...  The issue is almost certainly a 32-bit JRE trying to 
access a 64-bit ODBC driver.


I'll buy that, but I'm confused -- I installed 64-bit Java, and when I 
open a command prompt and do java -version, it identifies itself as:


   Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
   Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)

But I'll see if I have anything on my system that is getting loaded 
that's 32-bit.


Thanks!

TG


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



s:autocompleter not working in IE7.

2009-12-15 Thread sharath karnati
Hi All,
 
   I'm trying s:autocompleter with below code
 
autocompleter.jsp file
 
%@ taglib prefix=s uri=/struts-tags %

html
head
titleStruts 2 Autocompleter Example!/title
s:head theme=ajax /
/head
body

table cellpadding=0 cellspacing=5 width=95% 
tr
td
bSearch Carrier:nbsp;/b
!-- s:textfield key=search_carrier size=50 maxlength=100 / --
s:url id=carrierList action=AutocompleteField method=searchAutoCarrier /
s:autocompleter name=search_carrier theme=ajax href=%{carrierList} 
showDownArrow=false dropdownWidth=300 dropdownHeight=500 
loadOnTextChange=true/
/td
/tr
/table 

/body
/html
--
AutoCompleteAction.java having 
//Implemented for auto completer
public String searchAutoCarrier() throws Exception{
logger.info(Inside searchAutoCarrier method: +search_carrier);
try{
//setServe_carriers(manageFormService.getServeDetails(complaint_key));
json = new HashMapString,String();

if(null!=search_carrier  search_carrier.trim().length()2){
json.put(AB,Alabama);
json.put(AL,Alaska);
json.put(AR,Arizona);
json.put(AK,Arkansas);
json.put(CA,California);
json.put(CO,Colorado);
json.put(CN,Connecticut);
json.put(DL,Delaware);
json.put(DC,District of Columbia);
json.put(FL,Florida);
json.put(GE,Georgia);
json.put(HA,Hawaii);
json.put(ID,Idaho);
json.put(IL,Illinois);
json.put(IN,Indiana);
logger.info(Inside searchAutoCarrier method json size: +json.size());
//setCarriers(results);
   if(json.size()1){
 addActionError(getText(search_carrier_error));
   }
}
else{
   addActionError(getText(search_carrier_invalid));
  } 
}
catch (Exception e) {
logger.error(Exception in searchAutoCarrier: +e.toString());
throw new Exception();
} 

return SUCCESS;
}//End of searchAutoCarrier method
 
 
private MapString,String json;

public MapString, String getJson() {
return json;
}

public void setJson(MapString, String json) {
this.json = json;
}
 

 
In stuts.xml file
 
action name=AutocompleteField!* class=com.action.AutocompleteAction 
method={1}
result type=jsonparam name=rootjson/param/result
/action

action name=autocompleter class=com.action.AutocompleteAction
result/pages/autocompleter.jsp/result
/action 
 
 
  In IE ,when I enter 'ala' it needs to display list of values which are 
starting with these values but it is sending request to action but not 
displaying list of values in dropdown. I checked this request with logger 
statement.
 
  The same code is working fine in Firefox browser(displaying list of values 
starting with ala).
 
  I'm using struts2-core-2.0.11.jar and added jsonplugin-0[1].30.jar file.
 
  In struts package level added json-default.
  
package name=app extends=struts-default,json-default
 
  Can anyone please let me know why this is not working in  IE and how to fix 
this problem. I'm not even getting any javascript errors. 
 
  Thanks in advance.
 
Regards,
Sharath Karnati.
 
 


  

Re: MySQL + JDBC

2009-12-15 Thread Patrick J Kobly

Running the binary dist of Tomcat?

tomcat.exe / tomcatw.exe

PK

Todd Grigsby wrote:



Patrick J Kobly wrote:

Todd Grigsby wrote:
Other native apps.  The Java apps are being migrated from a 32-bit 
environment (WinXP and Java 32-bit + Struts 1.1), and they worked 
there.  I don't want to point to any one thing, since every part of 
the equation is a newer version of what was there before, but at 
this point the only things that can't use the connections are the 
web apps.  
But the web apps are the only things that use Java.  You don't have 
standalone Java apps or Java webapps built on a different framework 
than Struts...  The issue is almost certainly a 32-bit JRE trying to 
access a 64-bit ODBC driver.


I'll buy that, but I'm confused -- I installed 64-bit Java, and when I 
open a command prompt and do java -version, it identifies itself as:


   Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
   Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)

But I'll see if I have anything on my system that is getting loaded 
that's 32-bit.


Thanks!

TG


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org





-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Anyone used jsTree with Struts2?

2009-12-15 Thread Musachy Barroso
On Tue, Dec 15, 2009 at 1:20 PM, Michael Obster mich...@obster.org wrote:
 jsTree

I used it with the JSON plugin many moons ago, what problem are you having?

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



How to forward....

2009-12-15 Thread Rafael Muneton

Hello:

 

I am trying to develop a small application that contains a Login.jsp, in case 
of failure the controller must redirect to Login.jsp again;   in case of 
success the controller must redirect to a Java application ,MainMenu.class.

 

I think this is done in struts-config.xml file:

 

?xml version=1.0 encoding=ISO-8859-1 ?

!DOCTYPE struts-config PUBLIC

-//Apache Software Foundation//DTD Struts Configuration 1.1//EN

http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd;

!-- This is the Struts configuration file for the Login example application --

struts-config

!-- == Data Source Definitions  --

!-- == Form Bean Definitions == -- 

form-beans

form-bean name=loginForm 

type=jhtp5.jsp.LoginForm/

/form-beans 



!-- == Action Mapping Definitions = -- 

action-mappings 

action path=/login

type=jhtp5.jsp.LoginAction

name=loginForm

scope=request

input=/login.jsp

validate=true

forward name=failure path=/login.jsp/

forward name=success path=/MainMenu.class/

/action

/action-mappings

!-- == Message Resources Definitions == --

message-resources null=false

parameter=ApplicationResources/

/struts-config

 

Is this OK??

What is the right way to do it

Any help is welcome.

 

Vangelis
  
_
Windows Live: Make it easier for your friends to see what you’re up to on 
Facebook.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_2:092009

RE: Unique Id creation

2009-12-15 Thread Lee Clemens
OP: What Struts tag are you using to upload multiple files at the same time?
I may be wrong, but I didn't know this was possible with Struts.   If so,
what filename are they given by default? I use file upload tags but they are
saved as default-named files I can access via the File setter in my Action
(file.getAbsolutePath()).

Otherwise, I would suggest going with a solution along the line of PK's
solution with UUID (probably best with the ms timestamp) as part of the file
name or using SecureRandom.nextInt and Integer.MAX_VALUE.

To be extra safe, you could have a static Set to maintain all file names and
ensure it not is contained in that Set before creating it (and populate the
Set during initialization).


TG, Out of curiosity, why would the current milliseconds past epoch need to
be zero-padded? (besides code written for ~277 years from now, when it still
likely wouldn't matter?)

-Original Message-
From: Todd Grigsby [mailto:strutsu...@tgrigsby.com] 
Sent: Tuesday, December 15, 2009 3:02 PM
To: Struts Users Mailing List
Subject: Re: Unique Id creation

jayakumar ala wrote:
 Hi All,
  I am using struts2 in my web application.
  Which is the best way to create unique Id for each file upload i do in my
 application...?

 Thanks
 Ala

   

I've always used the original filename with a time stamp, down to the 
millisecond formatted with leading zeros and without separators, 
appended to the end.  If a create fails, I wait a few milliseconds and 
regenerate the filename.  The nice part about the time stamp is that you 
have the date and time the file was uploaded in the name itself.

TG

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Anyone used jsTree with Struts2?

2009-12-15 Thread Michael Obster

Musachy Barroso schrieb:

On Tue, Dec 15, 2009 at 1:20 PM, Michael Obster mich...@obster.org wrote:

jsTree


I used it with the JSON plugin many moons ago, what problem are you having?



First of all I get no tree displayed. After looking into the generated 
JSON I see, that die variable names are quoted with -quotes. Perhaps 
this confuses the jsTree. The second problem are escaped characters like 
/ with are escaped as \/ in the JSON.


I'm wrinting the generated JSON string into a string variable of a 
json-generating action class.


How do you create a JSON with that format:
[
  { attributes: { id : pjson_1 },
 data: Root node 1,
  },
  { attributes: { id : pjson_5 },
 data: Root node 2 }
 ]


I always getting s.th like this:
myvariable : [
  { attributes: { id : pjson_1 },
 data: Root node 1,
  },
  { attributes: { id : pjson_5 },
 data: Root node 2 }
 ]

The corresponding class looks like
public AjaxAction implements ActionSupport {

private String myvariable;

public String execute() throws Exception {
  JSTreeDataBuilder jsTreeDataBuilder = new JSTreeDataBuilder(new
ComputerNodeProvider(computer));
  jsTreeDataBuilder.assembleJSON();

  myvariable = jsTreeDataBuilder.getJSON();

  return Action.SUCCESS;
}

public String getMyvariable() {
  return data;
}

public void setMyvariable(String data) {
  this.myvariable = myvariable;
}

}

So the point is, it doesn't work and I don't know how to fix it.

Kind regards,
Michael

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



problem while reading multipart/form-data in struts

2009-12-15 Thread binash

We are using a validation framework to validate all input to our application.
This is implemented with a filter. In order to handle multipart form data
twice, we have created BufferedRequestWrapper class (as a sub class
'HttpServletRequestWrapper'). Now with this class I am able to get all the
form bean values in both filter class as well as in the struts ActionForms.
After saving the form data, i am redirecting the request to a jsp page which
includes global header page. In this included page i am getting following
error

java.lang.IllegalArgumentException: Cannot invoke Form.setCompanyLogo -
argument type mismatch.

In this page Struts try to populate(set methods) the form bean instead of
calling get methods. Here above exceptions is thrown in PropertiesUtil's
invoke method. please help to solve this problem. (we are not getting the
error if we pass Request objet instead of Wrapper object. in that case we
wont be able to get form data twice)

Wrapper class used is

public class BufferedRequestWrapper extends HttpServletRequestWrapper {

/**
 * The variable holds the Log4j instance to log the INFO, DEBUG, ERROR
and FATAL events.
 */
private static Logger LOG =
Logger.getLogger(BufferedRequestWrapper.class.getName());

ByteArrayInputStream bais;
ByteArrayOutputStream baos;
BufferedServletInputStream bsis;
byte[] buffer;
HttpServletRequest request =null;

public HttpServletRequest getHTTPRequest(){
return request;
}


public BufferedRequestWrapper(HttpServletRequest req) throws IOException
{
super(req);
this.request = req;
// Read InputStream and store its content in a buffer.
InputStream is = req.getInputStream();
baos = new ByteArrayOutputStream();
byte buf[] = new byte[1024];
int letti;
while ((letti = is.read(buf))  0)
baos.write(buf, 0, letti);
buffer = baos.toByteArray();
}

public ServletInputStream getInputStream() {
try {
// Generate a new InputStream by stored buffer
bais = new ByteArrayInputStream(buffer);
// Istantiate a subclass of ServletInputStream
// (Only ServletInputStream or subclasses of it are accepted by
the
// servlet engine!)
bsis = new BufferedServletInputStream(bais);
} catch (Exception ex) {
ex.printStackTrace();
} finally {
return bsis;
}
}


}

following code is  there in filter

if(request.getHeader(CONTENT_TYPE)!=null  isMultiPart() // checks if req
is multipart
 bufferedRequest = new BufferedRequestWrapper(request);
 //validate the input.
 Validator.validate(bufferedRequest);
 fc.doFilter(bufferedRequest, res);
  } else { // for normal request
 //validate the input.
 Validator.validate(request);
 fc.doFilter(req, res);
 }


exception thrown in jSP page is (this jsp page is part of view page after
the execution action class which handles form data)

19:49:22,785 ERROR [PropertyUtils] Method invocation failed.
java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:1773)
at
org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:1759)
at
org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1648)
at
org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java:1677)
at
org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1022)
at
org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811)  
-- 
View this message in context: 
http://old.nabble.com/problem-while-reading-multipart-form-data-in-struts-tp26806463p26806463.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: MySQL + JDBC

2009-12-15 Thread Todd Grigsby



Yes.  Running Tomcat 6 as a Windows service...Ok, this is 
interesting.  On a whim, I ran tomcat6w, and when it came up, it appears 
to using the C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll, 
which implies to me that the JVM it's attempting to use is the 32-bit 
version. 


High five, Mr. Kobly.

I searched around and, under C:\Program Files, I found a couple of 
jvm.dll's.  I tried pointing Tomcat to each of them, but the service 
died with an error code of #1.  Not sure what that is, but it occurs to 
me that I might fix this by simply reinstalling Tomcat and, when it asks 
for a JRE, I'll point it to the other JVM DLLs and see what it does.


TG

Patrick J Kobly wrote:

Running the binary dist of Tomcat?

tomcat.exe / tomcatw.exe

PK

Todd Grigsby wrote:



Patrick J Kobly wrote:

Todd Grigsby wrote:
Other native apps.  The Java apps are being migrated from a 32-bit 
environment (WinXP and Java 32-bit + Struts 1.1), and they worked 
there.  I don't want to point to any one thing, since every part of 
the equation is a newer version of what was there before, but at 
this point the only things that can't use the connections are the 
web apps.  
But the web apps are the only things that use Java.  You don't have 
standalone Java apps or Java webapps built on a different framework 
than Struts...  The issue is almost certainly a 32-bit JRE trying to 
access a 64-bit ODBC driver.


I'll buy that, but I'm confused -- I installed 64-bit Java, and when 
I open a command prompt and do java -version, it identifies itself as:


   Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
   Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)

But I'll see if I have anything on my system that is getting loaded 
that's 32-bit.


Thanks!

TG


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org





-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org






-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Problem with jquery plugin

2009-12-15 Thread Ernesto Reinaldo Barreiro
I'm using jqGrid this way

http://code.google.com/p/antilia-struts/wiki/SearchPage

http://code.google.com/p/antilia-struts/wiki/SearchPageRegards,

Ernesto

On Tue, Dec 15, 2009 at 8:57 PM, Oscar oscar.kalde...@gmail.com wrote:

 Hi to all, i was exploring the jquery plugin of struts 2 because i read
 that you can do something like a grid with the tags that provides that
 plugin, something like displaytag or extremecomponents.

 I follow an example that i found where they simply create a list in action
 and show the data in the jsp with the grid tags, but i have a problem, when
 i call the action, the method execute is called normally but finally it
 downloads the action, appears a dialog box in my browser asking if i want
 to save or open the file someAction.action. I'm using a json result, this is
 my struts.xml:

 package name=default extends=struts-default,json-default 
   action class=com.datasoft.struts.actions.JsonTable
 name=jsontable
   result name=success type=json/tablaYeison.jsp/result
   /action
   /package

 And this is the link with i'm trying to call the action:

 a href=jsontable.actionShow me the data/a

 I think that is something about the result.

 Regards.

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: Problem with jquery plugin

2009-12-15 Thread Johannes Geppert

You only link the JSON Result so your Browser download it,
instead of work with the result. 

jsontable.action Show me the data 

Give this url to the GRID ike this example.

s:url id=remoteurl action=jsontable/ 
sj:grid 
href=%{remoteurl} 
id=gridtable 
caption=Customer Examples 
dataType=json 
pager=true 
gridModel=gridModel
rowList=10,15,20
rowNum=15
rownumbers=true

sj:gridColumn name=id index=id title=ID formatter=integer
sortable=false/
sj:gridColumn name=name index=name title=Name
sortable=true/
sj:gridColumn name=country index=country title=Country
sortable=false/
sj:gridColumn name=city index=city title=City
sortable=false/
sj:gridColumn name=creditLimit index=creditLimit title=Credit
Limit formatter=currency sortable=false/
/sj:grid




Oscar Calderón-2 wrote:
 
 Hi to all, i was exploring the jquery plugin of struts 2 because i read 
 that you can do something like a grid with the tags that provides that 
 plugin, something like displaytag or extremecomponents.
 
 I follow an example that i found where they simply create a list in 
 action and show the data in the jsp with the grid tags, but i have a 
 problem, when i call the action, the method execute is called normally 
 but finally it downloads the action, appears a dialog box in my 
 browser asking if i want to save or open the file someAction.action. I'm 
 using a json result, this is my struts.xml:
 
 package name=default extends=struts-default,json-default 
 action class=com.datasoft.struts.actions.JsonTable 
 name=jsontable
 result name=success type=json/tablaYeison.jsp/result
 /action
 /package
 
 And this is the link with i'm trying to call the action:
 
  jsontable.action Show me the data 
 
 I think that is something about the result.
 
 Regards.
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 


-
---
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep

-- 
View this message in context: 
http://old.nabble.com/Problem-with-jquery-plugin-tp26800800p26807253.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org