• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTML-Request with portlets

 
Christopher Olbertz
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,

I'm new to programming with portlets and I have one question. It is possible to send a HTML-request and to receive the response? I want to send the request via the URL (s.th. like this: www.mypage.com/search.html?phrase=wort1+wort2) and then I want to parse the HTML-site, which is the server's response. Do you understand, what I mean?

I think, this must be possible with portlets. Or am I wrong?

Greetings,

Christopher
 
Christopher Olbertz
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I made a mistake. Naturally, I meant a HTTP-request.
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this is what the Java networking API is all about. You can connect to a URL, grab the response, and then parse it out any way you want.

The technology to do that is portal agnostic. You could do it in a servlet, jsp or stand alone Java app.

Most portals come with a page clipper that does this already. WebSphere Portal and JetSpeed both have page clipping portlets. You might want to check them out before reinventing the wheel.

Best of luck!

-Cameron McKenzie
 
Christopher Olbertz
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank very much for your answer.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic