Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

EditAction not called on liferay

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is also my web.xml:


Any ideas?
 
Mateusz Moroz
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
I knew that guy would be trouble! Thanks tiny ad!
The trailboss has a kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic