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
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
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
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
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
5 matches
Mail list logo