Re: How to display a table (data grid) using Struts2 - Is there a tag?

2009-12-10 Thread Ernesto Reinaldo Barreiro
Nice work! I also have integrated jqGrid into a struts taglib http://code.google.com/p/antilia-struts but have followed a different approach. Configuration is done at the server side... http://code.google.com/p/antilia-struts/wiki/SearchPage Best, Ernesto On Thu, Dec 10, 2009 at 6:51 PM, Joha

Re: excute method will not work without the form's button

2009-12-10 Thread Saeed Iqbal
Or index only instead of index.action On Fri, Dec 11, 2009 at 12:06 PM, Lukasz Lenart < lukasz.len...@googlemail.com> wrote: > 2009/12/11 Nguyen Xuan Son : > > can you tell me more in detail? > > thank you very much > > You're probably accessing your application like that > http://localhost:8080/

Re: excute method will not work without the form's button

2009-12-10 Thread Lukasz Lenart
2009/12/11 Nguyen Xuan Son : > can you tell me more in detail? > thank you very much You're probably accessing your application like that http://localhost:8080/myapp/index.jsp And in such case, action isn't executed. Try to create action that will have execute() method and will return SUCCESS and

Re: [S2] i18n not using default bundle

2009-12-10 Thread Saeed Iqbal
why dont you just use this struts.custom.i18n.resources=package and put your CN file name in there. On Thu, Dec 10, 2009 at 10:31 PM, wrote: > Thanks. > > That is what I plan to do if that is nothing to do with struts. > > Regards > LV > > > > > From: Alex Sima

Struts 2 JSP Result + GWT

2009-12-10 Thread Hong Zheng
Hi all, I have been struggling with this problem for a few months now. I am using GWT with Struts 2 on my website. Following is the configuration for the registration page: /jsp/registration.jsp /jsp/registration_confirmation.jsp registration.jsp contains a form coded using GWT. After

Re: excute method will not work without the form's button

2009-12-10 Thread Nguyen Xuan Son
can you tell me more in detail? thank you very much 2009/12/11 Lukasz Lenart > 2009/12/10 Nguyen Xuan Son : > > is there any way that whenever I access to the JSP webpage > > the source code which helps display data using display tag will be > execute? > > Yes, do not go directly to jsp pages, a

Re: redirect with parameter

2009-12-10 Thread prasad iyer
Hi Neil, Thanks a lot. I solved the problem /${redirecturl}?${urlparameters} true /left/jsp/signup/signup.jsp /left/jsp/signup/signup.jsp

RE: redirect with parameter

2009-12-10 Thread Neil Aggarwal
Prasad: > I am stuck with a problem I want to add parameters to > redirect. Following is the example. Here is what works for me: In struts.xml: 303 ${redirectUrl} I generate the full url in my bean code including all parameters I want encoded. I hope that helps, Neil --

Re: Struts 2 Result + GWT

2009-12-10 Thread Frans Thamura
hi zheng, hong usually GWT must be compiled first, so we can add to struts2 apps, what is the structure of your project, because i am interesting to use GWT also, esp ExtGWT Frans On Fri, Dec 11, 2009 at 5:45 AM, Zheng, Hong wrote: > Hi all, > > I have been struggling with this problem for

Struts 2 Result + GWT

2009-12-10 Thread Zheng, Hong
Hi all, I have been struggling with this problem for a few months now. I am using GWT with Struts 2 on my website. Following is the configuration for the registration page: /jsp/registration.jsp /jsp/registration_confirmation.jsp registration.jsp contains a form coded using GWT

redirect with parameter

2009-12-10 Thread prasad iyer
Hi, I am stuck with a problem I want to add parameters to redirect. Following is the example. ${redirecturl} ${email} /left/jsp/signup/signup.jsp /left/jsp/signup/signup.jsp but email is not getting appended to the url. Help would be highly appreciated th

Re: excute method will not work without the form's button

2009-12-10 Thread Lukasz Lenart
2009/12/10 Nguyen Xuan Son : > is there any way that whenever I access to the JSP webpage > the source code which helps display data using display tag will be execute? Yes, do not go directly to jsp pages, always access them through actions ;-) Regards -- Lukasz http://www.lenart.org.pl/ -

Struts 2 JSP Result + GWT

2009-12-10 Thread Zheng, Hong
Hi all, I have been struggling with this problem for a few months now. I am using GWT with Struts 2 on my website. Following is the configuration for the registration page: /jsp/registration.jsp /jsp/registration_confirmation.jsp registration.jsp contains a form coded using GWT

Re: Convention plug-in, tiles, and no @Result annotation

2009-12-10 Thread Konstantyn Harasevich
Hello Problem with Tiles 2: When try to deploy application standart wrapper exception Servlet.service() Problem with tiles for configuring locale. Exception tell that no definition for locale in tiles with null pointer exception . How to resolve this? Thanks. ---

Re: Convention Plugin - Action Chaining

2009-12-10 Thread Musachy Barroso
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. musachy On Thu, Dec 10, 2009 at 7:10 AM, RogerV wrote: > > I'm trying to get action chaining to work as described in the section > chaining at

Re: [Struts 2.1.8.1] [JSON] How to build a JSON for jsTree (array without variable name)

2009-12-10 Thread Musachy Barroso
The root object should be an array or list that contains a map or object, and so on. On Wed, Dec 9, 2009 at 10:38 PM, Michael Obster wrote: > Hi, > > I'm trying to build a correct JSON for usage with jsTree. Therefor I need > s.th. like that: > [ >  { attributes: { id : "pjson_1" }, >            

Re: Time to process request

2009-12-10 Thread André Lopes
For a tipical web browser application that should be a good approach, but in this case, my application acts as a gateway, so all operations are a one shot operation. I will go to extend the class TilesRequestProcessor, and implement my own protected ActionForward processActionPerform(...) overridi

Re: How to display a table (data grid) using Struts2 - Is there a tag?

2009-12-10 Thread Johannes Geppert
Since today the struts2 jQuery Plugin brings a grid tag based on jQuery Grid Plugin to you. http://code.google.com/p/struts2-jquery/wiki/GridTag You can find various samples in the Showcase http://www.weinfreund.de/struts2-jquery-showcase/ Best Regards Johannes Geppert jvsrvcs wrote: > > We

s:select escape

2009-12-10 Thread CRANFORD, CHRIS
How can I use the tag in order to display a Map pair without the displayed value being escaped? I am needing to indent portions of the dropdown list like a parent/child and it appears the default behavior is to escape my ampersand. I can use an and combination to create the dropdown but loo

Re: [S2] i18n not using default bundle

2009-12-10 Thread mailtolouis2020-struts
Thanks. That is what I plan to do if that is nothing to do with struts. Regards LV From: Alex Siman To: user@struts.apache.org Sent: Thu, December 10, 2009 4:54:26 PM Subject: Re: [S2] i18n not using default bundle The trick is simple: create an empty file:

Re: How to display a table (data grid) using Struts2 - Is there a tag?

2009-12-10 Thread Chris Pratt
We use jQuery to add that functionality. (*Chris*) On Thu, Dec 10, 2009 at 8:04 AM, jvsrvcs wrote: > > Thanks for the link. I have some simple demos working. Now we need > onClick, > onHover etc on some items in the row. I tried a few things but nothing > works. > > Is it possible to take a

excute method will not work without the form's button

2009-12-10 Thread Nguyen Xuan Son
dear all I realized that the execute method could not be reached without the form's button in detail, my example is that i want to display the data table using display tag whenever the page is open i placed all the source code in the execute method however nothing is displayed after i inserted the

Re: [S2] i18n not using default bundle

2009-12-10 Thread Alex Siman
The trick is simple: create an empty file: global-message_zh_CN.properties This is not Struts 2 problem, but Java ResourceBundle's. You can read more here: http://old.nabble.com/Struts2-%2B--I18N-td24973817.html#a24978732 mailtolouis2020-str...@yahoo.com wrote: > > Hello, > > I got a doubt on

Re: How to display a table (data grid) using Struts2 - Is there a tag?

2009-12-10 Thread jvsrvcs
Thanks for the link. I have some simple demos working. Now we need onClick, onHover etc on some items in the row. I tried a few things but nothing works. Is it possible to take a column and make the data there links that also have onLoad, onClick, onHover depending on our needs for that colum

Re: [S2] i18n not using default bundle

2009-12-10 Thread Saeed Iqbal
Im away from my pc (iphone) so i will let you know tomorrow Its 8:15pm On Thursday, December 10, 2009, wrote: > Hi, > > I tried both, move up and remove just leave Chinese Language there, both > still the same, it still take the resource from _en.properties. > > Here is my setting > > > > v

Convention Plugin - Action Chaining

2009-12-10 Thread RogerV
I'm trying to get action chaining to work as described in the section chaining at http://struts.apache.org/2.1.6/docs/convention-plugin.html. My Foo action and bar actions are listed below. What happens is that when Foo is called, it correctly displays foo.jsp. When foo.jsp is submitted it fills i

Re: [S2] i18n not using default bundle

2009-12-10 Thread mailtolouis2020-struts
Hi, I tried both, move up and remove just leave Chinese Language there, both still the same, it still take the resource from _en.properties. Here is my setting Whether I set struts.locale or not, it make no different. By the way, what is this setting mean? Regards LV ___

Re: [S2] i18n not using default bundle

2009-12-10 Thread Saeed Iqbal
Set the constant variable in struts.xml or struts.properties variable for i8nl On Thursday, December 10, 2009, carl ballantyne wrote: > Hi LV, > > When you say you set your browser to Chinese are you simply moving Chinese up > the list of prefered languages or are you removing all english from p

Re: [S2] i18n not using default bundle

2009-12-10 Thread carl ballantyne
Hi LV, When you say you set your browser to Chinese are you simply moving Chinese up the list of prefered languages or are you removing all english from prefered languages. Because if it is the former then I think it would still look for an *_en.properties file over the default. Cheers, C

[S2] i18n not using default bundle

2009-12-10 Thread mailtolouis2020-struts
Hello, I got a doubt on struts 2 i18n. I'm using S2. 2.1.8.1. I got 2 properties in my application: global-message.properties(store Chinese Language) global-message_en.properties (store English Language) When I run my application, and set my browser language to Chinese (zh-CN), I expect whe

Re: Simple two button form - Struts 1.2.x

2009-12-10 Thread Dan Vargas
Awesome, thanks. I've gotten it to do what I need. On Thu, Dec 10, 2009 at 7:12 AM, Mark Shifman wrote: > Use EventDispatchAction or just use javascript to go to the action you want > when the button is pushed. > mas > davargas123 wrote: > >> I am putting in page that loads at the beginning of m

Re: Simple two button form - Struts 1.2.x

2009-12-10 Thread Mark Shifman
Use EventDispatchAction or just use javascript to go to the action you want when the button is pushed. mas davargas123 wrote: I am putting in page that loads at the beginning of my application, and all it has two buttons that should end up forwarding to do one of two different actions. How can I

Re: Convention plug-in, tiles, and no @Result annotation

2009-12-10 Thread Paweł Wielgus
Hi Fran and Wes, an alternative for what Wes has written is to use tiles inside jsp files like this, in my-action.jsp i have: [extra spaces added] < % @page contentType="text/html;charset=utf-8" language="java" % > < % @ taglib uri="http://tiles.apache.org/tags-tiles"; prefix="tiles" % > < % @ tag