File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Problem with action + parameters

Polo Pawel
Greenhorn

Joined: Jun 30, 2010
Posts: 1
Hi

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.
Polo


David Newton
Author
Rancher

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: http://aspose.com/file-tools
 
subject: Problem with action + parameters