Bookmark Topic Watch Topic
  • New Topic

outputting html content to the server

 
mj zammit
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • 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??
 
Joe Ess
Bartender
Posts: 9312
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • 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: 9312
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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: 9312
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
continued here
 
    Bookmark Topic Watch Topic
  • New Topic