Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet to servlet

 
Per Lovdinger
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a ServletA that forwards requests to ServletB.
ServletA reads a file as a stream and that stream should be passed to ServletB as
inputStream. How can this simpliest be achieved ?
I know that ServletA can open an urlConnection and write to that ?
Is that the only solution ?
thanks in advance
 
Ricardo Marques
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you could try to put the stream into session in servletA, get it from session from ServletB and use it as you wish. Maybe I'm missing something, but this should do the trick.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic