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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:23:24+00:00 2026-06-07T10:23:24+00:00

I want to call a jsp page with in the javascript function without using

  • 0

I want to call a jsp page with in the javascript function without using this code

<form method="post" action="createxml.jsp">

I use the call like this but it is not working.

function questype()
{
createxml.jsp
}

Help me to call this 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-07T10:23:27+00:00Added an answer on June 7, 2026 at 10:23 am

    Are you using any framework?

    If don’t, the “Action” value it’s the JSP url that returns the JSP.

    Example:
    in your xml file, you has got something like this:

     <servlet>
            <servlet-name>createXml.jsp</servlet-name>
            <jsp-file>/createXml.jsp</jsp-file>
        </servlet>
        <servlet-mapping>
            <servlet-name>createXml.jsp</servlet-name>
            <url-pattern>/createXml.jsp</url-pattern>
        </servlet-mapping>
    

    Later, you need to do something like this:

    function questype()
    {
    
        $.each($('form[action='createXml.jsp']').serializeArray(), function(i, field) {
            values[field.name] = field.value;
        });
        $("<DIV WHENEVER YOU WANT TO PUT THE JSP RESULT>").load("createxml.jsp", values);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to call a static method in my jsp file using scriptlet and
I want to call a method say success(message) of javascript from android activity. I
I have the following function call inside a jsp page. jQuery(function($){ $(#product).mask(99/99/9999,{placeholder: }); });
I'm using JSP & Struts2 for development. When I login, I call an action,
Traditionally, to call a JavaScript function once the page has loaded, you'd add an
I'm using Spring MVC. I want to include menu page (named menu.jsp) with a
I want to setup a JSP page to: to call DDR server with address:
I want to call a dynamic JSP page and pass data to it so
Following is the Javascript function which is using AJAX call in my Spring MVC
I am trying to call a javaScript function that's in .../js/index.js file to .../index.jsp

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.