• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

handling multiple controllers

 
Ranch Hand
Posts: 595
6
jQuery Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
I have a scenario where I have created an application which is configured to defaults. I have controller where the request is coming and processing is happening. Now i need to create another controller to handle some other type of sub-service . because these two are not related, I am planning to create a new one. now my problem is with the call urls. the first controller is configured as:



and the second one which I want to add is :




now what i want is that for all the requests, the call should go to the first controller, and for only calls related to publish, it should go to second controller. i tried this, but it doesnt work.. please let me know what is wrong here..

Thanks
 
Ranch Hand
Posts: 236
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Use below for first controller so an URL with just context root goes to it.

 
s ravi chandran
Ranch Hand
Posts: 595
6
jQuery Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Surendra Kumar wrote:Use below for first controller so an URL with just context root goes to it.



Sorry for the late reply. I was trying another alternative.. Did not reach anywhere from that too. I tried this way. but still the call is coming to the main controller only.
 
s ravi chandran
Ranch Hand
Posts: 595
6
jQuery Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

s ravi chandran wrote:

Surendra Kumar wrote:Use below for first controller so an URL with just context root goes to it.



Sorry for the late reply. I was trying another alternative.. Did not reach anywhere from that too. I tried this way. but still the call is coming to the main controller only.



My bad. I missed the url pattern, modified it. and its working fine. Thanks..
 
Mo-om! You're embarassing me! Can you just read a tiny ad like a normal person?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic