Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java program calling a servlet...

 
Jack Daniel
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi e'body,...

well, i have a question..

u know we have a j2ee project (or a webfaced J2ee project).. where i have some servlet calling some cobol/CL programs.. and all..

what i want is .. i am going to make a CL program (on AS400) call a java program.. this is not my problem..

my problem is : how can I call a Servlet from a java program , from the main(String[] a) method??? IS there a way i can call a servlet from a java program.. as of what i knew till now, i can call a HttpServlet only from a browser...

After calling the servlet, i want the servlet to respond back to the browser.. possible???

The flow: jsp - (calling) - servlet - (calling) - cobol/CL prog - (calling)
java prog, with main method - (calling) - servlet - responding back to the browser.. is this possible??

i really appreciate u guys, if u think there is a way out, to handle this..
thanks a lot ;-)
 
Jack Daniel
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think i found one way, of making the java prog call a servlet..



any suggestions on this??
thx
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic