Foros de discusión

How to get<portlet:param> value in to java class???

saritha reddy, modificado hace 9 años.

How to get<portlet:param> value in to java class???

Junior Member Mensajes: 95 Fecha de incorporación: 27/01/14 Mensajes recientes
HI

How to get below mentioned portlet param in to java class???

<portlet:renderURL var="cancel">
<portlet:param name="mvcPath" value="/html/usersearch/view.jsp"/>
<portlet:param name="userID" value="<%=String.valueOf(u.getUserId()) %>"/>
</portlet:renderURL>


Regards
Saritha
robin thakur, modificado hace 9 años.

RE: How to get<portlet:param> value in to java class???

Regular Member Mensajes: 146 Fecha de incorporación: 9/01/14 Mensajes recientes
use request.getParameter("paramName");
thumbnail
Jitendra Rajput, modificado hace 9 años.

RE: How to get<portlet:param> value in to java class???

Liferay Master Mensajes: 875 Fecha de incorporación: 7/01/11 Mensajes recientes
Use ParamUtil.getString(renderRequest, "userID");

If want in Long then use ParamUtil.getLong(renderRequest, "userID");
saritha reddy, modificado hace 9 años.

RE: How to get<portlet:param> value in to java class???

Junior Member Mensajes: 95 Fecha de incorporación: 27/01/14 Mensajes recientes
I have tried both ways but still it is giving null value.

One more thing is this is not view.jsp.
If i try your mentioned ways from view.jsp to get the value I am able to get the value.
But if i want to get the value from diffarent jsp other than view.jsp then am getting null.
thumbnail
Kartik Sharma, modificado hace 8 años.

Re: [Liferay Forums][3. Development] RE: How to get

Junior Member Mensajes: 44 Fecha de incorporación: 3/11/09 Mensajes recientes
can you post your render and action methods? it doesn't matter whats the name of the jap if you are displaying for any of your render method you will get the values.

Regards
Kartik

Sent from my iPhone

> On Sep 5, 2014, at 11:13 AM, saritha reddy from liferay.com <forums@liferay.com> wrote:
>
> I have tried both ways but still it is giving null value.
>
> One more thing is this is not view.jsp.
> If i try your mentioned ways from view.jsp to get the value I am able to get the value.
> But if i want to get the value from diffarent jsp other than view.jsp then am getting null.
>
>
> To view the thread, follow the link below:
> https://www.liferay.com/community/forums/-/message_boards/view_message/42335199
> --
> Liferay.com
thumbnail
Kartik Sharma, modificado hace 8 años.

Re: [Liferay Forums][3. Development] RE: How to get

Junior Member Mensajes: 44 Fecha de incorporación: 3/11/09 Mensajes recientes
can you post your render and action methods? it doesn't matter whats the name of the jap if you are displaying for any of your render method you will get the values.

Regards
Kartik

Sent from my iPhone

> On Sep 5, 2014, at 11:13 AM, saritha reddy from liferay.com <forums@liferay.com> wrote:
>
> I have tried both ways but still it is giving null value.
>
> One more thing is this is not view.jsp.
> If i try your mentioned ways from view.jsp to get the value I am able to get the value.
> But if i want to get the value from diffarent jsp other than view.jsp then am getting null.
>
>
> To view the thread, follow the link below:
> https://www.liferay.com/community/forums/-/message_boards/view_message/42335199
> --
> Liferay.com
thumbnail
Kartik Sharma, modificado hace 8 años.

Re: [Liferay Forums][3. Development] RE: How to get

Junior Member Mensajes: 44 Fecha de incorporación: 3/11/09 Mensajes recientes
can you post your render and action methods? it doesn't matter whats the name of the jap if you are displaying for any of your render method you will get the values.

Regards
Kartik

Sent from my iPhone

> On Sep 5, 2014, at 11:13 AM, saritha reddy from liferay.com <forums@liferay.com> wrote:
>
> I have tried both ways but still it is giving null value.
>
> One more thing is this is not view.jsp.
> If i try your mentioned ways from view.jsp to get the value I am able to get the value.
> But if i want to get the value from diffarent jsp other than view.jsp then am getting null.
>
>
> To view the thread, follow the link below:
> https://www.liferay.com/community/forums/-/message_boards/view_message/42335199
> --
> Liferay.com
thumbnail
Kartik Sharma, modificado hace 8 años.

Re: [Liferay Forums][3. Development] RE: How to get

Junior Member Mensajes: 44 Fecha de incorporación: 3/11/09 Mensajes recientes
can you post your render and action methods? it doesn't matter whats the name of the jap if you are displaying for any of your render method you will get the values.

Regards
Kartik

Sent from my iPhone

> On Sep 5, 2014, at 11:13 AM, saritha reddy from liferay.com <forums@liferay.com> wrote:
>
> I have tried both ways but still it is giving null value.
>
> One more thing is this is not view.jsp.
> If i try your mentioned ways from view.jsp to get the value I am able to get the value.
> But if i want to get the value from diffarent jsp other than view.jsp then am getting null.
>
>
> To view the thread, follow the link below:
> https://www.liferay.com/community/forums/-/message_boards/view_message/42335199
> --
> Liferay.com
thumbnail
Kartik Sharma, modificado hace 8 años.

Re: [Liferay Forums][3. Development] RE: How to get

Junior Member Mensajes: 44 Fecha de incorporación: 3/11/09 Mensajes recientes
can you post your render and action methods? it doesn't matter whats the name of the jap if you are displaying for any of your render method you will get the values.

Regards
Kartik

Sent from my iPhone

> On Sep 5, 2014, at 11:13 AM, saritha reddy from liferay.com <forums@liferay.com> wrote:
>
> I have tried both ways but still it is giving null value.
>
> One more thing is this is not view.jsp.
> If i try your mentioned ways from view.jsp to get the value I am able to get the value.
> But if i want to get the value from diffarent jsp other than view.jsp then am getting null.
>
>
> To view the thread, follow the link below:
> https://www.liferay.com/community/forums/-/message_boards/view_message/42335199
> --
> Liferay.com