Re: PHP+Java
| From: | colbey at dreamwerx dot net | Date: | Thu, 22 May 2003 11:46:33 +0000 |
| Subject: | Re: PHP+Java | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-27960@lists.php.net to get a copy of this message | ||
Simply interface them using HTTP GET or POST vars, thats the easiest way
to interface them.. with PHP 4 use:
$_POST["varname"] , $_GET["varname"] -or-
$HTTP_POST_VARS["varname"], $HTT_GET_VARS["varname"]
and in java servlet use:
public void doGet(HttpServletRequest req, HttpServletResponse res) throws
ServletException, IOException {
String variablevalue = req.getParameter("extvarname");
}
or in JSP:
String varvalue = request.getParameter("varname");
On Thu, 22 May 2003, Bruno Pereira wrote:
> Hello,
> can someone tell me how to use php with Java, like passing var to one
> another?
> Thanks.
>
> Cumprimentos
>
> Bruno Pereira
> DSI
> 218452059
> bruno.pereira@netvoice.pt
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>