Laliwala IT Services

Laliwala IT Services
Website Development

Monday, February 21, 2011

HREF link to another jsp is not working, test.jsp, welcome message, developing simple jsp portlet, redirect to xx.jsp, liferay message, portlet jsp

G P : Hi team,





I'm trying to redirect to another jsp by using simple href link as bellows. But while clicking on this link the page is getting refresh and not taking me to another jsp.








Please help me, thnaks in advance.











zaheer mohammed saddapalli :








Here you need to specify complete path.





This is not good practice i recommend you to use.





Create action path in your struts-config-ext.xml













Create definition for action forward.













Then use this code for forwarding to another JSP.











G P : Hi Zaheer,





Thanks for giving such an important info.





Actually, I'm just developing a simple jsp portlet. just having a portlet which redirect to xx.jsp wher i'm getting some data from db and displaying it.





In xx.jsp I want to put a simple link, if user clicks on this link it will take him to test.jsp(test.jsp having just welcome message.)



No comments:

Post a Comment