Struts2 Architecture - 2.0.14 and 2.1.8

2009-12-11 Thread Jayson Joseph Chacko
Hi, Is there any key architectural changes between 2.0.14 and 2.1.8? Or does the key concepts remain the same? Thanks, Jayson

Problem with jQuery DataTables plugin working with Struts2 AJAX

2009-12-11 Thread DustFrog
I have a page where the search criteria is at the top and below it is the results display. For displaying the results, I'm using the tag to make an AJAX call to retrieve results and display them on the same page. To display the table results, I'm using the jQuery plugin, DataTables, which works

Re: "specified DSN contains an architecture mismatch"

2009-12-11 Thread Todd Grigsby
Yes, thank you, I know that. My question has to do with the architecture mismatch. All the documentation I've seen on this indicates that there is a 32-bit/64-bit issue, but I'll be darned if I know which piece is at fault. Given the versions of the various parts, does anyone have any idea

select tag problem

2009-12-11 Thread Nguyen Xuan Son
dear all in JSP file i have in struts.xml file i have /C0031_List.jsp /C0032_Add.jsp in Java file i have public List getMainCategory() { List ls = null; DropDownList dr = null; dr.setId(0); dr.setName("--please select one of these--"); ls.add(dr); return ls; } but the error appear tag 'select'

RE: "specified DSN contains an architecture mismatch"

2009-12-11 Thread Martin Gainty
you're using InitialContext to lookup a DataSource registered to JNDI registry Martin Gainty __ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Ez az üzenet bizalmas. Ha nem ön az akine

Re: "specified DSN contains an architecture mismatch"

2009-12-11 Thread Musachy Barroso
O_o On Fri, Dec 11, 2009 at 3:01 PM, 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

"specified DSN contains an architecture mismatch"

2009-12-11 Thread Todd Grigsby
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.n

RE: Struts 2 Result + GWT

2009-12-11 Thread Zheng, Hong
Hi Alex, It seems we have to hard-code JSP path in Java files using Convention plugin. That might make code change a bit difficult later... Hong -Original Message- From: Alex Siman [mailto:aleksandr.si...@gmail.com] Sent: Friday, December 11, 2009 4:20 AM To: user@struts.apache.org Subj

Re: Struts 1.0 and Spring?

2009-12-11 Thread Paul Benedict
1.1 should be backwards compatible with 1.0. Have you thought of upgrading? On Fri, Dec 11, 2009 at 12:39 PM, Stephen Turner wrote: > On Fri, 11 Dec 2009 13:26:46 -0500, Paul Benedict > wrote: > >> Have you looked at the Spring API for its Struts support? >> > > All I've seen in the Spring code

Re: Why did not show action message?

2009-12-11 Thread Emi Lu
Hi Eduard, Did you send your success message from the action ? (1) In action1 (a1.java): addActionMessage("Success!"); (2) through tiles action1 -> action2 (a2.java) (3) from action2 -> final jsp if from (1) to (3) directly, it will be shown. But from (1) to (2) to (3), it doesn't

Authorization technique

2009-12-11 Thread nani2ratna
Hi, We are developing one application with struts2, spring, spring security, ldap and Ibatis. Anybody implemented Authorization from ldap?? Please give me a nice resource to implement ldap authorisation and authentication with spring security. Thanks RS -- View this message in context: http:

Re: Why did not show action message?

2009-12-11 Thread Eduard Neuwirt
Did you send your success message from the action ? Emi Lu schrieb: Good afternoon, With struts2.1.81, in action class: addActionMessage("Success!"); in JSP, display . But the success message never show up? Any clues? Thanks a lot! -- Lu Ying ---

Why did not show action message?

2009-12-11 Thread Emi Lu
Good afternoon, With struts2.1.81, in action class: addActionMessage("Success!"); in JSP, display . But the success message never show up? Any clues? Thanks a lot! -- Lu Ying - To unsubscribe, e-mail: user-unsubscr...@strut

Re: Struts 1.0 and Spring?

2009-12-11 Thread Stephen Turner
On Fri, 11 Dec 2009 13:26:46 -0500, Paul Benedict wrote: Have you looked at the Spring API for its Struts support? All I've seen in the Spring code refers to Struts 1.1 Steve On Fri, Dec 11, 2009 at 12:13 PM, Stephen Turner wrote: I maintain a Struts 1.0 app and need to make some chang

Re: Struts 1.0 and Spring?

2009-12-11 Thread Paul Benedict
Have you looked at the Spring API for its Struts support? On Fri, Dec 11, 2009 at 12:13 PM, Stephen Turner wrote: > I maintain a Struts 1.0 app and need to make some changes. While I'm working > on the app, I'm wondering if there's any chance I could integrate Spring > into the app, to manage Str

Struts 1.0 and Spring?

2009-12-11 Thread Stephen Turner
I maintain a Struts 1.0 app and need to make some changes. While I'm working on the app, I'm wondering if there's any chance I could integrate Spring into the app, to manage Struts action classes. I found a plugin for Struts 1.1, but I don't want to upgrade the Struts version at this point.

Re: displaytag css problem

2009-12-11 Thread Chris Pratt
Give your displaytag a class of it's own (something like "displaytag"), then prefix all your css entries with ".displaytag" so that they only act on elements within the DisplayTag. (*Chris*) On Fri, Dec 11, 2009 at 5:16 AM, Nguyen Xuan Son wrote: > dear all > im using the displaytag > however,

Re: Convention Plugin - Action Chaining

2009-12-11 Thread Musachy Barroso
So it is finding a jsp that it think it is the result, that's why it is not doing the forward. On Fri, Dec 11, 2009 at 1:48 AM, RogerV wrote: > > > > Musachy Barroso wrote: >> >> If they are in the same package that should work, all I can advise is >> to put a breakpoint in ConventionUnknownHandl

displaytag css problem

2009-12-11 Thread Nguyen Xuan Son
dear all im using the displaytag however, after i add the screen.css into my jsp webpage all the other HTML tag is effected everything went wrong do you have any suggestion? thank you very much -- === Ritsumeikan University, Asia

Validation by Annotation against a list of entities

2009-12-11 Thread RogerV
Hi I'm displaying a list of objects that allows the user to edit any/all entities in the list. How do I configure the validation framework (preferably via annotation) so that when the list is submitted back into my action, each entity is individually validated. Regards -- View this message in c

Re: [S2] i18n not using default bundle

2009-12-11 Thread Saeed Iqbal
Sorry Sir. On Fri, Dec 11, 2009 at 5:47 PM, Haroon Rafique wrote: > On Today at 2:47pm, SI=>Saeed Iqbal wrote: > > SI> no need to put resources. > SI> > SI> On Fri, Dec 11, 2009 at 2:45 PM, Saeed Iqbal > wrote: > SI> > SI> > Why dont you just give it the value global-message_zh_CN > SI> > > > S

Re: [S2] i18n not using default bundle

2009-12-11 Thread Haroon Rafique
On Today at 2:47pm, SI=>Saeed Iqbal wrote: SI> no need to put resources. SI> SI> On Fri, Dec 11, 2009 at 2:45 PM, Saeed Iqbal wrote: SI> SI> > Why dont you just give it the value global-message_zh_CN SI> > Saeed, Slow down a little bit. The original poster got his answer already. An empty g

Re: [S2] i18n not using default bundle

2009-12-11 Thread mailtolouis2020-struts
I think that is not how the resource bundle work, it is better always set the value without the language suffix resources is just a folder name where I store my properties file. From: Saeed Iqbal To: Struts Users Mailing List Sent: Fri, December 11, 2009 9:

Re: Convention Plugin - Action Chaining

2009-12-11 Thread RogerV
Musachy Barroso wrote: > > If they are in the same package that should work, all I can advise is > to put a breakpoint in ConventionUnknownHandler, line 301 and see what > is going on. > Hi Musachy At line 301 if (result == null && resultCode != null) result is an instance of ServletDispatch

Re: [S2] i18n not using default bundle

2009-12-11 Thread Saeed Iqbal
no need to put resources. On Fri, Dec 11, 2009 at 2:45 PM, Saeed Iqbal wrote: > Why dont you just give it the value global-message_zh_CN > > > On Fri, Dec 11, 2009 at 2:44 PM, wrote: > >> yes, I did have >> > value="resources.global-message"/> >> >> so to make it work, what I do now is in my re

Re: [S2] i18n not using default bundle

2009-12-11 Thread Saeed Iqbal
Why dont you just give it the value global-message_zh_CN On Fri, Dec 11, 2009 at 2:44 PM, wrote: > yes, I did have > value="resources.global-message"/> > > so to make it work, what I do now is in my resources folder, I'll have > global-message.properties, global-message_en.properties and > glob

Re: [S2] i18n not using default bundle

2009-12-11 Thread mailtolouis2020-struts
yes, I did have so to make it work, what I do now is in my resources folder, I'll have global-message.properties, global-message_en.properties and global-message_zh_CN.properties (an empty file) From: Saeed Iqbal To: Struts Users Mailing List Sent: Fri, D

Re: Struts 2 Result + GWT

2009-12-11 Thread Alex Siman
Maybe just use Struts 2 Convention plugin? It will allow you to reuse Java constants in Struts 2 and GWT code. package gwtapp.server.action; import static gwtapp.client.consts.StrutsLocations; @Results({ @Result( name = Action.SUCCESS, location = REGISTRATI