• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

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

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 384
Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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]
 
My favorite is a chocolate cupcake with white frosting and tiny ad sprinkles.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic