Meaningless Drivel is fun!*
The moose likes JSP and the fly likes how to redirect a view to specific tab in a jsp when there are multiple tabs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how to redirect a view to specific tab in a jsp when there are multiple tabs" Watch "how to redirect a view to specific tab in a jsp when there are multiple tabs" New topic
Author

how to redirect a view to specific tab in a jsp when there are multiple tabs

hitendra sunkara
Ranch Hand

Joined: Jul 25, 2013
Posts: 35
Hi ,

<li><a href="#tab-1a"><span><fmt:message key="order.history" bundle="${storeText}"/></span></a></li>
<li><a href="#tab-2a"><span><fmt:message key="unit.order.history" bundle="${storeText}"/></span></a></li>
<li><a href="#tab-3a"><span><fmt:message key="returns.refunds" bundle="${storeText}"/></span></a></li>

I have these three tabs,Iam using them in three Div's like this:

<div id="tab-1a">
</div>
<div id="tab-2a">
</div>
<div id="tab-3a">
</div>

This is working fine.M Question is From another java class we can call this above mentioned jsp with its view name.Like this:
rspProp.put(ECConstants.EC_VIEWTASKNAME,"OCPOrderHistoryView");
When iam doing this it is redirecting me to "tab-1a",How to redirect to "tab-3a" of that jsp
Lalit Mehra
Ranch Hand

Joined: Jun 08, 2010
Posts: 384

Hi hitendra,

On the JSP page ... check the source of the response and facilitate your view accordingly. [ I hope you just have to show some text on the various div's that you have mentioned]


http://plainoldjavaobject.blogspot.in
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to redirect a view to specific tab in a jsp when there are multiple tabs