Foros de discusión
WAR Portlet and request.getParameter()
Zend Inc, modificado hace 15 años.
WAR Portlet and request.getParameter()
New Member Mensajes: 2 Fecha de incorporación: 10/04/08 Mensajes recientes
Hello,
I deleveloped a individual portlet (war).
in view.jsp file i have:
<form method="post">
<input type="text" name="LIFERAY_SHARED_varpost">
<input type="submit" value="OK">
</form>
<%=request.getParameter("LIFERAY_SHARED_varpost")%>
<%=session.getAttribute("USER_ID").toString()%>
when I submit de form, i see the result: null 10117
Post not work, but session work fine.
In liferay-portlet.xml i have:
<private-request-attributes>true</private-request-attributes>
In portal-ext.properties:
request.shared.attributes=LIFERAY_SHARED_
I have tried with: <private-request-attributes>false</private-request-attributes> but, nothing work.
I'm uing Liferay 4.4.2
Wat is the problem?
tanks.
I deleveloped a individual portlet (war).
in view.jsp file i have:
<form method="post">
<input type="text" name="LIFERAY_SHARED_varpost">
<input type="submit" value="OK">
</form>
<%=request.getParameter("LIFERAY_SHARED_varpost")%>
<%=session.getAttribute("USER_ID").toString()%>
when I submit de form, i see the result: null 10117
Post not work, but session work fine.
In liferay-portlet.xml i have:
<private-request-attributes>true</private-request-attributes>
In portal-ext.properties:
request.shared.attributes=LIFERAY_SHARED_
I have tried with: <private-request-attributes>false</private-request-attributes> but, nothing work.
I'm uing Liferay 4.4.2
Wat is the problem?
tanks.
Mika Koivisto, modificado hace 15 años.
RE: WAR Portlet and request.getParameter()
Liferay Legend Mensajes: 1519 Fecha de incorporación: 7/08/06 Mensajes recientes
Not sure but I believe that setting only affects request attributes as the name suggest.