Hi I am trying to use a redirect in portal env ..I am using liferay 5.2.3
and apache struts bridge.
I see that the "redirect=true" works fine as standalone webapp but when
fails to work in portal env..
Heres a snipped on struts-config
If your action is a rendering action you do not need to redirect. If
your action is a submit action then you need to redirect to rendering
action that in turn forwards to JSP.
See some info here (work in progress):
http://wiki.apache.org/struts/StrutsManualActionClasses
On 7/13/06, Pankaj Gupta
Well this is a commun pb with the unstatfull nature of the http
protocol itself i think there is no real solution to this but hacks:
some suggest sending a http 200 msg as soon as the request is recived
and then continue the processing. I think also adding a hidden field
in the form with the trans
I understand that providing direct access to JSP's is not a good idea.
But the problem that I am facing is that if we dont use redirect, the
user of the application is confused by the way Browser's refresh and
back/forward operations behave.
Can you suggest some other way by which I can preven
Hi,
Under Tomcat i would keep my jsp's under an accessible directory and
use the security-constraint in web.xml : (something like)
...
protected jsp
/jsp/*.jsp
to prevent direct access to my jsp's files then forward to them from actions.
The added benefit is that we enforc
Right now you are:
* preventing direct JSP access... then
* telling the browser to access the JSP directly.
"Redirect" means it will send an HTTP redirect to the browser, and the
browser will try to access the new URL.
So I'm not sure what you're trying to do; if you really want a redirect
(and t
I may be wrong but if all the jsp pages are in the WEB-INF directory and
you try to redirect to a .jsp file it's basically the same as loading it
directly. I think you have to use a forward to access it. You could
probably get around it if you created an action to specifically display
the jsp f
Hi All,
I have specified redirect="true" in my action forwards but tomcat fails
to find the jsp. I have kept all my jsp's in WEB-INF/jsp folder so as to
avoid direct jsp access. Please suggest how can I make redirect to work.
regards,
Pankaj
--
8 matches
Mail list logo