I am creating a plugin that somewhen needs to redirect to the project tab-panel like it is on the very first page of plugin execution.
Any help?
In the action class, you can return getRedirectUrl("tab_panel_url") instead of returning a view!
i couldn't find getRedirectUrl(String)...instead i got getRedirect(String) and getReturnUrl()!
But getRedirect("string") returns ERROR irrespective of "string"...when there are error messages. Otherwise it throws IllegalStateException!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
getRedirect(String) is what you need. ERROR will be returned if there is an error. forceRedirect will take you to the url irrespective of the error.
Not sure why you are getting IllegalStateException. That should be some error in your code!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
so now its displaying the panel tab...but i want some to send some error messages to it as request params...
i think coz its redirecting hence a new request and all the prarams are lost.
any way round?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashish,
Send the parameter over url and access it through
HttpServletRequest request = ActionContext.getRequest();
It is just a workaround.
Regards,
Dipti Ranjan Behera
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.