it's wrong to escape the quotes if not inside a string <form ...
method=\"post\" >, try method="post".
Khue
----- Original Message -----
From: "Romain ARNAUD" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 23, 2004 2:41 PM
Subject: Re: Pb with Jahia and a simple JSP portlet
> Thanks, that's part of the mistake, although it does not solve the
> problem.
>
> The jsp works well on its own, but when put in jahia, it fails.
> So I think that it might be something I do wrong with the encodeURL
> methode, that might make the parameter disappear.
>
> Any other ideas?
>
>
> Romain
>
>
> --- Khue Nguyen <[EMAIL PROTECTED]> a �crit : > should it be
> >
> > <% String name = (String)request.getParameter("name");
> >
> > instead of getAttribute("name") ?
> >
> >
> > Regards,
> > Khue
> >
> >
> >
> > ----- Original Message -----
> > From: "Romain ARNAUD" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, July 23, 2004 12:59 PM
> > Subject: Pb with Jahia and a simple JSP portlet
> >
> >
> > > Hi,
> > >
> > > If I make a portlet with the following JSP page (ask for a name and
> > > then says "Hello name") and load it into Jahia, name will always be
> > > null.
> > >
> > > <%@ page language="java" import="java.util.*" %>
> > >
> > > <% String name = (String)request.getAttribute("name");
> > > response.setContentType("text/html");
> > >
> > > if (name == null) { %>
> > > <form action="<%=response.encodeURL(request.getContextPath() +
> > > "/Hello.jsp")%>" method=\"post\" >
> > > Enter your name: <input name='name'><br/>
> > > <input type='submit' value='Submit'>
> > > </form>
> > > <% }
> > > else { %>
> > > <form method=\"post\" >
> > > Hello <b><%= name %></b><br/>
> > > <input type="submit" value='Reset'>
> > > </form>
> > > <% } %>
> > >
> > > Why ?
> > >
> > > Thanks for your help,
> > >
> > > Romain
> > >
> > >
> > >
> > >
> > >
> > >
> > > Vous manquez d'espace pour stocker vos mails ?
> > > Yahoo! Mail vous offre GRATUITEMENT 100 Mo !
> > > Cr�ez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/
> > >
> > > Le nouveau Yahoo! Messenger est arriv� ! D�couvrez toutes les
> > nouveaut�s
> > pour dialoguer instantan�ment avec vos amis. A t�l�charger
> > gratuitement sur
> > http://fr.messenger.yahoo.com
> >
> >
> >
>
>
>
>
>
>
> Vous manquez d'espace pour stocker vos mails ?
> Yahoo! Mail vous offre GRATUITEMENT 100 Mo !
> Cr�ez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/
>
> Le nouveau Yahoo! Messenger est arriv� ! D�couvrez toutes les nouveaut�s
pour dialoguer instantan�ment avec vos amis. A t�l�charger gratuitement sur
http://fr.messenger.yahoo.com