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 7730591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:15:49+00:00 2026-06-01T06:15:49+00:00

i am using the following code to send request to the server var url=’getDNormalForm.action’;

  • 0

i am using the following code to send request to the server

var url='getDNormalForm.action';
var inputStr="test";
    var simTyp="andOr";
var pars={inputStr:inputStr, simTyp=simTyp};
$.post(url,pars);

I have defined my action in struts.xml as follow:

        <action name="getDNormalForm" class="ClassNameAction" method="getDNormalForm">
            <result name="andOr">test.jsp</result>
        </action>

When I send the post, I can see in firebug the following:

POST http://localhost:8081/myProject/getDNormalForm.action 200 OK 23ms

and i see in the answer tab the content of the page test.jsp, which means that
I send the post and receive the answer successfully.

My question is: How can I show the page test.jsp as current page?

  • 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-01T06:15:50+00:00Added an answer on June 1, 2026 at 6:15 am
    $.post(
      url,
      pars, 
      function(response){
        $("body").html(response);
      }, "html");
    

    So the third parameter is the callback function, i.e. the function that is called when the post request finishes (it is asynchronous, meaning that it does not block the execution of the script in browser). jQuery calls that function and passes to it the response as the first argument. Note the 4th parameter – “html”, which says what should be the format of the “response” variable (may be text, json, xml, html). Inside the function we just replace the content of the body with the received content.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I using following code: var search = 'test'; if ($('#sku').find(search) ){ //alert(search); $(document).find(search).css('color','red'); <TABLE>
I'm using following code to send sms throuh gsm modem for (int i =
I generate a vcard that I send to the client using the following code
I send the text file to multiple devices using the following code, ContentValues values
I am trying to send email using c# following is my code. try {
I'm trying to send a file using ftp. I have the following code: string
I have the following code which I use to send a request to the
I am trying to send data to my server using HttpPost via the following
I tried the following code to send request to jsp page on a click
Using following code I try to get updated list of checkbuttons' corresponding text values,

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.