File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Problem with action + parameters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem with action + parameters" Watch "Problem with action + parameters" New topic

Problem with action + parameters

Polo Pawel

Joined: Jun 30, 2010
Posts: 1

I have one action like this:

and one interceptor with class which check that session exists:

I have problem with passing parameter "id",
when class zdr.ListaZdr runs in the parameter is null,
but when I switch off interceptor the parameter has a true value.

Where is the problem?

Sorry for my English.

David Newton

Joined: Sep 29, 2008
Posts: 12617

If you define interceptors for an action you must define *all* of the interceptors for an action. So currently, when you configure the interceptor in your action config, you're running only the single interceptor--meaning the "params" interceptor isn't running, so no parameters are set.
I agree. Here's the link:
subject: Problem with action + parameters
It's not a secret anymore!