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