0

I have a webpage i.e. php page and its a form. I want to bring this page into java i.e. in java page i want to display this form using the URL of the .php page. Is it possible and if so how ?

Clarification in question:

I have a java webpage. In this webpage i want a Iframe or anything of that sort which will display a php form in it using a php url and perform save action.

Hacker
  • 7,450
  • 18
  • 77
  • 145

3 Answers3

1

I'm not quite sure that I understand your question. I assume you want a jsp page (what you call a Java page), who just display the content of your php page. If this is the case, then you need a redirect:

<%
    String redirectURL = "http://www.exmple.com/your_page.php";
    response.sendRedirect(redirectURL);
%>
MarcoS
  • 13,110
  • 6
  • 39
  • 62
1

If you want it in a Swing application, you can embed a browser using the DJ project: http://djproject.sourceforge.net/ns/, which you can manipulate.

GeertPt
  • 14,508
  • 1
  • 35
  • 56
0

If I understand correctly you want Java to grab info from a web page? I.e Screen Scraping....

See this: Web scraping, screen scraping, data mining tips?

Community
  • 1
  • 1
Brian
  • 7,963
  • 2
  • 23
  • 32