Fórum

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

saritha reddy, modificado 9 Anos atrás.

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

Junior Member Postagens: 95 Data de Entrada: 27/01/14 Postagens Recentes
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 9 Anos atrás.

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

Regular Member Postagens: 146 Data de Entrada: 09/01/14 Postagens Recentes
use request.getParameter("paramName");
thumbnail
Jitendra Rajput, modificado 9 Anos atrás.

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

Liferay Master Postagens: 875 Data de Entrada: 07/01/11 Postagens Recentes
Use ParamUtil.getString(renderRequest, "userID");

If want in Long then use ParamUtil.getLong(renderRequest, "userID");
saritha reddy, modificado 9 Anos atrás.

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

Junior Member Postagens: 95 Data de Entrada: 27/01/14 Postagens Recentes
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 8 Anos atrás.

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

Junior Member Postagens: 44 Data de Entrada: 03/11/09 Postagens Recentes
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 8 Anos atrás.

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

Junior Member Postagens: 44 Data de Entrada: 03/11/09 Postagens Recentes
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 8 Anos atrás.

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

Junior Member Postagens: 44 Data de Entrada: 03/11/09 Postagens Recentes
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 8 Anos atrás.

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

Junior Member Postagens: 44 Data de Entrada: 03/11/09 Postagens Recentes
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 8 Anos atrás.

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

Junior Member Postagens: 44 Data de Entrada: 03/11/09 Postagens Recentes
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