Adding the method="post" was the solution.
I'd never have thought that this was so important :)

Thanks a lot for your help,

Romain ARNAUD

 --- LEONARD Benjamin <[EMAIL PROTECTED]> a �crit : 
> Just a question : do you work with portlets or with a "included" web
> app.
> 
> I use the second solution (webapp inside jahia and the url for your
> action seems good to me.
> response.encodeURL(request.getContextPath()+"/nextPage.jsp")
> 
> 
> If you are in a webapp this shoud work !
> 
> You can try to add method="post" in your form
> Or use  
> 
> <input type="button" name="button" class="button" value=" Go to the
> next page " onclick="location.href='<=%
> response.encodeURL(request.getContextPath()+"/nextPage.jsp")%>'"  />
> 
> In our project we have developpe a tag lib to encode the url..
> 
> 
> 
> Benjamin L�onard
> Intrasoft Internationnal
> Currently at European Parliament
> 
> 
> -----Original Message-----
> From: Romain ARNAUD [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 25, 2004 5:17 PM
> To: [EMAIL PROTECTED]
> Subject: RE: A JSP problem within a portlet
> 
> Thanks for your quick anwser !
> Although there's an improvement, the problem is not quite solved, as
> the page is displayed in full screen, and not inside the portlet's
> space.
> 
> So I guess the URL encoding is still missing something, but I don't
> know what...
> 
> Still looking for help,
> 
> Romain ARNAUD
> 
>  --- S�bastien_LANDEAU <[EMAIL PROTECTED]> a �crit : 
> > 
> > It seems to be be your URL encoding.. It might be wrong...
> > 
> > Try to use the following code : 
> > 
> > <%
> > String path = request.getContextPath();
> > String basePath =
> >
>
request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort(
> > )+path+"/";
> > %>
> > <FORM action="<%= basePath%>nextPage.jsp">
> >       <DIV align="center"><INPUT type="submit" name="next"
> value="Go
> > the
> > next page"></DIV>
> > </FORM>
> > 
> > 
> > -----Message d'origine-----
> > De : Romain ARNAUD [mailto:[EMAIL PROTECTED] 
> > Envoy� : mercredi 25 ao�t 2004 16:44
> > � : [EMAIL PROTECTED]
> > Objet : A JSP problem within a portlet
> > 
> > Hi,
> > 
> >   I'm having trouble with a portlet I'm developping. The welcome
> page
> > of the
> > portlet displays fine. But when I click on a button which is
> supposed
> > to
> > display a new jsp page, the porlet just stays onto the welcome
> page.
> >   I guess I'm not calling the jsp properly, but I don't know what
> to
> > try.
> > Here's what it looks like:
> > 
> > <%@ page language="java" import="java.util.*" %>
> > 
> > <table width="100%" height="100%"><tr><td>
> >    <P align="center"><B><FONT size="+1">Welcome Page</FONT></B></P>
> > 
> >    <!-- The problem is probably in this line -->
> >    <FORM action="<%=
> > response.encodeURL(request.getContextPath()+"/nextPage.jsp")%>">
> >       <DIV align="center"><INPUT type="submit" name="next"
> value="Go
> > the
> > next page"></DIV>
> >    </FORM>
> > 
> >    <P><CENTER>
> >       <IFRAME scrolling="auto" height="40%" width="80%"
> > src="<%=request.getContextPath()%>/someContent.jsp"></IFRAME>
> >    </CENTER></P>
> > 
> > </td></tr></table>
> > 
> > Thanks for any help,
> > 
> > Romain ARNAUD
> > 
> > 
> > 
> > 
> >     
> > 
> >     
> >             
> > 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
> > 
> > 
> 
> > ATTACHMENT part 2 application/x-pkcs7-signature name=smime.p7s
>  
> 
> 
>       
> 
>       
>               
> 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

Reply via email to