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
e 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 ha
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
The tag worked, thanks that will come in handy. I would
still like to get errors reporting in the logs, any got any ideas?
On Wed, Oct 6, 2010 at 2:39 PM, Mead Lai wrote:
> try the tag
>
> on the page
>
>
> Regards,
> Mead
>
>
> On Wed, Oct 6, 2010 at 9:37 PM, Dar
Hi,
I can't seem to get any errors to appear when struts goes wrong
(action trying to set/get an attribute that doesn't exist etc). I have
the commons-logging-1.1.jar file in my /WEB-INF/lib
folder and have the
line in my struts.xml file. Despite this I have never seen an error in
my log files. Is
in the required validator
> class'validation method. And check whether the value is populated .
> Maybe it'snull .
>
> 2010/10/5, Darren Karstens :
>> Hi,
>> I have a xml validator for my user login action which requires values
>> for both the userName a
Hi,
I have a xml validator for my user login action which requires values
for both the userName and password fields. However when submit the
form with these fields populated I still get the same "Username is
required" and "Password is required" messages. Am I right in thinking
that the "required" v
Thanks for the responses. The validation interceptor seems to be
exactly what I was looking for.
Regards
Darren
> You don't need multiple classes. The validate interceptor, as the prepare
> one, is very flexible in this sense. You can define multiple validate
> methods inside a single action class
Hi,
I have just started learning struts2 and was wondering what is the best way
to structure my application.
I was planning on creating one ActionSupport class to deal with all user
action (creating, editing, login etc). This would have a method for each
type of action (create(), login() etc) and
9 matches
Mail list logo