• 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

Output of RequestDispatcher include with JSP?

 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Okay, I get the Req..Disp... with a JSP as a target and include(...) it in a JSP in the middle.
But, then when I try, the included JSP content comes first and then the Calling JSP content.
Why? Any help is appreciated.
Thanks.
- satya

With this example I expect to see:


Test RequestDispatcher........
Hello..................1.2 JSP SPEC
[content of login-error.jsp]
The end!!!

 
Ranch Hand
Posts: 776
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi - Very Bizarre!
I am unable to recreate the problem you describe.
I run TC4.01, JVM 1.3.1_01, Linux RH 7.2.
When I C+P your code, change the include name to an appropriate one for my system, I get output but the included jsp data comes before the including jsp data!!
To "solve" that problem, I add:
out.flush();
as the 1st line of the scriptlet. Output is then in proper order.
What is going on here?
Regards, Guy
OK, this was really a reply to the post about the html file.
G.
[ February 28, 2002: Message edited by: Guy Allard ]
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, even I see the same result. Only if I use the out.flush() in the scriptlet, I see the including JSP before the included JSP.
Seems odd to me. But thanks for the tip on
flush().
- satya
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic