• 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

Struts 1 to Struts 2 Request Dispatch

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

We have an application in which we need Struts 1.3 and Struts 2 to coexist.
I have done that by making an entry in web.xml and configuring separate extension for the applications (i.e .do and .action).
I am trying to dispatch the request from Struts 1 action to Struts 2.
I am doing it simply by using the RequestDispatcher but i am getting an error



What I can understand is that I need to be able to invoke the Struts 2 filter before being able to dispatch the request but I am not sure how to do it.
Thanks for any help .
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Sumant Chahar wrote:
I am trying to dispatch the request from Struts 1 action to Struts 2.
I am doing it simply by using the RequestDispatcher but i am getting an error



What URL are you forwarding to?
 
Sumant Chahar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From Struts 1 action(mapped to .do) I am dispatching my request to Struts 2 login page(mapped to .action) as



i am able to hit the page directly from URL

http://localhost:portNo/contextRoot/login.action


and the context root is same for my struts 1 application
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic