I'm assuming you were calling the page with http://localhost/myapp/foo/bar.action? If so, I wonder if the plugin only works when there is at least one action class in a package. Try to create a different action like com.foo.action.foo.BazAction in that same package, and see if the plugin then works.

Don

Laurie Harper wrote:
I'm trying to get a project running with the Zero Config and Code Behind Plugin features of S2 and I'm seeing something which looks like a bug. I thought I'd raise it here before posting it to JIRA and/or trying to dig through the plugin code to track it down, in case this is 'by design' or something.

The problem is when I create a page for which there is no action, and the package the action would be in doesn't exist. E.g.:

- actionPackages set to com.foo.action
- page located at /foo/bar.jsp

When I request the page, code behind reports "Trying to locate unknown action template with extension .jsp in directory /" -- it should, of course, be looking in /foo. The request therefore fails.

However, if I create the package com.foo.action.foo (and put a dummy class in there so the package will exist at runtime), everything works as it should.

That seems wrong to me... am I missing anything? And if not, where should I start looking to debug and fix it?

Cheers,

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to