this sample is using jstl 1.1

#1 using jsp to receive params from php

<%@ page contentType ="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"; %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"; %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"; %>

requesttype = ${param.requesttype} <br/>
name = ${param.name} <br/>

#2 using jsp to pass params to php
<c:url value="newslist.php" var="tmpLink">
     <c:param name="requesttype" value="${thevalue}"/>
     <c:param name="name" value="${thevalue}"/>
</c:url>
<c:redirect url="${tmpLink}" />


On Mon, 6 Sep 2004 20:06:53 +0200, Martin <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> I have some problems while trying to integrate a newsletter module into a
> jsp service. Unfortunately I could not find an opensource newsletter module
> based on java (but I would be glad if anyone could tell me about one). So
> finally I tested a module based on php, which has all the functionalities I
> need.
> 
> Now I am trying to integrate the php-newsletter module into my jsp service
> (for several reasons I would like to keep e.g. the subsciption page in jsp).
> I imagined that it should be possible to forward the jsp-subscription to the
> php-newsletter. I could parse the arguments from the jsp-uri and give it to
> the php. After this I could get the contents of the php response, if
> necessary parse the html and send it back to the user using jsp.
> 
> But I do not know how to create the connection from tomcat/jsp to
> apache/php, e.g. to
> http://localhost:80/newslist.php?requesttype=newuser&name=. .. and how to
> exchange the parameters
> 
> I would be glad, if anyone could tell me how to exchange the parameters or
> if I could get a link to an opensource java newsletter application.
> 
> Many Thanks!
> Martin
> 
> --
> Supergünstige DSL-Tarife + WLAN-Router für 0,- EUR*
> Jetzt zu GMX wechseln und sparen http://www.gmx.net/de/go/dsl 
> 
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> 
> Some relevant archives, FAQs and Forums on JSPs can be found at:
> 
>  http://java.sun.com/products/jsp 
>  http://archives.java.sun.com/jsp-interest.html 
>  http://forums.java.sun.com 
>  http://www.jspinsider.com 
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to