<%
if(my_value==true){
//redirect to page second.jsp
}
%>
How do this? please help me in this questions
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The redirection inside of jsp isn’t realy expedient idea, because jsp-parsing below to render phase and this phase is concepted to show the content.
On the other hand redirection below to action phase, here you can decide what the portlet should do at next.
Read this tutorial for better understanding the two-phase of portlet:
http://www.liferay.com/documentation/liferay-portal/6.0/development/-/ai/understanding-the-two-phases-of-portlet-execution
Hence, put redirection in portlet processAction methode:
Else, if you realy want to do this inside of jsp, you can include second jsp in the first jsp: