If tag expression problem

2010-10-08 Thread Darren Karstens
Hi, I have the following code that displays a list of page numbers that all have links except for the current page (defined by the request parameter 'page'): However this doesn't work and the if condition is alway false. I tried outputting the value of #it in each itterati

Re: If tag expression problem

2010-10-08 Thread Li Ying
I think there is a type mismatch too. Converting the array [pages] to strings should work, can you post your code, show us how you convert it? Or, you can try this: see if it works. 2010/10/8 Darren Karstens : > Hi, > I have the following code that displays a list of page numbers that > a

Re: If tag expression problem

2010-10-08 Thread Li Ying
Another solution is: Step1, In you Action class, add a property named "page" with get/set method, which is int type. So this property will capture the value of request parameter, and convert it to [int] Step2, In you jsp, reference the "page" property and compare it to the variable [it] in the it

Re: If tag expression problem

2010-10-08 Thread Darren Karstens
Hi, I tried but still no luck. Here is the code for generating the pages array inside the action: private String pages[]; // inside execute... pageSize = 15; int numberCards = this.retrieveNumberCards(db,(String)user); this.pages = new String[(numberCards/this.pageSize)+1]; for (int i = 0; i<(n

Re: If tag expression problem

2010-10-08 Thread Darren Karstens
I tried putting the current page value into the action like you said and it works!! Still not sure why the other method failed, but its working now :) Thanks for the help Darren On Fri, Oct 8, 2010 at 11:15 AM, Darren Karstens wrote: > Hi, > I tried but still no luck. > > Here is the code for g

Re: Requesting bug on struts-tiles-plugin

2010-10-08 Thread Rodrigo Esteban Cares Guarda
Hi, from http://tiles.apache.org site: Warning! Tiles users that use Tiles 2.1.1 or 2.1.0 version should not install it in a production environment, due to a discovered security problem. Upgrade Tiles. Tiles 2.0.x is not involved in this security bug. El jue, 07-10-2010 a las 23:46 -0400, Marti

Tiles2 error with javax.portlet.PortletRequest not found

2010-10-08 Thread Jose Luis Martinez Avial
Hello, I'm using Struts 2.1.8.1 with Tiles 2.1.4. I'm getting the following error when I try to deploy the application in WL 10.3: java.lang.NoClassDefFoundError: javax/portlet/PortletRequest at org.apache.tiles.portlet.context.PortletTilesRequestContextFactory.(PortletTilesRequestConte

Re: Tiles2 error with javax.portlet.PortletRequest not found

2010-10-08 Thread Antonio Petrelli
Please ask the Tiles users mailing list: http://tiles.apache.org/mail.html Antonio 2010/10/5 Jose Luis Martinez Avial : > Hello, >    I'm using Struts 2.1.8.1 with Tiles 2.1.4. I'm getting the following > error when I try to deploy the application in WL 10.3: > java.lang.NoClassDefFoundError: jav

Validation with preloading form fields

2010-10-08 Thread Joshua Tennent
I am having trouble validating a form where it requires preloading lists for some of the fields. I'm not sure how to configure the struts.xml entry for the INPUT return type. I am getting this error, which is indicating it's not getting to the prepare method of createCharacterAction: tag 'rad

Re: Validation with preloading form fields

2010-10-08 Thread Dave Newton
Are you implementing Preparable, or overriding the input() method? Dave On Friday, October 8, 2010, Joshua Tennent wrote: >  I am having trouble validating a form where it requires preloading lists for > some of the fields. I'm not sure how to configure the struts.xml entry for > the INPUT ret

Re: Validation with preloading form fields

2010-10-08 Thread Joshua Tennent
That was it, thanks! I forgot to implement Preparable. On 10/8/2010 7:45 PM, Dave Newton wrote: Are you implementing Preparable, or overriding the input() method? Dave On Friday, October 8, 2010, Joshua Tennent wrote: I am having trouble validating a form where it requires preloading list

Re: Validation with preloading form fields

2010-10-08 Thread Dave Newton
No sweat :) On Friday, October 8, 2010, Joshua Tennent wrote: >  That was it, thanks! I forgot to implement Preparable. > > On 10/8/2010 7:45 PM, Dave Newton wrote: > > Are you implementing Preparable, or overriding the input() method? > > Dave > > On Friday, October 8, 2010, Joshua Tennent  wrot

Validation Problem

2010-10-08 Thread Chris Miles
Whenever the validation procedure returns to the "input" result, any

Nasty exception in struts2 ognl

2010-10-08 Thread Ricardo Oliveira
Also posted in stackoverflow: http://stackoverflow.com/questions/3895961/nasty-java-lang-numberformatexception-in-struts2-ognl Any help appreciated! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional com