• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with URL when change Struts app to Liferay's portlet

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear all,
I have used the tag <html:link> to go to Struts action and pass a parameter
When I run it as Struts application, the link like this:
http://localhost:8080/FirstStrutsSample/detailViewAction.do?id=05130030

But when run it as portlet, the link like this:
http://localhost:8080/web/guest/home?p_p_id=studentManagement_WAR_FirstStrutsSample&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=2&_studentManagement_WAR_FirstStrutsSample__spage=%2FdetailViewAction.do%3Fid%3D05130030

So I can not get the id parameter, given by the link.

Can you show me the solution for that?
Now, I can only go to Struts action by <html:form>

Thanks
Phuc Bui
 
Phuc Bui
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there anyone who met this problem when changing a Struts app to portlet ??? Can you tell me how to solve it ?
I have tried with tag <a> in HTML, but it's even worse.
I do not know how to deal with it

Thanks for your help
Phuc Bui
 
author
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check this example:

http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Developing+Struts+Based+Portlets+on+LIferay+Portal

Hope that it helps.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic