Re: How to pass params with 'URL herf'

2008-10-13 Thread Lukasz Lenart
2008/10/13 Mead Lai <[EMAIL PROTECTED]>: > yes, have any clue? > public class Page { >private int num; >private int size = Constant.PAGE_SIZE; >private int volume; > > >private int index;// current page >public Page(){ > >} > > public int getIndex() { >return this.

input method gets invoked twice

2008-10-13 Thread Néstor Boscán
Hi I have many input method in different actions are being invoked twice. With Firebug I check that there is only one browser invocation. Any ideas? Regards, Néstor

Re: Alternatives to DisplayTag

2008-10-13 Thread ManiKanta G
You could try JMesa (http://code.google.com/p/jmesa/), which is also a good one. ManiKanta On 10/10/08, Pat <[EMAIL PROTECTED]> wrote: > Hi All, > > I'm just wandering if anybody here has some experience with some 'grid > tags'. I've been always using DisplayTag - it's very good table tag with >

Re: Display validation error messages when using simple theme?

2008-10-13 Thread Wes Wannemacher
On Mon, 2008-10-13 at 16:55 -0700, col_chappy wrote: > Is there any way to display validation error messages when using the struts2 > simple theme? -Wes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

Display validation error messages when using simple theme?

2008-10-13 Thread col_chappy
Is there any way to display validation error messages when using the struts2 simple theme? -- View this message in context: http://www.nabble.com/Display-validation-error-messages-when-using-simple-theme--tp19964986p19964986.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: Interceptor

2008-10-13 Thread Dave Newton
--- On Mon, 10/13/08, Jaarthy wrote: > Interceptor works fine.Null pointer Exception is thrown only > in the action. The point was that with zero information it's impossible to help you in any way. (And if everything works without the interceptor...) Dave --

RE: Interceptor

2008-10-13 Thread Martin Gainty
can you post your code? thanks, Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distri

Re: Interceptor

2008-10-13 Thread Jaarthy
Interceptor works fine.Null pointer Exception is thrown only in the action. newton.dave wrote: > > --- On Mon, 10/13/08, Jaarthy wrote: >> I am using struts2. I wrote an interceptor for validating the Captcha >> and thereby inserting the registration details in the database in my >> action,bu

Re: Interceptor

2008-10-13 Thread Dave Newton
--- On Mon, 10/13/08, Jaarthy wrote: > I am using struts2. I wrote an interceptor for validating the Captcha > and thereby inserting the registration details in the database in my > action,but when I try to retrieve the values entered in the > registratiion form,I get Null pointer Exception.Act

Interceptor

2008-10-13 Thread Jaarthy
I am using struts2. I wrote an interceptor for validating the Captcha and thereby inserting the registration details in the database in my action,but when I try to retrieve the values entered in the registratiion form,I get Null pointer Exception.Action class works fine when interceptor is not p

How to allow to download several files in a zip in Internet Explorer

2008-10-13 Thread Ariel
Hi Everybody: I 'm using struts 1.2 version, in my web application I have a chart where the user can add several files that are located in the server, then in a hiperlink the user decide to download the several files in a zip file. I implemented this functionalities, in Mozilla Firefox works perfec

Re: Any way to disable autowire on struts 2 actions?

2008-10-13 Thread Dave Newton
--- On Mon, 10/13/08, Peter Butler wrote: > From looking at the Struts 2 code and documentation I can't see any > way to disable this behaviour. I have tried setting > default-autowire="no" in my Spring application context configs and > autowire="no" for the individual actions in the Spring file

Any way to disable autowire on struts 2 actions?

2008-10-13 Thread Peter Butler
I am using Spring to create Struts 2 actions and populate the dependent objects. This works fine when I am running my application. I am using Struts 2.0.11. I want to unit test my Struts 2 actions in isolation by populating the dependencies manually using JMock objects. It seems that Struts 2 insi

Re: Using tiles 2 with struts 1

2008-10-13 Thread Lance Java
> 2. Use (and probably fix) the Struts 1/Tiles 2 plugin: This is what I'm after... thanks! > Spring 2.5 has an integration layer to Tiles 2: Yep... that's the easy bit :) Thanks, Lance. 2008/10/13 Antonio Petrelli <[EMAIL PROTECTED]> > 2008/10/13 Lance Java <[EMAIL PROTECTED]>: > > Is it possib

Re: Using tiles 2 with struts 1

2008-10-13 Thread Lance Java
> Any reason for your optioning against Struts2.x? Spring MVC is the new standard where I currently work and all sites are moving in that direction. The support team and developers here have spring MVC skills so it makes sense. If it was up to me I'd be moving to tapestry5 (http://tapestry.apache.o

Re: Using tiles 2 with struts 1

2008-10-13 Thread Antonio Petrelli
2008/10/13 Lance Java <[EMAIL PROTECTED]>: > Is it possible to use tiles2 with struts1? There are two ways: 1. Use Tiles 2 independently of Struts 1: this way you can use them both, but without real integration (such as forwarding to a Tiles definition). 2. Use (and probably fix) the Struts 1/Tile

RE: Using tiles 2 with struts 1

2008-10-13 Thread Martin Gainty
Good Morning Lance I would start here http://www.jajakarta.org/struts/struts1.2/documentation/ja/target/userGuide/struts-tiles.html Any reason for your optioning against Struts2.x? Martin __ Disclaimer and confidentiality note Everything in this e-m

Re: How does action mapping work on Struts2 Showcase example application?

2008-10-13 Thread Julio Alberto Jalón
You are rigth. There it was the mistery Thanks a lot - Mensaje original De: Dave Newton <[EMAIL PROTECTED]> Para: Struts Users Mailing List Enviado: lunes, 13 de octubre, 2008 15:22:45 Asunto: Re: How does action mapping work on Struts2 Showcase example application? --- On Mon,

how to populate data dynamically onselect from select optoins

2008-10-13 Thread Dravid
Hi All, I am using struts 1.2 in my web application. I have to display one list List will be build dynamically. User can select any option. Based on the user's selection page will be refreshed need to hit the database and display information in other fields on same page. When user selects

RE: URL param included on all URL's

2008-10-13 Thread col_chappy
I had been playing with the includeParam attribute with no change in behavior. I added the includeParam="none" attribute to my standard navigation links and they no longer carry the ?id parameter. So I guess the problem is solved for now. Maybe I'll have some time in a few weeks to figure out wh

Using tiles 2 with struts 1

2008-10-13 Thread Lance Java
Is it possible to use tiles2 with struts1? I am about to move a struts 1 app to spring MVC + tiles2. I was hoping that spring MVC and struts 1 could live side by side in the interum period but first I need to upgrade to struts1 + tiles2. I've looked through the struts1 website which seems out of da

R: polish dialectic signs lturn into #

2008-10-13 Thread D'Ottavio Alessandro
I had before an error like this.. The encoding was Arabic and all the character become ? (question mark) It wasn't related to struts, but to the application server (IBM Web Sphere) The application works in my test server (windows) but not in production environment (UNIX) We discovered that IBM

RE: polish dialectic signs lturn into #

2008-10-13 Thread Martin Gainty
the JVM is platform agnostic maybe if you provide package.properties and code snippets we could help you out package.properties should be located on classpath and should contain getText function e.g. requiredstring = ${getText(fieldName)} is required. start here http://struts.apache.org/2.0.6/st

polish dialectic signs lturn into #

2008-10-13 Thread Raghu
I have developed JSP Struts Polish Application in UTF-8 encoding. Application interacts with SAP for polish data .I am able to insert the data into SAP from jsp application running on tomcat. Application which is working on windows version of polish system (windows XP )is not working on Li

Re: URL param included on all URL's

2008-10-13 Thread Dave Newton
--- On Mon, 10/13/08, col_chappy wrote: > This works well, except now every link, even those on other pages, have > that ?id parameter in the URL. What am I messing up? Any help is > appreciated In addition to David's suggestion, you can also set a default value for the entire application: >Fro

Re: How does action mapping work on Struts2 Showcase example application?

2008-10-13 Thread Dave Newton
--- On Mon, 10/13/08, Julio Alberto Jalón wrote: > Specifically I refer to "Person-Manager" functionallity. There is no > action reference to this part in struts.xml or struts-person.xml or > any xmle file. How is it working then? Is it using a sort of > wildcards? But, where is it configure? >

RE: URL param included on all URL's

2008-10-13 Thread Kawczynski, David
I think you want to use an includeParams="none" attribute in the s:url tag -Original Message- From: col_chappy [mailto:[EMAIL PROTECTED] Sent: Monday, October 13, 2008 10:07 AM To: user@struts.apache.org Subject: URL param included on all URL's I'm developing a webapp with Struts 2.0.11

URL param included on all URL's

2008-10-13 Thread col_chappy
I'm developing a webapp with Struts 2.0.11.2. I've got a page that displays a list of customers and allows you to click on them to bring up a page with more information. Each customer has a unique ID which is passed as a parameter in the URL. The JSP code looks like this: This wo

How does action mapping work on Struts2 Showcase example application?

2008-10-13 Thread Julio Alberto Jalón
Specifically I refer to "Person-Manager" functionallity. There is no action reference to this part in struts.xml or struts-person.xml or any xmle file. How is it working then? Is it using a sort of wildcards? But, where is it configure? Thanks in advance.

Executing Action on validation failure.

2008-10-13 Thread j alex
Hi, I need to implement an use case where the data needs to be saved in DB, even though all the submitted form fields aren't valid. The rule is to make those fields empty and insert whatever is good into the DB (there are few non-nillable fields that need to be valid as a prerequisite). I don't wa

Re: Is there some problem with maillist server ? I awalys get failture message about delivery .

2008-10-13 Thread Alex Coles
On Mon, Oct 13, 2008 at 10:28 AM, Mead Lai <[EMAIL PROTECTED]> wrote: > anyone get this iusse? or can send mail normally? > > The content is following that: > > > This is an automatically generated Delivery Status Notification. > > Delivery to the following recipients failed. > > [EMAIL PROTEC

Re: s:radio Tag - Buttongroup Support?

2008-10-13 Thread Dave Newton
--- On Mon, 10/13/08, Torsten Krah wrote: > How does struts2 support radio button groups? The "name" attribute? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to pass params with 'URL herf'

2008-10-13 Thread Dave Newton
--- On Mon, 10/13/08, Lukasz Lenart wrote: > Yes, you can use them like that, only remeber to have > public getters and setters (for Page and for Index) For Struts 2.1.3, at least, you can actually use public properties w/o the s/getters. Whether or not that's a good idea is, of course, a differe

s:radio Tag - Buttongroup Support?

2008-10-13 Thread Torsten Krah
Hi. I've got a table where every line needs to be a new button group (using custom template to remove label and add ). But there is no attribute a s:radio to specify the group which should be used. How does struts2 support radio button groups? smime.p7s Description: S/MIME cryptographic signat

Remove [EMAIL PROTECTED]

2008-10-13 Thread Lukasz Lenart
Hi, Could someone remove this email from list? It's very annoying ;-( Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to pass params with 'URL herf'

2008-10-13 Thread Mead Lai
yes, have any clue? public class Page { private int num; private int size = Constant.PAGE_SIZE; private int volume; private int index;// current page public Page(){ } public int getIndex() { return this.index >= 0 ? this.index : 0; } public void setIn

Re: How to pass params with 'URL herf'

2008-10-13 Thread Lukasz Lenart
2008/10/13 Mead Lai <[EMAIL PROTECTED]>: > well, It's not work, > It throw NullPointException at following line: > System.out.println("##index" + this.page.getIndex()); > It seems page object haven't been created? Does your Page class has default constructor? Regards -- Lukasz http://www.le

Re: How to pass params with 'URL herf'

2008-10-13 Thread Mead Lai
well, It's not work, It throw NullPointException at following line: System.out.println("##index" + this.page.getIndex()); It seems page object haven't been created? full code: public class myAction{ private Page page; public Page getPage() { return page; } public void s

Re: How to pass params with 'URL herf'

2008-10-13 Thread Lukasz Lenart
2008/10/13 Mead Lai <[EMAIL PROTECTED]>: > I have added public getters and setters methods. > but how to write the struts tag > > > 12 > > > can I use to set model properties? Yes, you can use them like that, only remeber to have public getters and setters (for Page and for Index) Regards --

Is there some problem with maillist server ? I awalys get failture message about delivery .

2008-10-13 Thread Mead Lai
anyone get this iusse? or can send mail normally? The content is following that: This is an automatically generated Delivery Status Notification. Delivery to the following recipients failed. [EMAIL PROTECTED] Final-Recipient: rfc822;[EMAIL PROTECTED] <[EMAIL PROTECTED]> Action: faile

Re: How to pass params with 'URL herf'

2008-10-13 Thread Mead Lai
I have added public getters and setters methods. but how to write the struts tag 12 can I use to set model properties? public class Page{ public int index; public int next; ///get and set } public class myAction{ private Page page; //get and set public String excute(){ return SUCCESS; } }

Re: How to pass params with 'URL herf'

2008-10-13 Thread Lukasz Lenart
2008/10/13 Mead Lai <[EMAIL PROTECTED]>: > How to pass params with 'URL herf'? > well, the params data wanne pass to Model's property. > such, I have a "page" object in myAction, with get and set method. > > public class myAction{ > private Page page; > } > > public class Page{ > public int index