留言板

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

saritha reddy,修改在9 年前。

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

Junior Member 帖子: 95 加入日期: 14-1-27 最近的帖子
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,修改在9 年前。

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

Regular Member 帖子: 146 加入日期: 14-1-9 最近的帖子
use request.getParameter("paramName");
thumbnail
Jitendra Rajput,修改在9 年前。

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

Liferay Master 帖子: 875 加入日期: 11-1-7 最近的帖子
Use ParamUtil.getString(renderRequest, "userID");

If want in Long then use ParamUtil.getLong(renderRequest, "userID");
saritha reddy,修改在9 年前。

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

Junior Member 帖子: 95 加入日期: 14-1-27 最近的帖子
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,修改在8 年前。

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

Junior Member 帖子: 44 加入日期: 09-11-3 最近的帖子
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,修改在8 年前。

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

Junior Member 帖子: 44 加入日期: 09-11-3 最近的帖子
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,修改在8 年前。

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

Junior Member 帖子: 44 加入日期: 09-11-3 最近的帖子
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,修改在8 年前。

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

Junior Member 帖子: 44 加入日期: 09-11-3 最近的帖子
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,修改在8 年前。

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

Junior Member 帖子: 44 加入日期: 09-11-3 最近的帖子
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