Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Phuc Bui
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Jonas X. Yuan
author
Ranch Hand
Posts: 108
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic