Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8817693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:54:43+00:00 2026-06-14T04:54:43+00:00

I have one jsp page with jqgrid I want to pass that grid data

  • 0

I have one jsp page with jqgrid I want to pass that grid data to action class.I am editing jqgrid data using cellEdit and now i want to pass this new data to action class to update this data in database.How can i pass the jqgrid data from jsp to action class?

 <sjg:grid id="gridtable" caption=" " dataType="json" 
                href="%{listurl}"
                gridModel="listMS_AUTONUMBER"
                            cellEdit="true"
                    cellurl="%{cellediturl}">

<sjg:gridColumn frozen="false"  name="autonumberCd" index="autonumberCd" title="%{getText('autonumber.autonumbercode')}"
                    sortable="true" search="true" editable="true" key="true" editoptions="{maxlength :2}"
                    editrules="{required:true,custom:true,custom_func:validateCapitalAlphanumeric}" formatter="String"  formoptions="{elmsuffix:'  *'}"/>     

                <sjg:gridColumn name="autonumberNm" index="autonumberNm" title="%{getText('autonumber.autonumbername')}"
                    sortable="true" editable="true" edittype="text" editrules="{required:true}" editoptions="{maxlength :10}" formoptions="{elmsuffix:'  *'}" />        

                <sjg:gridColumn name="nextAutonumber" index="nextAutonumber" title="%{getText('autonumber.nextautonumber')}"
                    sortable="true" editable="true" edittype="text" editrules="{required:true,custom:true,custom_func:validateNumericOnly}" editoptions="{maxlength :10}" align="right" formoptions="{elmsuffix:'  *'}" />                      
            </sjg:grid>

This is my jqgrid in which listMS_AUTONUMBER is list which retrieves value from database and coming from another action class.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T04:54:44+00:00Added an answer on June 14, 2026 at 4:54 am

    To pass the jqgrid data from jsp to action class i am using json as follows:

    var data=jQuery("#gridtable").jqGrid('getRowData');      //this method gets all the data from grid
    var postData = JSON.stringify(data);          //using json stringify convert the data in string format
    alert(postData);
    

    using alert I am displaying data of jqgrid in string format.

    After that I am sending this data to action class through AJAX as follows:

    $.ajax({
           type: "Get",
        url: "action_name?AutoList="+postData,
        data : {
               jgGridData: postData,
            },
        dataType:"json",
        contentType: "application/json; charset=utf-8",
    });
    

    After this in action class, converting this String to json format as follows:

    JSONArray outerArray = (JSONArray) JSONSerializer.toJSON(AutoList); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one in jsp page. i want to pass this value as argument
I have a project in java where i want that certain data from one
I have one form in JSP. I have some input fields in that page,
I have a Jsp page and I want automaticly update one of the form
I have a jsp page that reads one line from a certain url and
I have JSP page that contains table. when I click on one row of
I have a JSP page that has 2 forms running on Tomcat 6. One
I have a JSP page with multiple instances of a jqGrid. One column of
My problem is I have one html table in jsp page .And i applied
In my jsp page i have one text box and two combo box. An

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.