GeeCON Prague 2014*
The moose likes Portals and Portlets and the fly likes EditAction not called on liferay Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "EditAction not called on liferay" Watch "EditAction not called on liferay" New topic
Author

EditAction not called on liferay

Mateusz Moroz
Greenhorn

Joined: Oct 29, 2008
Posts: 21
Hello,

I have problem with my WAR portlet I'm developing on liferay with tomcat bundle.
I have a view.jsp which is:

The url it generates is:

In my struts-config.xml I have:

In tiles-defs.xml:

and finally portlet.xml:

More EditAction.java is defined as:

The problem is, that when click on the button, the url in the browser has struts_action "/portletto/edit", but the EditAction.render(...) is never called and the page edit.jsp is not being shown. Instead there is called ViewAction,render(...). There is no exception stack printed on the console.
Does anyone has idea, what can be done to make it work? I'm off.
I will be grateful for any help.
Mateusz Moroz
Greenhorn

Joined: Oct 29, 2008
Posts: 21
Here is also my web.xml:


Any ideas?
Mateusz Moroz
Greenhorn

Joined: Oct 29, 2008
Posts: 21
I had to change "struts_action" to "_spage" and "/portletto/edit" to "/portlet_action/portletto/edit" (also in struts-config.xml and .jsp) and now the portlet works fine.
 
 
subject: EditAction not called on liferay