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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:39:19+00:00 2026-06-01T09:39:19+00:00

i am using struts 1.3 for development and i am trying to call a

  • 0

i am using struts 1.3 for development and i am trying to call a struts action from java script my code is like below

<SCRIPT type="text/javascript">

        function callMyFunction(autoKey){

            var newUrl = '/AuftragTrace.do?autoKey=' + autoKey;
            document.forms[0].action = newUrl;
            document.forms[0].submit();
        }

    </SCRIPT>

when call this i got following error

Error 404–Not Found
From RFC 2068 Hypertext Transfer Protocol — HTTP/1.1:
10.4.5 404 Not Found
The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.

If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.

  • 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-01T09:39:20+00:00Added an answer on June 1, 2026 at 9:39 am

    You need to pass complete URL. Here:

    var newUrl = '/AuftragTrace.do?autoKey=' + autoKey;
    

    Probably should be something like:

    // note the relative URL
    var newUrl = 'AuftragTrace.do?autoKey=' + autoKey;
    

    Or something like:

    // note FULL url
    var newUrl = '/AppName.war/AuftragTrace.do?autoKey=' + autoKey;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Struts 2 . I'd like to return from an Action to the
I'm using JSP & Struts2 for development. When I login, I call an action,
I am using struts 2.1.6 with ONGL. Please see the code below and tell
I'm trying to create a webb application using Struts 2 and javascript and I'm
I am using Struts and Java. The problem is that I have a page
I´m developing a Java EE application and I'm using Struts. When I use html
I need to upload .dat file from jsp page. I am using struts. I
Hi I am new to Struts 2 and all the java web development, I
I'm using Struts 2 and I'd like to determine the page generation time without
Using Struts 1.3. Submitting forms as a collection using the <logic:iterate> tag I'd like

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.