Forums de discussion
How to get User entered values from jsp to Java
Shilpa B, modifié il y a 10 années.
How to get User entered values from jsp to Java
Junior Member Publications: 61 Date d'inscription: 02/08/12 Publications récentes
My requirement is, i want to get the user entered values like dropdown, text fied to the java class.
In java class I’m using action method, in that method I want to get these values.
If my method is
public void actionMethod(ActionResponse actionResponse,ActionRequest actionRequest)
Then t tried with
String name = actionRequest.getParameter("labelName");
LOGGER.info("Label name is---->"+name ;
But I getting null for this.
If I’m wrong please let me know the right way.
In java class I’m using action method, in that method I want to get these values.
If my method is
public void actionMethod(ActionResponse actionResponse,ActionRequest actionRequest)
Then t tried with
String name = actionRequest.getParameter("labelName");
LOGGER.info("Label name is---->"+name ;
But I getting null for this.
If I’m wrong please let me know the right way.
M J, modifié il y a 10 années.
RE: How to get User entered values from jsp to Java
Regular Member Publications: 184 Date d'inscription: 01/03/13 Publications récentes
Add the following in your action class:
import com.liferay.portal.kernel.util.ParamUtil;
String name = ParamUtil.getString(actionRequest, "labelName");
LOGGER.info("Label name is---->"+name);
MJ
import com.liferay.portal.kernel.util.ParamUtil;
String name = ParamUtil.getString(actionRequest, "labelName");
LOGGER.info("Label name is---->"+name);
MJ
Manupoti Subrahmanyam, modifié il y a 8 années.
Re: [Liferay Forums][3. Development] How to get User entered values from js
Junior Member Publications: 39 Date d'inscription: 12/04/13 Publications récentes
Hi,
Please use the below code in your java class to get user entered data
public void actionMethod(ActionRequest actionRequest,ActionResponse
actionResponse){
String name =ParamUtil.getString(actionRequest, "labelName");
LOGGER.info("Label name is---->"+name) ;
}
Regards
Subrahmanyam
On Wed, Aug 28, 2013 at 12:40 PM, Shilpa B from liferay.com <
forums@liferay.com> wrote:
> My requirement is, i want to get the user entered values like dropdown,
> text fied to the java class.
> In java class I’m using action method, in that method I want to get these
> values.
>
> If my method is
>
> public void actionMethod(ActionResponse actionResponse,ActionRequest
> actionRequest)
>
> Then t tried with
>
> String name = actionRequest.getParameter("labelName");
> LOGGER.info("Label name is---->"+name ;
>
> But I getting null for this.
>
> If I’m wrong please let me know the right way.
>
>
> To view the thread, follow the link below:
>
> http://www.liferay.com/community/forums/-/message_boards/view_message/27750211
> --
> Liferay.com <http://www.liferay.com>
Please use the below code in your java class to get user entered data
public void actionMethod(ActionRequest actionRequest,ActionResponse
actionResponse){
String name =ParamUtil.getString(actionRequest, "labelName");
LOGGER.info("Label name is---->"+name) ;
}
Regards
Subrahmanyam
On Wed, Aug 28, 2013 at 12:40 PM, Shilpa B from liferay.com <
forums@liferay.com> wrote:
> My requirement is, i want to get the user entered values like dropdown,
> text fied to the java class.
> In java class I’m using action method, in that method I want to get these
> values.
>
> If my method is
>
> public void actionMethod(ActionResponse actionResponse,ActionRequest
> actionRequest)
>
> Then t tried with
>
> String name = actionRequest.getParameter("labelName");
> LOGGER.info("Label name is---->"+name ;
>
> But I getting null for this.
>
> If I’m wrong please let me know the right way.
>
>
> To view the thread, follow the link below:
>
> http://www.liferay.com/community/forums/-/message_boards/view_message/27750211
> --
> Liferay.com <http://www.liferay.com>
Manupoti Subrahmanyam, modifié il y a 8 années.
Re: [Liferay Forums][3. Development] How to get User entered values from js
Junior Member Publications: 39 Date d'inscription: 12/04/13 Publications récentes
Hi,
Please use the below code in your java class to get user entered data
public void actionMethod(ActionRequest actionRequest,ActionResponse
actionResponse){
String name =ParamUtil.getString(actionRequest, "labelName");
LOGGER.info("Label name is---->"+name) ;
}
Regards
Subrahmanyam
On Wed, Aug 28, 2013 at 12:40 PM, Shilpa B from liferay.com <
forums@liferay.com> wrote:
> My requirement is, i want to get the user entered values like dropdown,
> text fied to the java class.
> In java class I’m using action method, in that method I want to get these
> values.
>
> If my method is
>
> public void actionMethod(ActionResponse actionResponse,ActionRequest
> actionRequest)
>
> Then t tried with
>
> String name = actionRequest.getParameter("labelName");
> LOGGER.info("Label name is---->"+name ;
>
> But I getting null for this.
>
> If I’m wrong please let me know the right way.
>
>
> To view the thread, follow the link below:
>
> http://www.liferay.com/community/forums/-/message_boards/view_message/27750211
> --
> Liferay.com <http://www.liferay.com>
Please use the below code in your java class to get user entered data
public void actionMethod(ActionRequest actionRequest,ActionResponse
actionResponse){
String name =ParamUtil.getString(actionRequest, "labelName");
LOGGER.info("Label name is---->"+name) ;
}
Regards
Subrahmanyam
On Wed, Aug 28, 2013 at 12:40 PM, Shilpa B from liferay.com <
forums@liferay.com> wrote:
> My requirement is, i want to get the user entered values like dropdown,
> text fied to the java class.
> In java class I’m using action method, in that method I want to get these
> values.
>
> If my method is
>
> public void actionMethod(ActionResponse actionResponse,ActionRequest
> actionRequest)
>
> Then t tried with
>
> String name = actionRequest.getParameter("labelName");
> LOGGER.info("Label name is---->"+name ;
>
> But I getting null for this.
>
> If I’m wrong please let me know the right way.
>
>
> To view the thread, follow the link below:
>
> http://www.liferay.com/community/forums/-/message_boards/view_message/27750211
> --
> Liferay.com <http://www.liferay.com>
Manupoti Subrahmanyam, modifié il y a 8 années.
Re: [Liferay Forums][3. Development] How to get User entered values from js
Junior Member Publications: 39 Date d'inscription: 12/04/13 Publications récentes
Hi,
Please use the below code in your java class to get user entered data
public void actionMethod(ActionRequest actionRequest,ActionResponse
actionResponse){
String name =ParamUtil.getString(actionRequest, "labelName");
LOGGER.info("Label name is---->"+name) ;
}
Regards
Subrahmanyam
On Wed, Aug 28, 2013 at 12:40 PM, Shilpa B from liferay.com <
forums@liferay.com> wrote:
> My requirement is, i want to get the user entered values like dropdown,
> text fied to the java class.
> In java class I’m using action method, in that method I want to get these
> values.
>
> If my method is
>
> public void actionMethod(ActionResponse actionResponse,ActionRequest
> actionRequest)
>
> Then t tried with
>
> String name = actionRequest.getParameter("labelName");
> LOGGER.info("Label name is---->"+name ;
>
> But I getting null for this.
>
> If I’m wrong please let me know the right way.
>
>
> To view the thread, follow the link below:
>
> http://www.liferay.com/community/forums/-/message_boards/view_message/27750211
> --
> Liferay.com <http://www.liferay.com>
Please use the below code in your java class to get user entered data
public void actionMethod(ActionRequest actionRequest,ActionResponse
actionResponse){
String name =ParamUtil.getString(actionRequest, "labelName");
LOGGER.info("Label name is---->"+name) ;
}
Regards
Subrahmanyam
On Wed, Aug 28, 2013 at 12:40 PM, Shilpa B from liferay.com <
forums@liferay.com> wrote:
> My requirement is, i want to get the user entered values like dropdown,
> text fied to the java class.
> In java class I’m using action method, in that method I want to get these
> values.
>
> If my method is
>
> public void actionMethod(ActionResponse actionResponse,ActionRequest
> actionRequest)
>
> Then t tried with
>
> String name = actionRequest.getParameter("labelName");
> LOGGER.info("Label name is---->"+name ;
>
> But I getting null for this.
>
> If I’m wrong please let me know the right way.
>
>
> To view the thread, follow the link below:
>
> http://www.liferay.com/community/forums/-/message_boards/view_message/27750211
> --
> Liferay.com <http://www.liferay.com>
Manupoti Subrahmanyam, modifié il y a 8 années.
Re: [Liferay Forums][3. Development] How to get User entered values from js
Junior Member Publications: 39 Date d'inscription: 12/04/13 Publications récentes
Hi,
Please use the below code in your java class to get user entered data
public void actionMethod(ActionRequest actionRequest,ActionResponse
actionResponse){
String name =ParamUtil.getString(actionRequest, "labelName");
LOGGER.info("Label name is---->"+name) ;
}
Regards
Subrahmanyam
On Wed, Aug 28, 2013 at 12:40 PM, Shilpa B from liferay.com <
forums@liferay.com> wrote:
> My requirement is, i want to get the user entered values like dropdown,
> text fied to the java class.
> In java class I’m using action method, in that method I want to get these
> values.
>
> If my method is
>
> public void actionMethod(ActionResponse actionResponse,ActionRequest
> actionRequest)
>
> Then t tried with
>
> String name = actionRequest.getParameter("labelName");
> LOGGER.info("Label name is---->"+name ;
>
> But I getting null for this.
>
> If I’m wrong please let me know the right way.
>
>
> To view the thread, follow the link below:
>
> http://www.liferay.com/community/forums/-/message_boards/view_message/27750211
> --
> Liferay.com <http://www.liferay.com>
Please use the below code in your java class to get user entered data
public void actionMethod(ActionRequest actionRequest,ActionResponse
actionResponse){
String name =ParamUtil.getString(actionRequest, "labelName");
LOGGER.info("Label name is---->"+name) ;
}
Regards
Subrahmanyam
On Wed, Aug 28, 2013 at 12:40 PM, Shilpa B from liferay.com <
forums@liferay.com> wrote:
> My requirement is, i want to get the user entered values like dropdown,
> text fied to the java class.
> In java class I’m using action method, in that method I want to get these
> values.
>
> If my method is
>
> public void actionMethod(ActionResponse actionResponse,ActionRequest
> actionRequest)
>
> Then t tried with
>
> String name = actionRequest.getParameter("labelName");
> LOGGER.info("Label name is---->"+name ;
>
> But I getting null for this.
>
> If I’m wrong please let me know the right way.
>
>
> To view the thread, follow the link below:
>
> http://www.liferay.com/community/forums/-/message_boards/view_message/27750211
> --
> Liferay.com <http://www.liferay.com>
Manupoti Subrahmanyam, modifié il y a 8 années.
Re: [Liferay Forums][3. Development] How to get User entered values from js
Junior Member Publications: 39 Date d'inscription: 12/04/13 Publications récentes
Hi,
Please use the below code in your java class to get user entered data
public void actionMethod(ActionRequest actionRequest,ActionResponse
actionResponse){
String name =ParamUtil.getString(actionRequest, "labelName");
LOGGER.info("Label name is---->"+name) ;
}
Regards
Subrahmanyam
On Wed, Aug 28, 2013 at 12:40 PM, Shilpa B from liferay.com <
forums@liferay.com> wrote:
> My requirement is, i want to get the user entered values like dropdown,
> text fied to the java class.
> In java class I’m using action method, in that method I want to get these
> values.
>
> If my method is
>
> public void actionMethod(ActionResponse actionResponse,ActionRequest
> actionRequest)
>
> Then t tried with
>
> String name = actionRequest.getParameter("labelName");
> LOGGER.info("Label name is---->"+name ;
>
> But I getting null for this.
>
> If I’m wrong please let me know the right way.
>
>
> To view the thread, follow the link below:
>
> http://www.liferay.com/community/forums/-/message_boards/view_message/27750211
> --
> Liferay.com <http://www.liferay.com>
Please use the below code in your java class to get user entered data
public void actionMethod(ActionRequest actionRequest,ActionResponse
actionResponse){
String name =ParamUtil.getString(actionRequest, "labelName");
LOGGER.info("Label name is---->"+name) ;
}
Regards
Subrahmanyam
On Wed, Aug 28, 2013 at 12:40 PM, Shilpa B from liferay.com <
forums@liferay.com> wrote:
> My requirement is, i want to get the user entered values like dropdown,
> text fied to the java class.
> In java class I’m using action method, in that method I want to get these
> values.
>
> If my method is
>
> public void actionMethod(ActionResponse actionResponse,ActionRequest
> actionRequest)
>
> Then t tried with
>
> String name = actionRequest.getParameter("labelName");
> LOGGER.info("Label name is---->"+name ;
>
> But I getting null for this.
>
> If I’m wrong please let me know the right way.
>
>
> To view the thread, follow the link below:
>
> http://www.liferay.com/community/forums/-/message_boards/view_message/27750211
> --
> Liferay.com <http://www.liferay.com>