It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to redirect to project tab-panel?

Ashish Grover Dec 15, 2011

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?

2 answers

1 accepted

0 votes
Answer accepted
Jobin Kuruvilla [Go2Group] Community Leader Dec 16, 2011

In the action class, you can return getRedirectUrl("tab_panel_url") instead of returning a view!

Ashish Grover Dec 18, 2011

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!

Jobin Kuruvilla [Go2Group] Community Leader Dec 18, 2011

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!

Ashish Grover Dec 19, 2011

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?

0 votes
Dipti Ranjan Behera Jun 10, 2013

Hi Ashish,

Send the parameter over url and access it through

HttpServletRequest request = ActionContext.getRequest();

It is just a workaround.

Dipti Ranjan Behera

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Marketplace Apps & Integrations

Webinar alert! An IT Admin's Guide to Securing Collaboration at Scale

Hello, Atlassian Community! My name is Dave Meyer and I'm a Principal Product Manager at Atlassian. I wanted to give this community a heads up about an upcoming Webinar that might be of interest...

181 views 2 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you