aspose file tools*
The moose likes Portals and Portlets and the fly likes Problem with URL when change Struts app to Liferay's portlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Problem with URL when change Struts app to Liferay Watch "Problem with URL when change Struts app to Liferay New topic
Author

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

Phuc Bui
Greenhorn

Joined: Feb 19, 2009
Posts: 26
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

Joined: Feb 19, 2009
Posts: 26
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

Joined: May 18, 2008
Posts: 108
Check this example:

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

Hope that it helps.


Books: Liferay Portal 6.1 Systems Development
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with URL when change Struts app to Liferay's portlet
 
Similar Threads
How to retrieve value from a link
Parameter Passing through <html:link> tag
html:form not working if it is inside a jsp under WEB-INF
pass a variable in the URl
[Struts] redirection page with dojo tag and javascript