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,798
  • 19
  • 84
  • 154

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,386
  • 7
  • 42
  • 63
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
  • 16,398
  • 2
  • 37
  • 61
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
  • 8,418
  • 2
  • 25
  • 32