Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Ravi Kiran
ActionResponse.sendRedirect always shows 404 Error
14 aprile 2012 13.22
Risposta

Ravi Kiran

Punteggio: Junior Member

Messaggi: 53

Data di Iscrizione: 7 aprile 2012

Messaggi recenti

The ActionResponse.sendRedirect always shows 404 Error


public class SatPortlet extends MVCPortlet {

public void addBook(ActionRequest request, ActionResponse response) throws IOException {

if(true)
{

response.sendRedirect("/html/satportlet/view2.jsp");
}

else
{
response.sendRedirect("/html/satportlet/error.jsp");
}

}
}




I have this pages present inside the docroot where this view.jsp is present .

<init-param>
<name>view-jsp</name>
<value>/html/satportlet/view.jsp</value>
</init-param>


Also present in tomcat webapps context path .

But every time it enters the MVCPortlet Action class and the condition is matched i displays this 404 .
Hitoshi Ozawa
RE: ActionResponse.sendRedirect always shows 404 Error
15 aprile 2012 4.17
Risposta

Hitoshi Ozawa

Punteggio: Liferay Legend

Messaggi: 7990

Data di Iscrizione: 23 marzo 2010

Messaggi recenti

So do you have /html/satportlet/view2.jsp file? or am I missing the point of your question?
Ravi Kiran
RE: ActionResponse.sendRedirect always shows 404 Error
15 aprile 2012 11.12
Risposta

Ravi Kiran

Punteggio: Junior Member

Messaggi: 53

Data di Iscrizione: 7 aprile 2012

Messaggi recenti

Yes i do have that and i checked that , and also added this action-url-redirect to true also . .