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: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to