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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

outputting html content to the server

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi i am building a proxy and i am having problems outputting the html contents which the proxy retrieves to the client.
My web server first outputs a form to the client and retrieves the clients requests.
The requested url is then sent to a proxy class where the url's html is retrieved.
The HTML which the proxy retrieves is placed in a public variable called HTMLstring.

This is my code:



Why isnt the html shown to the client??
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
It would be polite to give us code that compiles:

PostRealCode

Also, I've noticed that your displayed name does not conform to our naming policy. In short, your displayed name must be a real (or at least real sounding) first and last name separated by a space. You can change your name here.
 
Joe Ess
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Also, never do this:

If you are getting an exception in your code, you'd never know it. At the very least, print out the stack trace.
 
mj zammit
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
my first name are my mine intials which if i am not mistaken are allowed...
The code i sent out has a few java classes which i didnt think were necessary in giving. The program does not give me an error, internally it works correctly, but when i come to output the html that the proxy got it does not do it. I am not so sure if it has anything to do when i am outputting the stream to the client... Any ideas will be greatly appreciated
 
mj zammit
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
I realized that the title to this thread is wrong. I should have written...outputting html content to the client...sorry for the mistake
 
Joe Ess
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
continued here
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic